:root {
  color-scheme: light;
  --bg: #fbfcff;
  --panel: #ffffff;
  --panel-2: #f6f7fb;
  --line: #e5e8f0;
  --text: #111827;
  --muted: #5b6472;
  --soft: #7c8798;
  --brand: #ef1111;
  --brand-2: #b90d0d;
  --ok: #37d399;
  --warn: #f7b955;
  --bad: #ff6b6b;
  --radius: 8px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* Final anti-clipping layer for mobile and compact desktop screens */
body,
body * {
  overflow-wrap: anywhere;
  word-break: normal;
}

body .panel,
body .premium-panel,
body .metric,
body .row,
body .release-card,
body .user-module-card,
body .metadata-grid span,
body .notice-box,
body .topbar,
body .hero-panel {
  height: auto !important;
  min-height: 0 !important;
}

body .table > p.muted,
body .table > .muted {
  display: block !important;
  width: 100% !important;
  margin: 12px 0 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  line-height: 1.45 !important;
  white-space: normal !important;
  overflow: visible !important;
}

body .alpha-directory label {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  min-height: 42px !important;
  padding: 9px 10px !important;
  border: 1px solid #E5E7EB !important;
  border-radius: 8px !important;
  background: #FFFFFF !important;
}

body .alpha-directory label span {
  flex: 1 1 auto !important;
  min-width: 0 !important;
}

body .alpha-directory label small {
  flex: 0 0 auto !important;
  font-size: 11px !important;
  font-weight: 800 !important;
}

body .alpha-directory label.access-eligible small {
  color: #15803D !important;
}

body .alpha-directory label.access-locked {
  opacity: .68 !important;
  background: #F8FAFC !important;
}

body .alpha-directory label.access-locked small {
  color: #B45309 !important;
}

body .sub-label-row {
  display: grid !important;
  grid-template-columns: minmax(180px, .9fr) minmax(320px, 2fr) minmax(150px, auto) !important;
  align-items: start !important;
  gap: 18px !important;
  width: 100% !important;
  min-width: 0 !important;
  padding: 18px !important;
  overflow: visible !important;
}

body .mini-permissions {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)) !important;
  gap: 10px !important;
  width: 100% !important;
  min-width: 0 !important;
}

body .mini-permissions .check-line {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 10px !important;
  min-height: 42px !important;
  padding: 10px 12px !important;
  border: 1px solid #E5E7EB !important;
  border-radius: 8px !important;
  background: #FFFFFF !important;
  line-height: 1.25 !important;
  text-align: left !important;
}

body .mini-permissions .check-line input {
  flex: 0 0 auto !important;
  width: 18px !important;
  min-height: 18px !important;
}

body .sub-label-actions {
  display: grid !important;
  gap: 10px !important;
  min-width: 140px !important;
}

body .bulk-validation-row {
  grid-template-columns: minmax(240px, 1.4fr) minmax(120px, auto) minmax(120px, auto) minmax(120px, auto) auto !important;
  align-items: start !important;
}

body .bulk-validation-row.issue-row {
  grid-template-columns: minmax(0, 1fr) auto auto !important;
}

body .bulk-validation-row .notice-box.full,
body .row .notice-box.full {
  grid-column: 1 / -1 !important;
  margin-top: 8px !important;
  white-space: normal !important;
}

@media (max-width: 980px) {
  body .sub-label-row,
  body .bulk-validation-row,
  body .bulk-validation-row.issue-row {
    grid-template-columns: 1fr !important;
  }

  body .mini-permissions {
    grid-template-columns: 1fr !important;
  }
}

body .nav button,
body .nav a,
body .panel h1,
body .panel h2,
body .panel h3,
body .metric strong,
body .metric span,
body .muted,
body small {
  max-width: 100%;
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
}

@media (max-width: 760px) {
  body {
    padding-bottom: calc(132px + env(safe-area-inset-bottom)) !important;
  }

  body .main {
    padding: 14px 12px calc(132px + env(safe-area-inset-bottom)) !important;
  }

  body .mobile-app-header {
    gap: 12px !important;
    padding: 14px 16px !important;
  }

  body .mobile-app-header img {
    width: 42px !important;
    height: 42px !important;
    flex: 0 0 42px !important;
  }

  body .mobile-app-header strong {
    display: block !important;
    font-size: 21px !important;
    line-height: 1.15 !important;
    white-space: normal !important;
  }

  body .mobile-app-header span {
    display: block !important;
    font-size: 14px !important;
    line-height: 1.25 !important;
  }

  body .hero-panel,
  body .topbar,
  body .panel,
  body .premium-panel {
    margin-bottom: 14px !important;
    padding: 16px !important;
    border-radius: 14px !important;
  }

  body .hero-panel h1,
  body .hero-panel h2,
  body .hero-panel h3 {
    font-size: clamp(22px, 8vw, 32px) !important;
    line-height: 1.12 !important;
  }

  body .panel h1,
  body .panel h2,
  body .topbar h1 {
    font-size: clamp(21px, 7vw, 28px) !important;
    line-height: 1.15 !important;
  }

  body .metric {
    min-height: 112px !important;
    padding: 18px 16px !important;
  }

  body .metric strong {
    font-size: clamp(30px, 11vw, 42px) !important;
    line-height: 1.05 !important;
  }

  body .metric .muted,
  body .metric span {
    font-size: 17px !important;
    line-height: 1.3 !important;
  }

  body .sidebar {
    left: 8px !important;
    right: 8px !important;
    bottom: 8px !important;
    height: calc(104px + env(safe-area-inset-bottom)) !important;
    padding: 8px 8px calc(10px + env(safe-area-inset-bottom)) !important;
    border-color: #D8E5FF !important;
    border-radius: 22px !important;
    box-shadow: 0 18px 42px rgba(37, 99, 235, .14) !important;
    overflow: hidden !important;
  }

  body .sidebar .nav {
    grid-auto-columns: minmax(86px, 96px) !important;
    align-items: stretch !important;
    gap: 8px !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    scroll-snap-type: x proximity;
  }

  body .sidebar .nav button,
  body .sidebar .nav a {
    width: 92px !important;
    min-width: 92px !important;
    height: 84px !important;
    min-height: 84px !important;
    padding: 7px 6px !important;
    gap: 5px !important;
    border-radius: 18px !important;
    font-size: 12px !important;
    line-height: 1.08 !important;
    white-space: normal !important;
    overflow: visible !important;
    scroll-snap-align: start;
  }

  body .sidebar .nav button span:first-child,
  body .sidebar .nav a span:first-child {
    width: 32px !important;
    height: 32px !important;
    min-height: 32px !important;
    flex: 0 0 32px !important;
    background: #EFF6FF !important;
    color: #2563EB !important;
  }

  body .sidebar .nav button span:last-child,
  body .sidebar .nav a span:last-child {
    display: block !important;
    width: 100% !important;
    max-height: 34px !important;
    overflow: hidden !important;
    text-align: center !important;
    white-space: normal !important;
    word-break: normal !important;
  }

  body .sidebar .nav button.active,
  body .sidebar .nav a.active {
    background: #DBEAFE !important;
    color: #1D4ED8 !important;
  }
}

/* Final release creation asset launcher */
.release-asset-workspace {
  grid-column: 1 / -1;
  width: 100%;
}

.asset-launch-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 22px;
  border: 1px solid #D9E2F2;
  border-radius: 12px;
  background: #FFFFFF;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
}

.asset-launch-card h2,
.asset-manager-head h2 {
  margin: 4px 0;
  font-size: 24px;
  line-height: 1.15;
}

.asset-manager-shell {
  margin-top: 16px;
  padding: 16px;
  border: 1px solid #CBD5E1;
  border-radius: 14px;
  background: #F8FAFC;
}

.asset-manager-open .asset-manager-shell {
  position: fixed;
  inset: 0;
  z-index: 1000;
  margin: 0;
  padding: 18px;
  border: 0;
  border-radius: 0;
  overflow: auto;
}

.asset-manager-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
  padding: 14px 16px;
  border: 1px solid #E2E8F0;
  border-radius: 12px;
  background: #FFFFFF;
}

.asset-manager-grid {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr) 280px;
  gap: 14px;
  min-height: calc(100dvh - 130px);
}

.asset-manager-side,
.asset-manager-center,
.asset-manager-preview {
  padding: 14px;
  border: 1px solid #E2E8F0;
  border-radius: 12px;
  background: #FFFFFF;
}

.asset-manager-side {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.asset-manager-side button {
  justify-content: flex-start;
  min-height: 42px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: #F5F7FA;
  color: #111827;
  font-weight: 800;
}

.asset-manager-side button.active {
  border-color: #BFDBFE;
  background: #DBEAFE;
  color: #2563EB;
}

.asset-manager-center {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  align-content: start;
}

.asset-manager-center #track-list,
.asset-manager-center .track-list {
  grid-column: 1 / -1;
}

.asset-manager-preview h3 {
  margin-top: 0;
  font-size: 18px;
}

.metadata-grid.compact {
  grid-template-columns: 1fr;
}

.metadata-grid.compact span {
  padding: 10px;
  border: 1px solid #E2E8F0;
  border-radius: 8px;
  background: #F8FAFC;
}

@media (max-width: 780px) {
  .asset-launch-card,
  .asset-manager-head {
    align-items: stretch;
    flex-direction: column;
  }

  .asset-manager-grid {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .asset-manager-side {
    flex-direction: row;
    overflow-x: auto;
  }

  .asset-manager-center {
    grid-template-columns: 1fr;
  }
}

/* Enterprise SaaS visual system aligned with Zaventra Music Group references. */
body {
  background:
    radial-gradient(circle at 18% 0%, rgba(109, 40, 255, 0.08), transparent 26%),
    linear-gradient(180deg, #ffffff 0%, #fbfaff 100%) !important;
  color: #111827;
}

.layout,
.admin-workspace,
.user-workspace {
  background: transparent;
}

.sidebar {
  background: rgba(255, 255, 255, 0.92) !important;
  border-right: 1px solid #ece7ff !important;
  box-shadow: 14px 0 50px rgba(17, 24, 39, 0.04);
}

.brand,
.brand-lockup {
  color: #111827;
}

.brand img,
.admin-avatar,
.user-cell img,
.profile-card img {
  box-shadow: 0 10px 28px rgba(109, 40, 255, 0.18);
}

.nav button,
.sidebar button,
.nav a {
  border: 1px solid transparent;
  border-radius: 12px;
  color: #344054;
  transition: transform .18s ease, background .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.nav button:hover,
.sidebar button:hover,
.nav a:hover {
  transform: translateX(2px);
  background: #f7f2ff;
  border-color: #BFDBFE;
  color: #5b21d9;
}

.nav button.active,
.sidebar button.active,
.nav a.active {
  background: linear-gradient(135deg, #f5efff, #ffffff) !important;
  border-color: #d9c7ff !important;
  color: #2563EB !important;
  box-shadow: 0 10px 30px rgba(109, 40, 255, 0.10);
}

.admin-topbar-premium,
.user-topbar-premium,
.topbar {
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid #eee8ff;
  border-radius: 18px;
  padding: 20px;
  box-shadow: 0 20px 60px rgba(31, 41, 55, 0.06);
  backdrop-filter: blur(18px);
}

.admin-command input,
.admin-command select,
input,
select,
textarea {
  border: 1px solid #BFDBFE !important;
  border-radius: 11px !important;
  background: #ffffff !important;
  box-shadow: 0 1px 0 rgba(17, 24, 39, 0.02);
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

input:focus,
select:focus,
textarea:focus {
  border-color: #2563EB !important;
  box-shadow: 0 0 0 4px rgba(109, 40, 255, 0.10) !important;
  outline: none;
}

.panel,
.premium-panel,
.metric,
.release-card,
.membership,
.user-module-card,
.metadata-grid span,
.file-grid > div,
.ticket-row,
.claim-row,
.row {
  border: 1px solid #ece7ff !important;
  background: rgba(255, 255, 255, 0.92) !important;
  border-radius: 16px !important;
  box-shadow: 0 18px 50px rgba(31, 41, 55, 0.06);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.panel:hover,
.premium-panel:hover,
.metric:hover,
.release-card:hover,
.membership:hover,
.user-module-card:hover {
  transform: translateY(-2px);
  border-color: #ddccff !important;
  box-shadow: 0 24px 70px rgba(109, 40, 255, 0.10);
}

.metric strong,
.admin-kpis .metric strong {
  color: #111827;
  letter-spacing: -0.03em;
}

.primary-button,
button.primary-button,
.quick-grid button,
.auth-card button[type="submit"] {
  border: 0 !important;
  background: linear-gradient(135deg, #2563EB, #2563EB) !important;
  color: #fff !important;
  box-shadow: 0 14px 32px rgba(109, 40, 255, 0.24);
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}

.primary-button:hover,
button.primary-button:hover,
.quick-grid button:hover {
  transform: translateY(-1px);
  filter: saturate(1.08);
  box-shadow: 0 18px 44px rgba(109, 40, 255, 0.32);
}

.ghost-button {
  border: 1px solid #BFDBFE !important;
  background: #fff !important;
  color: #5b21d9 !important;
}

.danger-button {
  background: #fff1f2 !important;
  color: #e11d48 !important;
  border: 1px solid #fecdd3 !important;
}

.admin-table-wrap,
.table {
  border-radius: 16px;
  overflow: hidden;
}

table {
  border-collapse: separate;
  border-spacing: 0;
}

thead th {
  background: #f6f0ff !important;
  color: #475467 !important;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .04em;
}

tbody tr,
.table .row {
  transition: background .16s ease, transform .16s ease;
}

tbody tr:hover {
  background: #fbf8ff;
}

.status {
  border-radius: 999px !important;
  border: 1px solid transparent;
  font-weight: 800;
}

.status.active,
.status.live,
.status.delivered,
.status.approved {
  background: #dcfce7 !important;
  color: #15803d !important;
}

.status.pending,
.status.in-review,
.status.under-review,
.status.processing {
  background: #fff7ed !important;
  color: #c2410c !important;
}

.status.rejected,
.status.inactive,
.status.suspended {
  background: #fff1f2 !important;
  color: #e11d48 !important;
}

.bar-chart span,
.progress-bar,
.release-progress-fill {
  background: linear-gradient(180deg, #2563EB, #2563EB) !important;
  box-shadow: 0 10px 28px rgba(109, 40, 255, 0.22);
  animation: chartGrow .52s ease both;
}

@keyframes chartGrow {
  from { transform: scaleY(.35); opacity: .4; }
  to { transform: scaleY(1); opacity: 1; }
}

.auth-page {
  background:
    radial-gradient(circle at 20% 10%, rgba(109, 40, 255, .12), transparent 30%),
    linear-gradient(180deg, #fff, #fbfaff) !important;
}

.auth-brand,
.auth-card {
  border-color: #ece7ff !important;
  background: rgba(255, 255, 255, .9) !important;
  box-shadow: 0 24px 80px rgba(31, 41, 55, .08);
}

.release-progressive .panel,
.release-step-page {
  border-color: #ece7ff !important;
  box-shadow: 0 20px 70px rgba(109, 40, 255, .08);
}

.release-stepper span.active,
.release-stepper button.active,
.release-step-actions .primary-button {
  background: linear-gradient(135deg, #2563EB, #2563EB) !important;
  color: #fff !important;
}

.skeleton {
  background: linear-gradient(90deg, #f4efff, #fff, #f4efff);
  background-size: 220% 100%;
  animation: skeletonMove 1.2s ease-in-out infinite;
}

@keyframes skeletonMove {
  from { background-position: 220% 0; }
  to { background-position: -220% 0; }
}

@media (max-width: 900px) {
  .admin-topbar-premium,
  .user-topbar-premium,
  .topbar {
    border-radius: 14px;
    padding: 16px;
  }

  .panel,
  .premium-panel,
  .metric,
  .release-card,
  .membership,
  .user-module-card {
    border-radius: 14px !important;
  }
}

/* Final responsive polish: prevent oversized headings and support fintech payout flows. */
.topbar h1,
.user-topbar-premium h1,
.admin-topbar-premium h1,
.hero-panel h1,
.hero-panel h2,
.control-hero h1 {
  font-size: clamp(24px, 2.4vw, 38px) !important;
  line-height: 1.08 !important;
  letter-spacing: 0;
  max-width: min(100%, 980px);
  overflow-wrap: anywhere;
}

.panel h1,
.premium-panel h1 {
  font-size: clamp(22px, 2vw, 32px) !important;
  line-height: 1.12 !important;
  overflow-wrap: anywhere;
}

.wallet-hero {
  background: linear-gradient(135deg, #6a00ff, #4b00b5);
  border-radius: 18px;
  padding: 24px;
  color: #fff;
  box-shadow: 0 24px 60px rgba(106, 0, 255, 0.22);
}

.wallet-hero .muted,
.wallet-hero .eyebrow {
  color: rgba(255, 255, 255, 0.82);
}

.wallet-kpis .metric {
  border: 1px solid #BFDBFE;
  background: linear-gradient(180deg, #fff, #fbf8ff);
  box-shadow: 0 16px 36px rgba(44, 22, 95, 0.08);
}

.wallet-fintech-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
  gap: 18px;
}

.payout-cta,
.payout-fab {
  background: linear-gradient(135deg, #6a00ff, #4b00b5);
  box-shadow: 0 18px 40px rgba(106, 0, 255, 0.24);
}

.payout-fab {
  position: fixed;
  right: 28px;
  bottom: 28px;
  z-index: 80;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(16, 10, 35, 0.46);
  backdrop-filter: blur(14px);
}

.modal-backdrop.hidden {
  display: none;
}

.payout-modal {
  width: min(760px, 100%);
  max-height: min(90vh, 820px);
  overflow: auto;
  border: 1px solid rgba(231, 216, 255, 0.9);
  border-radius: 22px;
  padding: 22px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 32px 90px rgba(35, 12, 80, 0.32);
  animation: modalRise 0.22s ease-out;
}

@keyframes modalRise {
  from { transform: translateY(16px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.payout-method-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 16px 0;
}

.payout-method {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px;
  border: 1px solid #BFDBFE;
  border-radius: 14px;
  background: #f9f5ff;
  font-weight: 800;
}

.payout-preview {
  margin: 14px 0;
  padding: 14px;
  border: 1px solid #BFDBFE;
  border-radius: 14px;
  background: #EFF6FF;
  color: #24124a;
}

.payout-timeline {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 6px;
  width: 100%;
  margin-top: 10px;
}

.payout-timeline span {
  height: 5px;
  border-radius: 999px;
  background: #BFDBFE;
}

.payout-timeline span.done {
  background: linear-gradient(90deg, #6a00ff, #00c853);
}

.status.pending,
.status.under-review,
.status.on-hold {
  background: #fff4de;
  color: #9a5a00;
}

.status.approved,
.status.processing {
  background: #EFF6FF;
  color: #4b00b5;
}

.status.paid,
.status.verified {
  background: #e8fff1;
  color: #008b3a;
}

.status.rejected,
.status.cancelled {
  background: #ffe8ed;
  color: #c6283d;
}

.reseller-service-panel {
  margin: 18px 0;
  border-color: #BFDBFE;
  background: linear-gradient(180deg, rgba(255,255,255,0.96), rgba(244,238,255,0.88));
}

.label-service-admin-row {
  grid-template-columns: minmax(240px, 1fr) 120px 120px auto;
}

@media (max-width: 860px) {
  .wallet-fintech-grid,
  .payout-method-grid {
    grid-template-columns: 1fr;
  }

  .payout-fab {
    left: 16px;
    right: 16px;
    bottom: 16px;
    width: auto;
  }

  .modal-backdrop {
    align-items: end;
    padding: 0;
  }

  .payout-modal {
    width: 100%;
    max-height: 88vh;
    border-radius: 22px 22px 0 0;
  }

  .topbar h1,
  .user-topbar-premium h1,
  .admin-topbar-premium h1,
  .hero-panel h1,
  .hero-panel h2 {
    font-size: clamp(22px, 7vw, 30px) !important;
  }

  .label-service-admin-row {
    grid-template-columns: 1fr;
  }
}

/* 2026 reseller + release wizard polish */
:root {
  --z-purple: #6a00ff;
  --z-purple-dark: #4b00b5;
  --z-purple-soft: #EFF6FF;
  --z-border: #BFDBFE;
  --z-success: #00c853;
}

.upload-wizard {
  border: 1px solid var(--z-border);
  background:
    linear-gradient(180deg, rgba(255,255,255,.96), rgba(255,255,255,.9)),
    radial-gradient(circle at top right, rgba(106,0,255,.12), transparent 34%);
  box-shadow: 0 24px 70px rgba(75, 0, 181, .12);
}

.upload-wizard .wizard-step {
  position: relative;
  padding: 18px;
  border-radius: 18px;
  border: 1px solid var(--z-border);
  background: linear-gradient(135deg, var(--z-purple-soft), #fff);
}

.upload-wizard .wizard-step span {
  background: linear-gradient(135deg, var(--z-purple), var(--z-purple-dark));
  box-shadow: 0 10px 24px rgba(106,0,255,.28);
}

.release-progressive {
  grid-column: 1 / -1;
}

.release-stepper {
  display: grid;
  grid-template-columns: repeat(7, minmax(90px, 1fr));
  gap: 10px;
  margin-bottom: 18px;
}

.release-wizard-title {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-bottom: 12px;
  color: #111827;
}

.release-wizard-title span {
  color: #16a34a;
  font-size: 12px;
  font-weight: 800;
}

.release-progress-bar {
  height: 8px;
  margin: 10px 0 18px;
  border-radius: 999px;
  background: #f4f0ff;
  overflow: hidden;
}

.release-progress-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #2563EB, #2563EB);
  transition: width .25s ease;
}

.release-step-page {
  animation: releaseStepSlide .22s ease;
}

@keyframes releaseStepSlide {
  from { opacity: 0; transform: translateX(10px); }
  to { opacity: 1; transform: translateX(0); }
}

.sticky-release-actions {
  position: sticky;
  bottom: 10px;
  z-index: 20;
  padding: 12px;
  border: 1px solid #e8ddff;
  border-radius: 16px;
  background: rgba(255,255,255,.96);
  box-shadow: 0 16px 40px rgba(16,24,40,.10);
}

.artwork-preview-box {
  min-height: 180px;
  display: grid;
  place-items: center;
  border: 1px dashed #c4b5fd;
  border-radius: 14px;
  background: #fbf8ff;
  color: #2563EB;
  font-weight: 900;
}

.artwork-preview-box img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 12px;
}

.dsp-group {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid #eadfff;
  border-radius: 14px;
  background: #fff;
}

.dsp-group strong {
  color: #111827;
}

.track-footer-actions {
  align-self: end;
}

.apply-page {
  min-height: 100vh;
  padding: 28px;
  background: #fff;
}

.apply-hero,
.apply-card {
  max-width: 1120px;
  margin: 0 auto 18px;
}

.apply-hero {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px;
  border: 1px solid #e8ddff;
  border-radius: 18px;
  background: #fbf8ff;
}

.apply-hero img {
  width: 58px;
  height: 58px;
  object-fit: contain;
}

.apply-hero h1 {
  margin: 4px 0;
  color: #111827;
}

.apply-card {
  padding: 24px;
  border: 1px solid #e8ddff;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 18px 50px rgba(16, 24, 40, .06);
}

.apply-step {
  display: none;
  animation: releaseStepSlide .22s ease;
}

.apply-step.active {
  display: block;
}

.apply-step h2 {
  margin-top: 0;
  color: #111827;
}

.upload-wizard {
  overflow: visible !important;
}

.release-credit-grid {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(260px, 1fr)) !important;
  gap: 18px !important;
  align-items: start !important;
}

.release-credit-grid .field,
.release-step-page .field {
  min-width: 0 !important;
}

.release-credit-grid select[multiple],
.release-step-page select[multiple],
select[data-managed-credit] {
  width: 100% !important;
  min-height: 48px !important;
  height: 48px !important;
  max-height: 48px !important;
  overflow: hidden !important;
  border-radius: 12px !important;
  background: #fff !important;
}

.release-credit-grid .field small,
.release-step-page .field small {
  display: block !important;
  margin-top: 8px !important;
  line-height: 1.35 !important;
}

.track-row {
  display: grid !important;
  grid-template-columns: 44px repeat(4, minmax(150px, 1fr)) !important;
  gap: 14px !important;
  align-items: start !important;
  padding: 18px !important;
  border: 1px solid #e5e7eb !important;
  border-radius: 16px !important;
  background: #fff !important;
}

.track-row .track-index {
  grid-row: span 2 !important;
}

.track-row .upload-drop {
  grid-column: 2 / -1 !important;
  min-height: 150px !important;
}

.track-row .upload-drop span {
  white-space: normal !important;
  overflow-wrap: anywhere !important;
}

.track-row .track-flags {
  grid-column: 2 / -1 !important;
  display: grid !important;
  grid-template-columns: repeat(4, minmax(140px, 1fr)) !important;
  gap: 10px !important;
}

.track-row .track-footer-actions {
  grid-column: span 2 !important;
  display: flex !important;
  gap: 10px !important;
}

.track-row label {
  line-height: 1.2 !important;
}

.sidebar-card {
  max-width: 100% !important;
  overflow-wrap: anywhere !important;
}

.sidebar .portal-footer {
  position: static !important;
  padding-bottom: 16px !important;
  overflow-wrap: anywhere !important;
}

.sidebar button,
.sidebar a {
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

.release-stepper button {
  border: 1px solid var(--z-border);
  background: #fff;
  color: #20123a;
  border-radius: 14px;
  padding: 11px 8px;
  font-weight: 800;
  box-shadow: 0 12px 30px rgba(80, 25, 160, .06);
}

.release-stepper button span {
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  margin-right: 6px;
  border-radius: 999px;
  background: var(--z-purple-soft);
  color: var(--z-purple);
}

.release-stepper button.active {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(135deg, var(--z-purple), var(--z-purple-dark));
}

.release-stepper button.active span {
  background: rgba(255,255,255,.18);
  color: #fff;
}

.release-step-pages {
  border: 1px solid var(--z-border);
  border-radius: 22px;
  padding: 18px;
  background: rgba(255,255,255,.78);
}

.release-step-page {
  display: none;
  grid-template-columns: repeat(2, minmax(220px, 1fr));
  gap: 14px;
}

.release-step-page.active {
  display: grid;
  animation: stepIn .22s ease;
}

.release-step-page > .muted,
.release-step-page > .full,
.release-step-page > .track-list,
.release-step-page > .option-grid,
.release-step-page > .smart-checklist,
.release-step-page > .smart-suggestions,
.release-step-page > .release-credit-grid {
  grid-column: 1 / -1;
}

.release-step-actions {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 16px;
  position: sticky;
  bottom: 10px;
  z-index: 2;
  padding: 12px;
  border: 1px solid var(--z-border);
  border-radius: 16px;
  background: rgba(255,255,255,.88);
  backdrop-filter: blur(12px);
}

@keyframes stepIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.upload-wizard select[multiple] {
  min-height: 112px;
  padding: 10px;
}

.release-credit-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(220px, 1fr));
  gap: 14px;
}

.account-switch-list {
  display: grid;
  gap: 8px;
  margin: 14px 0;
  padding-top: 12px;
  border-top: 1px solid rgba(106,0,255,.14);
}

.account-switch-list button {
  justify-content: space-between;
  width: 100%;
}

.account-switch-list span {
  color: var(--muted);
  font-size: 11px;
}

.sidebar {
  background: linear-gradient(180deg, #fff 0%, #fbf8ff 100%);
}

.nav button.active,
.primary-button {
  background: linear-gradient(135deg, var(--z-purple), var(--z-purple-dark));
}

.metric,
.panel,
.premium-panel {
  border-color: rgba(231,216,255,.9);
  box-shadow: 0 18px 48px rgba(15, 23, 42, .06);
}

.release-type-switch label,
.dsp-choice,
.check-line {
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.release-type-switch label:hover,
.dsp-choice:hover,
.check-line:hover {
  transform: translateY(-1px);
  border-color: var(--z-purple);
  box-shadow: 0 12px 30px rgba(106,0,255,.1);
}

.smart-checklist .ok {
  color: var(--z-success);
}

@media (max-width: 760px) {
  .release-credit-grid {
    grid-template-columns: 1fr;
  }
  .upload-wizard .wizard-step {
    padding: 14px;
  }
}

/* Zaventra release management polish */
.upload-wizard,
.release-progressive {
  background: #fff !important;
  color: var(--zv-text) !important;
}

.release-progressive {
  grid-column: 1 / -1;
  display: grid;
  gap: 18px;
}

.release-stepper {
  display: grid !important;
  grid-template-columns: repeat(7, minmax(112px, 1fr)) !important;
  gap: 8px !important;
  overflow-x: auto;
  padding: 4px 2px 10px;
  scrollbar-width: thin;
}

.release-stepper button {
  min-height: 44px !important;
  padding: 8px 10px !important;
  border: 1px solid #e8ddff !important;
  border-radius: 999px !important;
  background: #fff !important;
  color: #667085 !important;
  justify-content: center !important;
  white-space: nowrap;
  box-shadow: 0 8px 20px rgba(16, 24, 40, .04) !important;
}

.release-stepper button span {
  width: 24px !important;
  height: 24px !important;
  margin: 0 6px 0 0 !important;
  border-radius: 50% !important;
  background: #f4efff !important;
  color: var(--zv-purple) !important;
  font-size: 12px !important;
}

.release-stepper button.active {
  border-color: #7c3cff !important;
  background: linear-gradient(135deg, #7c3cff, #5424d8) !important;
  color: #fff !important;
  box-shadow: 0 16px 34px rgba(109, 40, 255, .18) !important;
}

.release-stepper button.active span {
  background: rgba(255, 255, 255, .18) !important;
  color: #fff !important;
}

.release-step-page {
  display: none;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  padding: 22px !important;
  border: 1px solid #e8ddff !important;
  border-radius: 16px !important;
  background: #fff !important;
  box-shadow: 0 18px 50px rgba(16, 24, 40, .06) !important;
}

.release-step-page.active {
  display: grid !important;
  animation: zvSlideUp .22s ease both;
}

@keyframes zvSlideUp {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.release-type-switch {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 12px !important;
}

.release-type-switch label,
.dsp-choice,
.option-grid .check-line {
  border: 1px solid #e8ddff !important;
  border-radius: 14px !important;
  background: #fff !important;
  box-shadow: 0 10px 24px rgba(16, 24, 40, .045) !important;
}

.release-type-switch label:has(input:checked),
.dsp-choice:has(input:checked),
.option-grid .check-line:has(input:checked) {
  border-color: #7c3cff !important;
  background: #f7f2ff !important;
  color: var(--zv-purple) !important;
}

.track-row {
  grid-template-columns: 44px minmax(170px, 1.4fr) minmax(160px, 1fr) 100px 90px minmax(220px, 1.3fr) !important;
  border: 1px solid #eee6ff !important;
  border-radius: 14px !important;
  background: #fff !important;
  padding: 14px !important;
}

.track-index {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 12px;
  background: #f4efff;
  color: var(--zv-purple);
  font-weight: 900;
}

.waveform-preview {
  width: 100%;
  margin-top: 10px;
  color: #667085;
  font-size: 12px;
}

.waveform-preview strong,
.waveform-preview span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.waveform-preview div {
  display: flex;
  align-items: center;
  gap: 3px;
  min-height: 42px;
  margin-top: 8px;
  padding: 8px;
  border-radius: 12px;
  background: #f7f2ff;
}

.waveform-preview i {
  width: 4px;
  border-radius: 999px;
  background: linear-gradient(180deg, #2563EB, #4f46e5);
}

.admin-table-wrap,
.table-wrap {
  overflow-x: auto !important;
  overflow-y: visible !important;
}

.admin-table-wrap table {
  min-width: 1120px;
  table-layout: auto !important;
}

.admin-table-wrap th:last-child,
.admin-table-wrap td:last-child {
  min-width: 190px;
  padding-right: 24px !important;
}

.action-menu,
.tool-row {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 8px !important;
  align-items: center;
}

.action-menu .compact,
.tool-row .compact {
  white-space: normal !important;
  line-height: 1.15 !important;
}

@media (max-width: 760px) {
  body {
    padding-bottom: calc(82px + env(safe-area-inset-bottom));
  }

  .shell {
    display: block !important;
    padding-bottom: calc(88px + env(safe-area-inset-bottom)) !important;
  }

  .sidebar {
    position: fixed !important;
    left: 0 !important;
    right: 0 !important;
    top: auto !important;
    bottom: 0 !important;
    width: 100% !important;
    height: calc(76px + env(safe-area-inset-bottom)) !important;
    z-index: 999 !important;
    padding: 8px 10px calc(8px + env(safe-area-inset-bottom)) !important;
    border: 0 !important;
    border-top: 1px solid #e8ddff !important;
    background: rgba(255, 255, 255, .96) !important;
    box-shadow: 0 -18px 40px rgba(16, 24, 40, .10) !important;
    backdrop-filter: blur(18px);
    overflow-x: auto !important;
    overflow-y: hidden !important;
    -webkit-overflow-scrolling: touch !important;
    overscroll-behavior-x: contain !important;
  }

  .sidebar .brand,
  .sidebar-card,
  .portal-footer {
    display: none !important;
  }

  .nav {
    display: grid !important;
    grid-auto-flow: column;
    grid-auto-columns: minmax(70px, 1fr);
    height: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    gap: 6px !important;
    scrollbar-width: none;
  }

  .nav::-webkit-scrollbar {
    display: none;
  }

  .nav button,
  .nav a {
    min-width: 68px !important;
    min-height: 58px !important;
    padding: 4px 6px !important;
    flex-direction: column !important;
    justify-content: center !important;
    text-align: center !important;
    font-size: 11px !important;
    line-height: 1.1 !important;
  }

  .nav button span:first-child,
  .nav a span:first-child {
    margin: 0 0 4px !important;
  }

  .main {
    padding: 16px 14px calc(96px + env(safe-area-inset-bottom)) !important;
  }

  .release-stepper {
    grid-template-columns: none !important;
    grid-auto-flow: column;
    grid-auto-columns: minmax(138px, 1fr);
  }

  .release-step-page,
  .release-step-page.active {
    grid-template-columns: 1fr !important;
    padding: 16px !important;
  }

  .release-type-switch {
    grid-template-columns: 1fr !important;
  }

  .track-row {
    grid-template-columns: 1fr !important;
  }

  .admin-table-wrap table {
    min-width: 980px;
  }
}

:root[data-theme="light"] {
  color-scheme: light;
  --bg: #f6f7fb;
  --panel: #ffffff;
  --panel-2: #f0f2f7;
  --line: #dce1ea;
  --text: #141824;
  --muted: #5f687a;
  --soft: #7b8495;
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  touch-action: manipulation;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at top left, rgba(239, 17, 17, 0.09), transparent 30rem),
    radial-gradient(circle at bottom right, rgba(255, 207, 51, 0.12), transparent 26rem),
    linear-gradient(180deg, #ffffff 0%, #f5f7fb 100%);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
}

.app-loading {
  min-height: 100vh;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 12px;
  padding: 24px;
  background:
    radial-gradient(circle at 50% 0%, rgba(124, 44, 255, 0.16), transparent 24rem),
    linear-gradient(180deg, #ffffff 0%, #f8f6ff 100%);
  color: #111827;
  text-align: center;
}

.logo-sketch-loader {
  position: relative;
  width: 132px;
  height: 132px;
  display: grid;
  place-items: center;
}

.logo-sketch-loader::before,
.logo-sketch-loader::after {
  content: "";
  position: absolute;
  inset: 8px;
  border-radius: 50%;
}

.logo-sketch-loader::before {
  border: 4px solid rgba(124, 44, 255, .14);
}

.logo-sketch-loader::after {
  border: 4px solid transparent;
  border-top-color: #2563EB;
  border-right-color: #2563EB;
  animation: loader-ring-spin 1s linear infinite;
}

.logo-sketch-loader img {
  width: 82px;
  height: 82px;
  object-fit: contain;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 18px 45px rgba(124, 44, 255, 0.18);
  animation: splash-logo 1.1s ease both, splash-pulse 2.4s ease-in-out infinite 1.1s;
}

.sketch-head,
.sketch-body,
.sketch-arm,
.sketch-pen,
.sketch-line {
  display: none;
}

.sketch-head {
  width: 18px;
  height: 18px;
  border: 3px solid #111827;
  border-radius: 50%;
  right: 14px;
  top: 28px;
  background: #fff;
}

.sketch-body {
  width: 30px;
  height: 42px;
  border: 3px solid #111827;
  border-top: 0;
  border-radius: 0 0 16px 16px;
  right: 8px;
  top: 48px;
}

.sketch-arm {
  width: 48px;
  height: 3px;
  right: 24px;
  top: 66px;
  background: #111827;
  transform-origin: right center;
  animation: sketch-arm 1.6s ease-in-out infinite;
}

.sketch-pen {
  width: 25px;
  height: 4px;
  right: 64px;
  top: 66px;
  background: var(--brand);
  transform: rotate(-18deg);
  animation: sketch-pen 1.6s ease-in-out infinite;
}

.sketch-line {
  height: 3px;
  left: 24px;
  background: var(--brand);
  border-radius: 999px;
  transform-origin: left center;
  animation: draw-line 1.8s ease-in-out infinite;
}

.line-a { width: 56px; top: 52px; animation-delay: 0s; }
.line-b { width: 42px; top: 66px; animation-delay: 0.18s; }
.line-c { width: 64px; top: 80px; animation-delay: 0.36s; }

.app-loading strong {
  color: #2563EB;
  font-size: 18px;
  animation: splash-rise 0.7s ease 0.18s both;
}

.app-loading span {
  color: #4b5563;
  font-weight: 700;
  animation: splash-rise 0.7s ease 0.32s both;
}

@keyframes splash-logo {
  from { opacity: 0; transform: translateY(12px) scale(0.86); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes splash-rise {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes splash-pulse {
  0%, 100% { box-shadow: 0 18px 45px rgba(124, 44, 255, 0.18); }
  50% { box-shadow: 0 22px 58px rgba(124, 44, 255, 0.34); }
}

@keyframes sketch-arm {
  0%, 100% { transform: rotate(-8deg); }
  50% { transform: rotate(9deg); }
}

@keyframes sketch-pen {
  0%, 100% { transform: translate(-1px, -2px) rotate(-18deg); }
  50% { transform: translate(-10px, 9px) rotate(14deg); }
}

@keyframes draw-line {
  0% { transform: scaleX(0.18); opacity: 0.28; }
  45%, 100% { transform: scaleX(1); opacity: 1; }
}

@keyframes loader-ring-spin {
  to { transform: rotate(360deg); }
}

.approval-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border: 1px solid rgba(247, 185, 85, 0.38);
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(247, 185, 85, 0.14), rgba(239, 17, 17, 0.08));
  padding: 16px;
  margin-bottom: 18px;
}

.approval-banner strong {
  display: block;
  margin-bottom: 4px;
}

.approval-banner p {
  margin-bottom: 0;
  color: var(--muted);
}

:root[data-theme="light"] body {
  background:
    radial-gradient(circle at top left, rgba(239, 17, 17, 0.1), transparent 28rem),
    linear-gradient(180deg, #f9fafc 0%, #edf0f5 100%);
}

.auth-page {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 520px);
  gap: clamp(24px, 5vw, 70px);
  align-items: center;
  padding: clamp(22px, 5vw, 72px);
}

.auth-brand {
  display: grid;
  gap: 22px;
  max-width: 760px;
}

.auth-brand img {
  width: 118px;
  height: 118px;
  object-fit: contain;
  border-radius: 50%;
  background: #fff;
}

.auth-card {
  padding: clamp(20px, 3vw, 30px);
}

.check-line {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--muted);
  line-height: 1.4;
}

.check-line input {
  width: auto;
  min-height: 0;
  margin-top: 3px;
}

.auth-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.auth-direct-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 16px;
}

.auth-direct-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
  text-align: center;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.auth-direct-links a:hover {
  transform: translateY(-2px);
  border-color: rgba(239, 17, 17, 0.55);
  background: rgba(239, 17, 17, 0.1);
}

.front-option-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 24px;
}

/* Zaventra Console skin */
:root {
  color-scheme: dark;
  --bg: #070b10;
  --panel: #0f151c;
  --panel-2: #151b23;
  --line: rgba(255, 255, 255, 0.1);
  --text: #f6f7fb;
  --muted: #9aa3b2;
  --soft: #697386;
  --brand: #ef1111;
  --brand-2: #ff3d3d;
}

body {
  background:
    radial-gradient(circle at 14% 18%, rgba(239, 17, 17, 0.12), transparent 26rem),
    radial-gradient(circle at 78% 24%, rgba(239, 17, 17, 0.07), transparent 22rem),
    linear-gradient(135deg, #05080d 0%, #081019 48%, #05070b 100%);
  color: var(--text);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,0.028) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.028) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(180deg, rgba(0,0,0,.7), transparent 82%);
  z-index: -1;
}

.shell {
  background: transparent;
}

.sidebar {
  background: rgba(5, 10, 16, 0.92);
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 18px 0 80px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(18px);
}

.brand {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 18px;
}

.brand strong {
  color: #ff2c2c;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.brand span {
  color: #ffffff;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 10px;
}

.nav button {
  color: #c7ced9;
  border-color: transparent;
  background: transparent;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.nav button.active,
.nav button:hover {
  color: #ffffff;
  border-color: rgba(239, 17, 17, 0.7);
  background: linear-gradient(90deg, rgba(239, 17, 17, 0.24), rgba(239, 17, 17, 0.04));
  transform: translateX(3px);
  box-shadow: inset 3px 0 0 #ef1111, 0 10px 26px rgba(239, 17, 17, 0.12);
}

.sidebar-card,
.panel,
.premium-panel,
.hero-panel,
.auth-card,
.auth-brand,
.metric,
.row,
.release-card,
.ticket-row,
.claim-row,
.membership,
.user-module-panel,
.admin-topbar-premium,
.control-hero,
.user-topbar-premium,
.deploy-panel {
  background:
    linear-gradient(180deg, rgba(17, 24, 32, 0.9), rgba(10, 15, 22, 0.86));
  border: 1px solid rgba(255, 255, 255, 0.09);
  color: var(--text);
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(18px);
}

.panel,
.premium-panel,
.metric,
.row,
.release-card {
  animation: console-card-enter 0.34s ease both;
}

.panel:hover,
.premium-panel:hover,
.metric:hover,
.release-card:hover,
.row:hover {
  border-color: rgba(239, 17, 17, 0.38);
  box-shadow: 0 26px 90px rgba(0, 0, 0, 0.34), 0 0 0 1px rgba(239, 17, 17, 0.08);
}

.topbar,
.admin-topbar-premium {
  align-items: center;
}

.admin-command input,
.smart-search,
input,
select,
textarea {
  background: rgba(5, 10, 16, 0.72);
  border-color: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

input::placeholder,
textarea::placeholder {
  color: #707b8d;
}

.primary-button {
  color: #ffffff;
  background: linear-gradient(135deg, #ff2a2a, #c90808);
  border-color: rgba(255, 60, 60, 0.82);
  box-shadow: 0 14px 34px rgba(239, 17, 17, 0.24);
}

.ghost-button {
  color: #f5f7fb;
  background: rgba(255, 255, 255, 0.055);
  border-color: rgba(255, 255, 255, 0.12);
}

.danger-button {
  color: #fff;
  background: rgba(239, 17, 17, 0.14);
  border-color: rgba(239, 17, 17, 0.42);
}

.status,
.badge {
  background: rgba(239, 17, 17, 0.12);
  border: 1px solid rgba(239, 17, 17, 0.26);
  color: #ffb4b4;
}

.status.verified,
.status.live,
.status.delivered,
.status.approved {
  background: rgba(28, 185, 112, 0.16);
  border-color: rgba(28, 185, 112, 0.28);
  color: #4be08f;
}

.metric strong,
.admin-kpis .metric strong,
.compact-metrics .metric strong {
  color: #ffffff;
}

.metric::after,
.premium-panel::after,
.hero-panel::after {
  border-color: rgba(239, 17, 17, 0.2);
}

.admin-bell {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.14);
}

.admin-bell span,
.notification-badge {
  background: #ef1111;
  color: #ffffff;
  box-shadow: 0 0 0 4px rgba(239, 17, 17, 0.16);
}

.bell-dropdown,
.command-palette,
.notification-menu {
  background: rgba(8, 13, 20, 0.96);
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.42);
}

.activity-feed > div,
.metadata-grid span,
.upload-drop,
.file-tile,
.module-toggle-grid label,
.permission-grid label,
.role-grid label,
.dsp-choice,
.wl-wizard-shell,
.wl-clean-hero,
.admin-action-card,
.dashboard-widget,
.smart-admin-card,
.sub-label-row,
.track-row,
.credit-row {
  background: rgba(255, 255, 255, 0.045);
  border-color: rgba(255, 255, 255, 0.09);
  color: var(--text);
}

table thead th {
  background: rgba(239, 17, 17, 0.12);
  color: #ffb4b4;
}

table tbody tr {
  transition: background 0.18s ease, transform 0.18s ease;
}

table tbody tr:hover {
  background: rgba(239, 17, 17, 0.055);
}

.front-option {
  background: rgba(255, 255, 255, 0.055);
  border-color: rgba(255, 255, 255, 0.12);
}

.front-option:hover {
  border-color: rgba(239, 17, 17, 0.55);
  box-shadow: 0 22px 70px rgba(239, 17, 17, 0.14);
}

@keyframes console-card-enter {
  from { opacity: 0; transform: translateY(12px) scale(0.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.front-option {
  display: grid;
  gap: 6px;
  min-height: 116px;
  padding: 18px;
  border: 1px solid rgba(239, 17, 17, 0.16);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--text);
  box-shadow: 0 16px 40px rgba(17, 24, 39, 0.08);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.front-option:hover {
  transform: translateY(-3px);
  border-color: rgba(239, 17, 17, 0.42);
  box-shadow: 0 24px 60px rgba(239, 17, 17, 0.12);
}

.front-option span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.demo-logins {
  display: grid;
  gap: 8px;
  width: fit-content;
  border: 1px solid rgba(255, 207, 51, 0.24);
  border-radius: var(--radius);
  padding: 14px 16px;
  background: rgba(255, 207, 51, 0.08);
  color: var(--muted);
}

.demo-logins strong {
  color: var(--text);
}

.notice-box {
  border: 1px solid rgba(55, 211, 153, 0.3);
  border-radius: var(--radius);
  padding: 12px;
  margin-bottom: 14px;
  background: rgba(55, 211, 153, 0.1);
  color: var(--muted);
  overflow-wrap: anywhere;
}

.notice-box strong {
  color: var(--text);
  display: block;
  margin-bottom: 6px;
}

.full {
  grid-column: 1 / -1;
}

.upload-wizard {
  overflow: visible;
}

.wizard-step {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel-2);
}

.wizard-step span {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  font-weight: 800;
}

.wizard-step small,
.metadata-review summary {
  color: var(--muted);
}

.option-grid,
.dsp-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
}

.dsp-choice {
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.03);
}

.metadata-review-row td {
  background: rgba(255, 255, 255, 0.02);
}

.metadata-review {
  display: grid;
  gap: 14px;
  padding: 14px 0 4px;
}

.notice-board {
  border: 1px solid rgba(255, 207, 51, 0.26);
  background: rgba(255, 207, 51, 0.08);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 18px;
}

.notice-track {
  display: flex;
  gap: 42px;
  width: max-content;
  padding: 12px 18px;
  animation: notice-slide 28s linear infinite;
}

.notice-track span {
  white-space: nowrap;
  color: var(--muted);
}

.notice-track strong {
  color: var(--text);
  margin-right: 8px;
}

@keyframes notice-slide {
  from { transform: translateX(0); }
  to { transform: translateX(-45%); }
}

.reset-link-box {
  display: grid;
  gap: 6px;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.shell {
  display: grid;
  grid-template-columns: 280px 1fr;
  min-height: 100vh;
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  border-right: 1px solid var(--line);
  background: rgba(9, 11, 16, 0.86);
  backdrop-filter: blur(16px);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

:root[data-theme="light"] .sidebar {
  background: rgba(255, 255, 255, 0.9);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand img {
  width: 58px;
  height: 58px;
  object-fit: contain;
  border-radius: 50%;
  background: #fff;
}

.brand strong {
  display: block;
  font-size: 18px;
}

.brand span {
  color: var(--muted);
  font-size: 13px;
}

.nav {
  display: grid;
  gap: 8px;
}

.nav button,
.ghost-button,
.primary-button,
.danger-button {
  border: 1px solid transparent;
  border-radius: var(--radius);
  min-height: 42px;
  padding: 10px 12px;
  color: var(--text);
  background: transparent;
  text-align: left;
}

.nav button {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
}

.nav button.active,
.nav button:hover {
  color: var(--text);
  border-color: rgba(239, 17, 17, 0.35);
  background: rgba(239, 17, 17, 0.12);
}

.sidebar-card {
  margin-top: auto;
  border: 1px solid rgba(255, 207, 51, 0.24);
  background: linear-gradient(135deg, rgba(255, 207, 51, 0.12), rgba(239, 17, 17, 0.1));
  border-radius: var(--radius);
  padding: 16px;
}

.sidebar-card small,
.eyebrow,
.muted {
  color: var(--muted);
}

.main {
  position: relative;
  padding: 26px clamp(18px, 3vw, 42px) 46px;
  overflow: hidden;
}

.global-top-actions {
  position: sticky;
  top: 14px;
  z-index: 80;
  display: flex;
  justify-content: flex-end;
  height: 0;
  pointer-events: none;
}

.global-top-actions .bell-wrap {
  pointer-events: auto;
}

.topbar {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 24px;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 12px;
  font-weight: 800;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  font-size: clamp(30px, 4vw, 54px);
  line-height: 1;
  max-width: 900px;
  margin-bottom: 12px;
}

h2 {
  font-size: 24px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  gap: 20px;
  align-items: stretch;
  margin-bottom: 22px;
}

.hero-panel,
.panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(16, 20, 29, 0.88);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.24);
}

.hero-panel {
  padding: clamp(22px, 4vw, 42px);
  min-height: 330px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}

.hero-panel::after {
  content: "";
  position: absolute;
  inset: auto -12% -22% auto;
  width: 340px;
  height: 340px;
  border: 26px solid rgba(239, 17, 17, 0.16);
  border-radius: 50%;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  position: relative;
  z-index: 1;
}

.primary-button {
  background: var(--brand);
  border-color: var(--brand);
  font-weight: 800;
  text-align: center;
}

.compact {
  min-height: 34px;
  padding: 7px 10px;
  font-size: 12px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  text-decoration: none;
}

.ghost-button {
  border-color: var(--line);
  background: var(--panel-2);
  text-align: center;
}

.danger-button {
  background: rgba(255, 107, 107, 0.14);
  border-color: rgba(255, 107, 107, 0.38);
  color: #ffd1d1;
  text-align: center;
}

.profile-card {
  padding: 24px;
  display: grid;
  gap: 18px;
}

.profile-card img {
  width: 96px;
  height: 96px;
  object-fit: contain;
  border-radius: 50%;
  background: #fff;
}

.profile-preview {
  width: 96px;
  height: 96px;
  object-fit: cover;
  border-radius: 50%;
  border: 1px solid var(--line);
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(150px, 1fr));
  gap: 14px;
  margin-bottom: 22px;
}

.metric {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  background: rgba(21, 27, 39, 0.78);
}

.metric strong {
  display: block;
  font-size: 26px;
  margin-top: 8px;
}

.royalty-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border: 1px solid rgba(55, 211, 153, 0.22);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 22px;
  background: linear-gradient(135deg, rgba(55, 211, 153, 0.12), rgba(255, 207, 51, 0.08));
}

.royalty-band h2 {
  margin-bottom: 8px;
}

.royalty-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(100px, 1fr));
  gap: 10px;
  min-width: min(420px, 100%);
}

.royalty-stats span {
  display: grid;
  gap: 4px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  padding: 12px;
  background: rgba(0, 0, 0, 0.12);
  color: var(--muted);
}

.royalty-stats strong {
  color: var(--text);
  font-size: 22px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.label-suite {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 22px;
}

.panel {
  padding: 20px;
  animation: panel-enter 0.24s ease both;
}

.panel-header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-bottom: 16px;
}

.table {
  display: grid;
  gap: 10px;
}

.release-list {
  display: grid;
  gap: 16px;
}

.release-card {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr) 150px;
  gap: 16px;
  align-items: start;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.035);
  padding: 14px;
}

.release-artwork {
  width: 150px;
  aspect-ratio: 1;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #0b0f17;
  overflow: hidden;
  display: grid;
  place-items: center;
}

.release-artwork img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.empty-art {
  color: var(--soft);
  font-weight: 800;
  text-align: center;
}

.release-detail {
  display: grid;
  gap: 12px;
  min-width: 0;
}

.release-title-line {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.release-title-line h3 {
  margin-bottom: 4px;
}

.metadata-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(120px, 1fr));
  gap: 10px;
}

.metadata-grid span,
.file-grid > div {
  display: grid;
  gap: 4px;
  min-width: 0;
  color: var(--muted);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius);
  padding: 10px;
  background: rgba(0, 0, 0, 0.14);
}

.metadata-grid strong,
.file-grid strong {
  color: var(--text);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.store-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  border: 1px solid rgba(239, 17, 17, 0.28);
  color: #ffd1d1;
  border-radius: 999px;
  padding: 5px 9px;
  font-size: 12px;
  font-weight: 800;
  background: rgba(239, 17, 17, 0.1);
}

.file-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.file-link {
  color: #ffcf33;
  overflow-wrap: anywhere;
  word-break: break-word;
  text-decoration: none;
  font-weight: 800;
}

.file-link:hover {
  text-decoration: underline;
}

audio {
  width: 100%;
  margin-top: 6px;
}

.release-actions {
  display: grid;
  gap: 8px;
}

.tool-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
  align-items: center;
}

.claim-row {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(150px, 0.35fr);
  gap: 12px;
  align-items: start;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.035);
}

.admin-claim-row {
  grid-template-columns: minmax(260px, 1fr) minmax(150px, 0.3fr) minmax(220px, 0.55fr) auto;
}

.production-panel {
  position: relative;
  overflow: hidden;
}

.production-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent, rgba(55, 211, 153, 0.08), transparent);
  transform: translateX(-100%);
  animation: shimmer-sweep 4.5s ease-in-out infinite;
  pointer-events: none;
}

.production-service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 10px;
}

.production-service-grid .check-line {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  padding: 10px;
  background: rgba(255, 255, 255, 0.04);
}

.production-crm-row {
  grid-template-columns: minmax(280px, 1fr) minmax(150px, 0.25fr) minmax(240px, 0.55fr) auto;
}

.release-review-form {
  display: grid;
  gap: 8px;
}

.release-review-form textarea,
.admin-claim-row textarea {
  min-height: 74px;
}

.simple-credit-list,
.optional-credit-list {
  display: grid;
  gap: 12px;
}

.artist-credit-group {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px;
  background: rgba(255, 255, 255, 0.03);
}

.mini-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.icon-button {
  width: 38px;
  min-height: 38px;
  padding: 0;
  display: grid;
  place-items: center;
}

.simple-credit-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 10px;
  margin-top: 8px;
}

.artist-credit-group .simple-credit-row {
  grid-template-columns: 1fr;
}

.partner-list {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

.partner-form {
  display: grid;
  gap: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  padding: 14px;
  background: rgba(255, 255, 255, 0.035);
}

.partner-title {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}

.release-type-switch {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.release-type-switch label,
.tenant-row,
.track-row,
.credit-row {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  padding: 12px;
  background: rgba(255, 255, 255, 0.035);
}

.release-type-switch label {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
}

.compact-notice {
  margin: 10px 0 0;
}

.track-header {
  margin-top: 6px;
}

.track-list,
.track-admin-list {
  display: grid;
  gap: 10px;
}

.track-row {
  display: grid;
  grid-template-columns: 38px minmax(160px, 1fr) minmax(140px, 0.8fr) 90px 90px minmax(150px, 1fr);
  gap: 10px;
  align-items: end;
}

.credit-list {
  display: grid;
  gap: 10px;
}

.credit-row {
  display: grid;
  grid-template-columns: minmax(140px, 0.7fr) minmax(160px, 1fr) minmax(140px, 0.8fr) minmax(180px, 1fr);
  gap: 10px;
  align-items: end;
}

.track-index {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(239, 17, 17, 0.16);
  color: var(--text);
  font-weight: 900;
}

.track-admin-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.track-admin-list > div {
  display: grid;
  gap: 4px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius);
  padding: 10px;
  background: rgba(0, 0, 0, 0.12);
}

.tenant-row {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) minmax(130px, 0.5fr) minmax(110px, 0.4fr) auto;
  gap: 12px;
  align-items: center;
}

.tenant-row img {
  width: 54px;
  height: 54px;
  object-fit: contain;
  border-radius: 50%;
  background: #fff;
}

.compact-note {
  margin-top: 12px;
  margin-bottom: 0;
}

.divider-line {
  height: 1px;
  background: var(--line);
  margin: 16px 0;
}

.compact-metrics {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 14px;
}

.compact-metrics .metric {
  padding: 12px;
}

.compact-metrics .metric strong {
  font-size: 18px;
}

.ledger-table {
  margin-top: 12px;
}

.check-grid label {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  padding: 10px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
}

.check-grid input {
  width: auto;
  min-height: auto;
}

.tenant-features {
  margin-top: 8px;
}

.admin-section-map,
.backup-select-grid,
.support-topic-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.admin-section-map {
  margin-bottom: 18px;
}

.smart-admin-bar {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto minmax(150px, 0.25fr) minmax(170px, 0.25fr) auto;
  gap: 12px;
  align-items: end;
  margin-bottom: 18px;
}

.smart-admin-stats {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

.smart-admin-stats span {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 9px 10px;
  color: var(--muted);
  background: var(--panel-2);
}

.smart-admin-stats strong {
  color: var(--text);
}

.admin-workspace {
  --admin-bg: #0b0f1a;
  --admin-card: rgba(18, 24, 38, 0.88);
  --admin-line: rgba(124, 139, 255, 0.18);
  --admin-accent: #6c5cff;
  display: grid;
  gap: 18px;
}

.admin-topbar-premium {
  border: 1px solid var(--admin-line);
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(18, 24, 38, 0.96), rgba(11, 15, 26, 0.92));
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.28);
  padding: 18px;
  display: grid;
  grid-template-columns: minmax(220px, 0.7fr) minmax(320px, 1.3fr);
  gap: 16px;
  align-items: center;
}

.admin-topbar-premium h1 {
  font-size: clamp(28px, 3vw, 44px);
  margin-bottom: 0;
}

.admin-command {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) auto minmax(120px, 0.35fr) minmax(140px, 0.35fr) minmax(130px, 0.35fr) auto auto;
  gap: 10px;
  align-items: center;
}

.admin-command input,
.admin-command select {
  min-height: 40px;
}

.admin-bell {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 207, 51, 0.28);
  background: rgba(255, 207, 51, 0.1);
  color: var(--text);
  font-weight: 900;
}

.admin-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  background: #fff;
  border: 1px solid var(--admin-line);
}

.admin-kpis {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px;
}

.admin-kpis .metric,
.premium-panel {
  border-color: var(--admin-line);
  background: var(--admin-card);
  box-shadow: 0 20px 70px rgba(0, 0, 0, 0.24);
}

.admin-kpis .metric {
  position: relative;
  overflow: hidden;
}

.admin-kpis .metric::after,
.premium-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.premium-panel {
  position: relative;
}

.quick-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.quick-grid button {
  border: 1px solid var(--admin-line);
  border-radius: var(--radius);
  background: rgba(108, 92, 255, 0.12);
  color: var(--text);
  min-height: 58px;
  font-weight: 900;
}

.quick-grid button:hover,
.nav button:hover {
  box-shadow: 0 0 0 1px rgba(108, 92, 255, 0.26), 0 12px 34px rgba(108, 92, 255, 0.12);
}

.admin-table-wrap {
  width: 100%;
  overflow-x: auto;
}

.admin-table-wrap table {
  width: 100%;
  border-collapse: collapse;
  min-width: 860px;
}

.admin-table-wrap th,
.admin-table-wrap td {
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  padding: 12px 10px;
  text-align: left;
  vertical-align: middle;
}

.admin-table-wrap th {
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.user-cell {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 190px;
}

.user-cell img,
.release-cover-cell img,
.release-cover-cell span {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  object-fit: cover;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.user-cell small,
.admin-table-wrap small {
  display: block;
  color: var(--muted);
  margin-top: 3px;
}

.release-cover-cell {
  width: 52px;
}

.action-menu {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.bar-chart {
  height: 240px;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
  align-items: end;
  padding-top: 20px;
}

.bar-chart div {
  height: 100%;
  display: grid;
  grid-template-rows: 1fr auto;
  gap: 8px;
  align-items: end;
  text-align: center;
  color: var(--muted);
}

.bar-chart span {
  width: 100%;
  min-height: 6px;
  border-radius: 8px 8px 2px 2px;
  background: linear-gradient(180deg, #7c8bff, #37d399);
  box-shadow: 0 10px 30px rgba(108, 92, 255, 0.18);
}

.upload-drop {
  border: 1px dashed rgba(124, 139, 255, 0.42);
  border-radius: var(--radius);
  padding: 16px;
  background: rgba(124, 139, 255, 0.07);
  transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}

.upload-drop span {
  display: block;
  color: var(--muted);
  margin-top: 7px;
  font-size: 12px;
}

.upload-drop.drag-over {
  border-color: var(--brand-2);
  background: rgba(55, 211, 153, 0.13);
  transform: translateY(-1px);
}

.drop-file-name {
  overflow-wrap: anywhere;
}

.smart-checklist,
.smart-suggestions,
.support-thread,
.activity-feed,
.module-toggle-grid {
  display: grid;
  gap: 10px;
}

.smart-checklist {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.smart-checklist span,
.smart-suggestions span,
.activity-feed > div,
.support-thread > div {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.04);
}

.smart-checklist .ok {
  color: var(--ok);
}

.smart-checklist .missing {
  color: var(--warn);
}

.smart-suggestions {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: center;
}

.support-reply-form,
.admin-ticket-form {
  display: grid;
  grid-template-columns: minmax(160px, 1fr) minmax(120px, 180px) auto;
  gap: 8px;
  margin-top: 10px;
}

.admin-ticket-form {
  grid-template-columns: 130px minmax(120px, 1fr) minmax(120px, 1fr) auto;
}

.command-palette {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: start center;
  padding-top: 10vh;
  background: rgba(3, 6, 13, 0.55);
  backdrop-filter: blur(10px);
}

.command-box {
  width: min(620px, calc(100vw - 28px));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.42);
  padding: 12px;
}

#commandResults {
  display: grid;
  gap: 6px;
  margin-top: 10px;
}

#commandResults button {
  width: 100%;
  justify-content: flex-start;
  background: var(--panel-2);
}

.upload-progress {
  display: grid;
  grid-template-columns: 120px 1fr 48px;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  color: var(--muted);
}

.upload-progress div {
  height: 8px;
  border-radius: 999px;
  overflow: hidden;
  background: var(--panel-2);
}

.upload-progress i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--brand), var(--brand-2));
  transition: width 0.24s ease;
}

.bell-wrap {
  position: relative;
}

.admin-bell {
  min-width: 42px;
  height: 42px;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  position: relative;
  background: #ffffff;
  border: 1px solid rgba(239, 17, 17, 0.22);
  color: #b90d0d;
  box-shadow: 0 12px 30px rgba(17, 24, 39, 0.1);
}

.admin-bell svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.admin-bell span {
  position: absolute;
  top: -5px;
  right: -5px;
  min-width: 20px;
  height: 20px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: var(--brand);
  color: #fff;
  font-size: 11px;
  line-height: 1;
}

.catalog-create-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
}

.catalog-create-bar .ghost-button {
  min-width: 180px;
}

.active-choice {
  border-color: rgba(239, 17, 17, 0.45);
  background: #fff1f1;
  color: #b90d0d;
}

.video-vevo-fields {
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 16px;
  background: #fbfcff;
}

.bell-dropdown {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  width: min(360px, calc(100vw - 28px));
  z-index: 70;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(18, 24, 38, 0.96);
  box-shadow: 0 26px 80px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(16px);
}

.control-hero,
.wl-wizard-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  gap: 18px;
  margin-bottom: 18px;
}

.control-hero {
  padding: clamp(18px, 3vw, 30px);
  border: 1px solid var(--admin-line);
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(239, 17, 17, 0.13), rgba(55, 211, 153, 0.1)), rgba(18, 24, 38, 0.86);
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.28);
}

.control-hero h1 {
  font-size: clamp(30px, 5vw, 58px);
  margin: 6px 0 8px;
}

.compact-actions {
  align-content: center;
}

.wl-wizard-form {
  display: grid;
  gap: 16px;
}

.wizard-rail {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 8px;
}

.wizard-rail span,
.wl-review-grid span {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 9px;
  background: rgba(255, 255, 255, 0.04);
  font-size: 12px;
}

.wizard-rail b {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  margin-right: 6px;
  border-radius: 50%;
  background: var(--brand);
}

.wizard-card {
  border: 1px solid rgba(124, 139, 255, 0.18);
  border-radius: var(--radius);
  padding: 16px;
  background: rgba(255, 255, 255, 0.035);
  animation: panel-enter 0.24s ease both;
}

.wl-module-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.wl-module-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px;
  background: rgba(255, 255, 255, 0.04);
  cursor: pointer;
}

.wl-module-card:has(input:checked) {
  border-color: rgba(55, 211, 153, 0.62);
  box-shadow: 0 0 28px rgba(55, 211, 153, 0.12);
}

.wl-review-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.password-meter {
  height: 8px;
  border-radius: 999px;
  background: var(--panel-2);
  overflow: hidden;
}

.password-meter span {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--warn), var(--ok));
  transition: width 0.18s ease;
}

.wl-clean-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 320px);
  gap: 18px;
  align-items: stretch;
  margin-bottom: 18px;
  padding: clamp(18px, 3vw, 30px);
  border: 1px solid var(--admin-line);
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(239, 17, 17, 0.14), rgba(55, 211, 153, 0.08)), rgba(18, 24, 38, 0.9);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.26);
  overflow: hidden;
}

.wl-clean-hero h1 {
  margin: 8px 0;
  font-size: clamp(28px, 4vw, 48px);
}

.wl-mini-preview {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.05);
  min-height: 210px;
  animation: panel-enter 0.32s ease both;
}

.wl-mini-preview img {
  width: 74px;
  height: 74px;
  object-fit: contain;
  border-radius: 18px;
  background: #fff;
  padding: 8px;
}

.wl-clean-card,
.wl-help-card {
  overflow: hidden;
}

.wl-clean-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.045), transparent);
  transform: translateX(-100%);
  animation: shimmer-sweep 5s ease-in-out infinite;
  pointer-events: none;
}

.wl-simple-modules {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.wl-simple-modules label {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.04);
  transition: transform 0.18s ease, border-color 0.18s ease;
}

.wl-simple-modules label:has(input:checked) {
  border-color: rgba(55, 211, 153, 0.55);
}

.admin-empty {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  background: var(--panel-2);
  display: grid;
  gap: 6px;
  color: var(--muted);
}

.user-workspace {
  --user-line: rgba(124, 139, 255, 0.18);
  display: grid;
  gap: 18px;
}

.user-topbar-premium {
  border: 1px solid var(--user-line);
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(18, 24, 38, 0.96), rgba(11, 15, 26, 0.9));
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.28);
  padding: 18px;
  align-items: center;
}

:root[data-theme="light"] .user-topbar-premium {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(240, 242, 247, 0.92));
}

.user-topbar-premium h1 {
  font-size: clamp(28px, 3vw, 46px);
  margin-bottom: 8px;
}

.user-module-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 22px;
}

.user-module-card {
  border: 1px solid rgba(124, 139, 255, 0.22);
  border-radius: var(--radius);
  min-height: 118px;
  padding: 16px;
  background: linear-gradient(135deg, rgba(124, 139, 255, 0.12), rgba(55, 211, 153, 0.06));
  color: var(--text);
  display: grid;
  align-content: space-between;
  gap: 8px;
  text-align: left;
}

.user-module-card:hover {
  border-color: rgba(124, 139, 255, 0.48);
  transform: translateY(-1px);
  box-shadow: 0 18px 44px rgba(108, 92, 255, 0.16);
}

.user-module-card span {
  color: var(--muted);
  font-weight: 800;
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 0.06em;
}

.user-module-card strong {
  font-size: 22px;
}

.user-module-card small {
  color: var(--muted);
  line-height: 1.35;
}

.user-kpis .metric,
.user-module-panel {
  border-color: rgba(124, 139, 255, 0.18);
  background: rgba(18, 24, 38, 0.88);
}

:root[data-theme="light"] .user-kpis .metric,
:root[data-theme="light"] .user-module-panel {
  background: rgba(255, 255, 255, 0.92);
}

.kyc-action-list {
  gap: 8px;
  align-items: flex-start;
}

@media (max-width: 1180px) {
  .admin-topbar-premium,
  .admin-command {
    grid-template-columns: 1fr;
  }

  .admin-kpis {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .quick-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .user-module-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.admin-section-map span,
.backup-select-grid label {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  padding: 9px 11px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  font-weight: 800;
}

.backup-select-grid {
  margin: 8px 0 12px;
}

.backup-select-grid input {
  width: auto;
  min-height: auto;
  margin-right: 6px;
}

.tenant-catalog-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: start;
}

.mini-release-list .release-card {
  grid-template-columns: 96px minmax(0, 1fr) 140px;
}

.mini-release-list .release-artwork {
  width: 96px;
}

.support-topic-grid {
  margin-bottom: 14px;
}

.referral-card {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  border: 1px solid rgba(55, 211, 153, 0.22);
  border-radius: var(--radius);
  padding: 14px;
  background: rgba(55, 211, 153, 0.08);
}

.referral-card strong {
  display: block;
  font-size: 26px;
  letter-spacing: 0.04em;
  margin: 5px 0;
}

.compact-form {
  margin-top: 12px;
}

.row {
  display: grid;
  grid-template-columns: minmax(170px, 1.2fr) minmax(100px, 0.6fr) minmax(95px, 0.5fr);
  gap: 12px;
  align-items: center;
  padding: 12px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius);
  min-width: 0;
}

.row > *,
.ticket-row > *,
.release-card > *,
.claim-row > *,
.metadata-grid span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.row.admin {
  grid-template-columns: minmax(170px, 1.2fr) minmax(100px, 0.7fr) minmax(110px, 0.6fr) 120px;
}

.admin-table .row.admin {
  grid-template-columns: minmax(170px, 1.2fr) minmax(120px, 0.7fr) minmax(95px, 0.5fr) minmax(150px, 0.8fr) minmax(120px, 0.5fr);
}

.account-row {
  grid-template-columns: minmax(180px, 1.2fr) minmax(100px, 0.6fr) minmax(220px, 1fr) minmax(130px, 0.5fr);
}

.ticket-row {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto auto auto;
  gap: 12px;
  align-items: start;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.035);
}

.ticket-row p {
  margin-bottom: 6px;
}

.status {
  width: fit-content;
  padding: 5px 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  background: rgba(247, 185, 85, 0.15);
  color: #ffd18b;
}

.status.delivered,
.status.live,
.status.active,
.status.verified,
.status.approved,
.status.claimed,
.status.claim-released,
.status.takedown-completed {
  background: rgba(55, 211, 153, 0.15);
  color: #86efc6;
}

.status.rejected,
.status.suspended {
  background: rgba(255, 107, 107, 0.18);
  color: #ffb4b4;
}

.status.pending {
  background: rgba(247, 185, 85, 0.15);
  color: #ffd18b;
}

.status.under-processing,
.status.in-review {
  background: rgba(96, 165, 250, 0.15);
  color: #bfdbfe;
}

.membership-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.membership {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  background: linear-gradient(180deg, rgba(21, 27, 39, 0.9), rgba(16, 20, 29, 0.8));
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.membership.highlight {
  border-color: rgba(239, 17, 17, 0.58);
  box-shadow: inset 0 0 0 1px rgba(239, 17, 17, 0.24);
}

.price {
  font-size: 32px;
  font-weight: 900;
}

.features {
  display: grid;
  gap: 8px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.features li::before {
  content: "+";
  color: var(--ok);
  margin-right: 8px;
  font-weight: 900;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.feature-grid span,
.role-card {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  padding: 12px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  font-weight: 700;
}

.role-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  max-height: 320px;
  overflow: auto;
}

.role-card {
  display: grid;
  gap: 6px;
  align-content: start;
}

.role-card strong {
  color: var(--text);
}

.role-card span {
  font-size: 12px;
  line-height: 1.35;
}

.activity-table {
  margin-top: 14px;
}

.permission-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.rich-permission-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  align-items: start;
}

.permission-category {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.04);
}

.permission-category .mini-header {
  margin-bottom: 8px;
}

.advanced-metadata {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.04);
}

.advanced-metadata textarea {
  min-height: 160px;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
}

.admin-inline-search {
  width: 100%;
  margin: 8px 0 12px;
}

.alpha-directory {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 10px;
  max-height: 280px;
  overflow: auto;
}

.alpha-directory > div {
  display: grid;
  gap: 6px;
  align-content: start;
}

.alpha-directory button {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  color: inherit;
  padding: 8px;
  text-align: left;
}

.smart-create-row .tool-row {
  margin-top: 8px;
}

.smart-dropdown-input.compact-search {
  max-width: 280px;
  min-width: 220px;
}

.inline-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(0, 0, 0, 0.55);
}

.inline-modal-card {
  width: min(760px, 96vw);
  max-height: 88vh;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 18px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.inline-modal.hidden {
  display: none;
}

.permission-grid .check-line {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  padding: 10px;
  background: rgba(255, 255, 255, 0.04);
}

.sub-label-row {
  grid-template-columns: minmax(170px, 1fr) minmax(260px, 1.4fr) minmax(120px, 0.7fr);
}

.mini-permissions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.mini-permissions .check-line {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  padding: 8px;
  background: rgba(255, 255, 255, 0.04);
  font-size: 12px;
}

.sub-label-actions {
  display: grid;
  gap: 8px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.field {
  display: grid;
  gap: 7px;
}

.field.full {
  grid-column: 1 / -1;
}

label {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

input,
select,
textarea {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--text);
  background: #0b0f17;
  padding: 10px 12px;
  outline: none;
}

:root[data-theme="light"] input,
:root[data-theme="light"] select,
:root[data-theme="light"] textarea {
  background: #ffffff;
}

input[readonly] {
  color: var(--muted);
  background: rgba(255, 255, 255, 0.05);
}

.settings-grid {
  align-items: start;
}

.deploy-panel {
  margin-top: 18px;
}

input:focus,
select:focus,
textarea:focus {
  border-color: rgba(239, 17, 17, 0.8);
  box-shadow: 0 0 0 3px rgba(239, 17, 17, 0.16);
}

textarea {
  resize: vertical;
  min-height: 96px;
}

.toast {
  position: fixed;
  right: 20px;
  bottom: 20px;
  max-width: min(420px, calc(100vw - 40px));
  padding: 14px 16px;
  border: 1px solid rgba(55, 211, 153, 0.4);
  border-radius: var(--radius);
  background: #102219;
  color: #d9ffef;
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.36);
  display: none;
  z-index: 20;
}

.toast.show {
  display: block;
  animation: toast-pop 0.18s ease both;
}

button,
.primary-button,
.ghost-button,
.danger-button,
.user-module-card,
.release-card,
.row,
.ticket-row,
.claim-row {
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

button:hover,
.primary-button:hover,
.ghost-button:hover,
.danger-button:hover {
  transform: translateY(-1px);
}

.row:hover,
.ticket-row:hover,
.claim-row:hover,
.release-card:hover {
  border-color: rgba(255, 207, 51, 0.22);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.18);
}

@keyframes panel-enter {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes toast-pop {
  from { opacity: 0; transform: translateY(8px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes shimmer-sweep {
  0%, 55% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

.hidden {
  display: none;
}

/* White premium skin */
.auth-brand,
.auth-card,
.shell,
.topbar,
.panel,
.hero-panel,
.release-card,
.ticket-row,
.claim-row,
.row,
.membership,
.user-module-panel,
.user-topbar-premium,
.premium-panel {
  background: rgba(255, 255, 255, 0.92);
  border-color: rgba(17, 24, 39, 0.09);
  box-shadow: 0 18px 60px rgba(17, 24, 39, 0.08);
}

.admin-workspace {
  --admin-bg: #f7f8fc;
  --admin-card: rgba(255, 255, 255, 0.94);
  --admin-line: rgba(17, 24, 39, 0.1);
  --admin-accent: #ef1111;
}

.admin-topbar-premium,
.control-hero,
.user-topbar-premium,
.deploy-panel {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(248, 250, 252, 0.94)),
    radial-gradient(circle at top right, rgba(239, 17, 17, 0.08), transparent 18rem);
  color: var(--text);
  border-color: rgba(17, 24, 39, 0.1);
  box-shadow: 0 22px 70px rgba(17, 24, 39, 0.09);
}

.sidebar {
  background: rgba(255, 255, 255, 0.94);
  border-color: rgba(17, 24, 39, 0.08);
  box-shadow: 0 18px 60px rgba(17, 24, 39, 0.07);
}

.nav button,
.sidebar-card,
.smart-search,
.command-palette,
.notification-menu,
.bell-dropdown,
.activity-feed > div,
.metadata-grid span,
.upload-drop,
.file-tile,
.module-toggle-grid label,
.permission-grid label,
.role-grid label,
.dsp-choice,
.wl-wizard-shell,
.wl-clean-hero,
.admin-action-card,
.dashboard-widget,
.smart-admin-card,
.sub-label-row,
.track-row,
.credit-row {
  background: rgba(248, 250, 252, 0.86);
  border-color: rgba(17, 24, 39, 0.08);
  color: var(--text);
}

input,
select,
textarea {
  background: #ffffff;
  border-color: #d8deea;
  color: var(--text);
}

.release-artwork,
.cover-preview,
.profile-preview {
  background: #f4f6fa;
}

.admin-table-wrap,
.table-wrap {
  background: #ffffff;
  border-color: rgba(17, 24, 39, 0.08);
}

.muted,
small {
  color: var(--muted);
}

/* Red and white distribution-company polish */
body {
  background:
    linear-gradient(90deg, rgba(239, 17, 17, 0.055) 0 1px, transparent 1px 100%),
    linear-gradient(180deg, #ffffff 0%, #f7f8fb 54%, #eef1f7 100%);
  background-size: 42px 42px, auto;
}

.auth-page {
  position: relative;
  overflow: hidden;
}

.auth-page::before {
  content: "";
  position: fixed;
  inset: 0 auto 0 0;
  width: min(38vw, 520px);
  background: linear-gradient(180deg, #ef1111, #b90d0d);
  opacity: 0.96;
  z-index: -1;
}

.auth-page::after {
  content: "";
  position: fixed;
  left: min(30vw, 420px);
  top: 10vh;
  width: 340px;
  height: 340px;
  border: 34px solid rgba(239, 17, 17, 0.1);
  border-radius: 50%;
  z-index: -1;
}

.auth-brand {
  align-self: stretch;
  align-content: center;
  padding: clamp(24px, 4vw, 48px);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.7);
}

.auth-brand img {
  box-shadow: 0 18px 48px rgba(185, 13, 13, 0.18);
}

.auth-brand h1,
.admin-topbar-premium h1,
.user-topbar-premium h1,
.control-hero h1 {
  letter-spacing: 0;
}

.auth-card {
  border-radius: 24px;
  border-top: 4px solid var(--brand);
}

.front-option {
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(250, 251, 253, 0.94));
}

.front-option strong::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 8px;
  border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 0 4px rgba(239, 17, 17, 0.1);
}

.primary-button {
  color: #ffffff;
  background: linear-gradient(135deg, #ef1111, #b90d0d);
  border-color: #d90f0f;
  box-shadow: 0 14px 32px rgba(239, 17, 17, 0.2);
}

.ghost-button {
  background: #ffffff;
  border-color: #dfe4ee;
  color: #1f2937;
}

.danger-button {
  background: #fff1f1;
  border-color: rgba(239, 17, 17, 0.28);
  color: #b90d0d;
}

.nav button.active,
.nav button:hover {
  background: #fff1f1;
  border-color: rgba(239, 17, 17, 0.25);
  color: #b90d0d;
}

.panel,
.premium-panel,
.metric,
.row,
.release-card,
.ticket-row,
.claim-row,
.membership,
.user-module-panel {
  border-radius: 18px;
}

.panel-header {
  border-bottom: 1px solid rgba(17, 24, 39, 0.06);
  padding-bottom: 12px;
}

.status,
.badge,
.notification-badge {
  border-radius: 999px;
}

table thead th {
  background: #fff5f5;
  color: #9f1010;
}

/* Final console reference override */
:root {
  color-scheme: dark;
  --bg: #070b10;
  --panel: #0f151c;
  --panel-2: #151b23;
  --line: rgba(255, 255, 255, 0.1);
  --text: #f6f7fb;
  --muted: #9aa3b2;
  --brand: #ef1111;
  --brand-2: #ff3d3d;
}

body {
  background:
    radial-gradient(circle at 14% 18%, rgba(239, 17, 17, 0.12), transparent 26rem),
    radial-gradient(circle at 78% 24%, rgba(239, 17, 17, 0.07), transparent 22rem),
    linear-gradient(135deg, #05080d 0%, #081019 48%, #05070b 100%);
  color: var(--text);
}

.sidebar,
.panel,
.premium-panel,
.hero-panel,
.auth-card,
.auth-brand,
.metric,
.row,
.release-card,
.ticket-row,
.claim-row,
.membership,
.user-module-panel,
.admin-topbar-premium,
.control-hero,
.user-topbar-premium,
.deploy-panel {
  background: linear-gradient(180deg, rgba(17, 24, 32, 0.9), rgba(10, 15, 22, 0.86));
  border-color: rgba(255, 255, 255, 0.09);
  color: var(--text);
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(18px);
}

.sidebar {
  background: rgba(5, 10, 16, 0.94);
}

.brand strong {
  color: #ff2c2c;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.brand span {
  color: #ffffff;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 10px;
}

.nav button.active,
.nav button:hover {
  color: #ffffff;
  border-color: rgba(239, 17, 17, 0.7);
  background: linear-gradient(90deg, rgba(239, 17, 17, 0.24), rgba(239, 17, 17, 0.04));
  transform: translateX(3px);
  box-shadow: inset 3px 0 0 #ef1111, 0 10px 26px rgba(239, 17, 17, 0.12);
}

input,
select,
textarea,
.admin-command input,
.smart-search {
  background: rgba(5, 10, 16, 0.72);
  border-color: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

.ghost-button {
  color: #f5f7fb;
  background: rgba(255, 255, 255, 0.055);
  border-color: rgba(255, 255, 255, 0.12);
}

.primary-button {
  color: #ffffff;
  background: linear-gradient(135deg, #ff2a2a, #c90808);
  border-color: rgba(255, 60, 60, 0.82);
  box-shadow: 0 14px 34px rgba(239, 17, 17, 0.24);
}

.activity-feed > div,
.metadata-grid span,
.upload-drop,
.file-tile,
.module-toggle-grid label,
.permission-grid label,
.role-grid label,
.dsp-choice,
.sub-label-row,
.track-row,
.credit-row {
  background: rgba(255, 255, 255, 0.045);
  border-color: rgba(255, 255, 255, 0.09);
  color: var(--text);
}

table thead th {
  background: rgba(239, 17, 17, 0.12);
  color: #ffb4b4;
}

@media (max-width: 1100px) {
  .auth-page {
    grid-template-columns: 1fr;
  }

  .auth-page::before {
    width: 100%;
    height: 260px;
    inset: 0 0 auto 0;
  }

  .auth-page::after {
    left: auto;
    right: -120px;
    top: 56px;
  }

  .shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: relative;
    height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .nav {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .admin-kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero,
  .royalty-band,
  .grid,
  .control-hero,
  .wl-wizard-shell,
  .wl-clean-hero,
  .label-suite,
  .membership-grid {
    grid-template-columns: 1fr;
    flex-direction: column;
    align-items: stretch;
  }

  .metric-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .nav,
  .metric-grid,
  .user-module-grid,
  .form-grid,
  .front-option-grid {
    grid-template-columns: 1fr;
  }

  .row,
  .row.admin,
  .account-row,
  .claim-row,
  .admin-claim-row,
  .production-crm-row,
  .smart-checklist,
  .smart-suggestions,
  .support-reply-form,
  .admin-ticket-form,
  .upload-progress,
  .admin-table .row.admin,
  .sub-label-row,
  .ticket-row,
  .release-card,
  .auth-direct-links,
  .metadata-grid,
  .file-grid,
  .permission-grid,
  .role-grid,
  .release-type-switch,
  .track-row,
  .credit-row,
  .track-admin-list,
  .tenant-row {
    grid-template-columns: 1fr;
  }

  .smart-admin-bar {
    grid-template-columns: 1fr;
  }

  .release-artwork {
    width: 100%;
    max-width: 260px;
  }

  .topbar {
    flex-direction: column;
  }

  .partner-title {
    flex-direction: column;
  }

  .tenant-catalog-head {
    flex-direction: column;
  }

  .referral-card {
    flex-direction: column;
    align-items: stretch;
  }

  .admin-kpis,
  .quick-grid,
  .admin-command,
  .wizard-rail,
  .wl-module-grid,
  .wl-review-grid,
  .wl-simple-modules {
    grid-template-columns: 1fr;
  }

  .admin-topbar-premium {
    padding: 14px;
  }

  .admin-table-wrap table {
    min-width: 720px;
  }
}

/* Final white and red production skin */
:root,
:root[data-theme="console"],
:root[data-theme="light"] {
  color-scheme: light;
  --bg: #f7f8fb;
  --panel: #ffffff;
  --panel-2: #f1f3f7;
  --line: #d9dee8;
  --text: #111827;
  --muted: #5e6675;
  --soft: #7a8494;
  --brand: #e50914;
  --brand-2: #b20710;
}

body {
  background:
    radial-gradient(circle at 12% 0%, rgba(229, 9, 20, 0.09), transparent 28rem),
    linear-gradient(180deg, #ffffff 0%, #f7f8fb 100%);
  color: var(--text);
}

.sidebar,
.panel,
.premium-panel,
.hero-panel,
.auth-card,
.auth-brand,
.metric,
.row,
.release-card,
.ticket-row,
.claim-row,
.membership,
.user-module-panel,
.admin-topbar-premium,
.control-hero,
.user-topbar-premium,
.deploy-panel {
  background: rgba(255, 255, 255, 0.96);
  border-color: rgba(17, 24, 39, 0.1);
  color: var(--text);
  box-shadow: 0 18px 55px rgba(17, 24, 39, 0.08);
  backdrop-filter: blur(14px);
}

.sidebar {
  background: #ffffff;
  border-right: 1px solid #e5e7ef;
}

.brand strong,
.brand span,
.metric strong,
.admin-kpis .metric strong,
.compact-metrics .metric strong {
  color: var(--text);
}

.brand strong {
  color: var(--brand);
}

.nav button {
  color: #303846;
}

.nav button.active,
.nav button:hover {
  color: var(--brand);
  background: #fff0f1;
  border-color: rgba(229, 9, 20, 0.35);
  box-shadow: inset 3px 0 0 var(--brand), 0 10px 28px rgba(229, 9, 20, 0.08);
}

input,
select,
textarea,
.admin-command input,
.smart-search {
  background: #ffffff;
  border-color: #d8deea;
  color: var(--text);
}

input::placeholder,
textarea::placeholder {
  color: #8b95a5;
}

.ghost-button,
.compact,
.file-link {
  color: #172033;
}

.ghost-button {
  background: #ffffff;
  border-color: #cfd6e3;
}

.ghost-button:hover {
  background: #fff0f1;
  border-color: rgba(229, 9, 20, 0.35);
  color: var(--brand);
}

.primary-button {
  color: #ffffff;
  background: linear-gradient(135deg, #e50914, #b20710);
  border-color: #b20710;
  box-shadow: 0 12px 30px rgba(229, 9, 20, 0.22);
}

.danger-button {
  color: #b20710;
  background: #fff0f1;
  border-color: rgba(229, 9, 20, 0.28);
}

.activity-feed > div,
.metadata-grid span,
.upload-drop,
.file-tile,
.module-toggle-grid label,
.permission-grid label,
.role-grid label,
.dsp-choice,
.sub-label-row,
.track-row,
.credit-row,
.front-option,
.bell-dropdown,
.notification-menu {
  background: #ffffff;
  border-color: #e1e6ef;
  color: var(--text);
}

.status,
.badge {
  color: #b20710;
  background: #fff0f1;
  border-color: rgba(229, 9, 20, 0.22);
}

table thead th {
  background: #fff0f1;
  color: #b20710;
}

table tbody tr:hover {
  background: #fff8f8;
}

.admin-bell {
  color: #b20710;
  background: #ffffff;
  border-color: rgba(229, 9, 20, 0.22);
}

.portal-footer {
  margin-top: 14px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.button-loading,
button:disabled {
  opacity: 0.78;
  cursor: wait;
  position: relative;
}

.button-loading::after,
button:disabled::after {
  content: "";
  width: 13px;
  height: 13px;
  margin-left: 8px;
  border: 2px solid rgba(255,255,255,0.45);
  border-top-color: #ffffff;
  border-radius: 50%;
  display: inline-block;
  vertical-align: -2px;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Zaventra Music Group purple production skin */
:root,
:root[data-theme="console"],
:root[data-theme="light"] {
  --brand: #2563EB;
  --brand-2: #2563EB;
  --brand-soft: #f3edff;
}

.brand strong,
.eyebrow,
.nav button.active,
.nav button:hover {
  color: var(--brand);
}

.nav button.active,
.nav button:hover,
.ghost-button:hover,
table thead th,
.status,
.badge,
.danger-button {
  background: #f3edff;
  border-color: rgba(124, 44, 255, 0.28);
  color: #6f1fe8;
}

.primary-button {
  background: linear-gradient(135deg, #2563EB, #2563EB);
  border-color: #6f1fe8;
  box-shadow: 0 14px 34px rgba(124, 44, 255, 0.24);
}

.admin-bell {
  color: #6f1fe8;
  border-color: rgba(124, 44, 255, 0.24);
}

body {
  background:
    radial-gradient(circle at 10% 0%, rgba(124, 44, 255, 0.12), transparent 28rem),
    radial-gradient(circle at 88% 10%, rgba(11, 92, 255, 0.08), transparent 30rem),
    linear-gradient(180deg, #ffffff 0%, #f8f6ff 100%);
}

@media (max-width: 720px) {
  :root,
  :root[data-theme="console"],
  :root[data-theme="light"] {
    color-scheme: dark;
    --bg: #040815;
    --panel: rgba(10, 18, 35, 0.92);
    --panel-2: rgba(16, 28, 54, 0.95);
    --line: rgba(124, 160, 255, 0.18);
    --text: #f7fbff;
    --muted: #98a8c7;
    --soft: #7f8ca6;
    --brand: #2563EB;
    --brand-2: #2563EB;
  }

  body {
    background:
      radial-gradient(circle at 50% -8%, rgba(11, 92, 255, 0.42), transparent 22rem),
      radial-gradient(circle at 0% 30%, rgba(124, 44, 255, 0.22), transparent 20rem),
      linear-gradient(180deg, #040815 0%, #07101f 100%);
    color: var(--text);
  }

  .shell {
    display: block;
    min-height: 100vh;
    padding-bottom: 76px;
  }

  .sidebar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    top: auto;
    width: auto;
    height: 72px;
    z-index: 50;
    padding: 7px 10px;
    background: rgba(3, 9, 22, 0.94);
    border-top: 1px solid rgba(124, 160, 255, 0.18);
    border-right: 0;
    backdrop-filter: blur(22px);
    overflow: hidden;
  }

  .brand,
  .sidebar-card,
  .portal-footer {
    display: none;
  }

  .nav {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 1fr;
    gap: 4px;
    overflow-x: auto;
    overflow-y: hidden;
    height: 100%;
    max-width: 100%;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .nav::-webkit-scrollbar {
    display: none;
  }

  .nav button {
    min-width: 64px;
    padding: 6px 4px;
    border: 0;
    background: transparent;
    color: #8796b4;
    font-size: 10px;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: 3px;
  }

  .nav button span {
    width: 26px;
    height: 26px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.05);
    color: inherit;
  }

  .nav button.active {
    background: transparent;
    color: #2f86ff;
    box-shadow: none;
    border: 0;
  }

  .nav button.active span {
    background: linear-gradient(135deg, #2563EB, #2563EB);
    color: #fff;
    box-shadow: 0 10px 24px rgba(11, 92, 255, 0.38);
  }

  .content {
    padding: 16px 14px 92px;
  }

  .main {
    width: 100%;
    max-width: 100vw;
    min-width: 0;
    overflow-x: hidden;
    padding: max(12px, env(safe-area-inset-top)) 12px calc(92px + env(safe-area-inset-bottom));
  }

  .admin-workspace,
  .user-workspace,
  .grid,
  .form-grid,
  form,
  .field,
  .table,
  .metadata-grid,
  .release-type-switch,
  .smart-admin-bar,
  .admin-command {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .panel,
  .premium-panel,
  .hero-panel,
  .auth-card,
  .user-module-panel {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow: hidden;
    padding: 16px;
    border-radius: 18px;
  }

  .panel-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .form-grid,
  .admin-command,
  .metadata-grid,
  .file-grid,
  .permission-grid,
  .role-grid,
  .release-type-switch,
  .track-row,
  .credit-row,
  .row,
  .claim-row,
  .ticket-row {
    grid-template-columns: 1fr !important;
  }

  input,
  select,
  textarea,
  button,
  .primary-button,
  .ghost-button,
  .danger-button {
    max-width: 100%;
    min-width: 0;
  }

  .form-grid .full,
  .field.full {
    grid-column: 1 / -1;
  }

  .admin-table-wrap,
  .table-wrap {
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .admin-table-wrap table,
  .table-wrap table {
    min-width: 620px;
  }

  .panel,
  .premium-panel,
  .hero-panel,
  .auth-card,
  .auth-brand,
  .metric,
  .row,
  .release-card,
  .ticket-row,
  .claim-row,
  .user-module-card,
  .user-module-panel,
  .user-topbar-premium,
  .admin-topbar-premium {
    background: rgba(10, 18, 35, 0.88);
    border-color: rgba(124, 160, 255, 0.16);
    color: var(--text);
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.28);
  }

  .topbar,
  .user-topbar-premium,
  .admin-topbar-premium {
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    border: 0;
    padding: 8px 2px 14px;
  }

  h1 {
    font-size: clamp(24px, 7vw, 32px);
    line-height: 1.1;
    overflow-wrap: anywhere;
  }

  h2,
  h3,
  p,
  label,
  .muted {
    overflow-wrap: anywhere;
  }

  .global-top-actions {
    top: max(8px, env(safe-area-inset-top));
    right: 12px;
    max-width: calc(100vw - 24px);
    pointer-events: none;
  }

  .global-top-actions .bell-wrap {
    pointer-events: auto;
  }

  .hero {
    grid-template-columns: 1fr;
  }

  .hero-panel {
    background: linear-gradient(135deg, #2563EB, #2563EB);
    border: 0;
    color: #fff;
  }

  .hero-panel .muted,
  .hero-panel .eyebrow {
    color: rgba(255, 255, 255, 0.82);
  }

  .metric-grid,
  .user-module-grid,
  .settings-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .settings-grid {
    grid-template-columns: 1fr;
  }

  input,
  select,
  textarea,
  .smart-search {
    background: rgba(3, 9, 22, 0.82);
    border-color: rgba(124, 160, 255, 0.2);
    color: #fff;
  }

  .ghost-button {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(124, 160, 255, 0.2);
    color: #f7fbff;
  }
}

/* Absolute readability layer. This stays last because the legacy file has several theme overrides. */
body .panel:not(.hero-panel),
body .premium-panel,
body .auth-card,
body .auth-brand,
body .metric,
body .admin-kpis .metric,
body .compact-metrics .metric,
body .row,
body .ticket-row,
body .claim-row,
body .release-card,
body .membership,
body .user-module-card,
body .user-module-panel,
body .control-hero,
body .deploy-panel,
body .metadata-grid span,
body .file-grid > div,
body .front-option,
body .role-card,
body .notice-box,
body .activity-feed > div,
body .upload-drop,
body .file-tile,
body .module-toggle-grid label,
body .permission-grid label,
body .dsp-choice,
body .sub-label-row,
body .track-row,
body .credit-row {
  background: #ffffff !important;
  color: #111827 !important;
  border-color: rgba(17, 24, 39, 0.12) !important;
}

body .panel:not(.hero-panel) *,
body .premium-panel *,
body .auth-card *,
body .auth-brand *,
body .metric *,
body .admin-kpis .metric *,
body .compact-metrics .metric *,
body .row *,
body .ticket-row *,
body .claim-row *,
body .release-card *,
body .membership *,
body .user-module-card *,
body .user-module-panel *,
body .control-hero *,
body .deploy-panel *,
body .metadata-grid span *,
body .file-grid > div *,
body .front-option *,
body .role-card *,
body .notice-box *,
body .activity-feed > div *,
body .upload-drop *,
body .file-tile *,
body .module-toggle-grid label *,
body .permission-grid label *,
body .dsp-choice *,
body .sub-label-row *,
body .track-row *,
body .credit-row * {
  color: inherit;
}

body .panel:not(.hero-panel) h1,
body .panel:not(.hero-panel) h2,
body .panel:not(.hero-panel) h3,
body .panel:not(.hero-panel) strong,
body .premium-panel h1,
body .premium-panel h2,
body .premium-panel h3,
body .premium-panel strong,
body .auth-card h1,
body .auth-card h2,
body .auth-card h3,
body .auth-card strong,
body .auth-brand h1,
body .auth-brand h2,
body .auth-brand h3,
body .auth-brand strong,
body .metric strong,
body .admin-kpis .metric strong,
body .compact-metrics .metric strong,
body .row strong,
body .ticket-row strong,
body .claim-row strong,
body .release-card strong,
body .membership strong,
body .user-module-card strong,
body .user-module-panel strong,
body .metadata-grid strong,
body .file-grid strong,
body .front-option strong,
body .role-card strong {
  color: #111827 !important;
}

body .metric strong,
body .admin-kpis .metric strong,
body .compact-metrics .metric strong {
  color: #2563EB !important;
}

body .muted,
body small,
body .panel:not(.hero-panel) .muted,
body .premium-panel .muted,
body .auth-card .muted,
body .auth-brand .muted,
body .metric .muted,
body .admin-kpis .metric .muted,
body .compact-metrics .metric .muted,
body .row .muted,
body .ticket-row .muted,
body .claim-row .muted,
body .release-card .muted,
body .membership .muted,
body .user-module-card .muted,
body .user-module-panel .muted {
  color: #4b5563 !important;
}

body .eyebrow,
body .file-link,
body .brand strong {
  color: #2563EB !important;
}

body .primary-button,
body button.primary-button,
body .danger-button,
body button.danger-button,
body .nav button.active span {
  color: #ffffff !important;
}

body .ghost-button,
body button.ghost-button,
body button.compact,
body .compact {
  color: #6f1fe8 !important;
  background: #f3edff !important;
  border-color: rgba(124, 44, 255, 0.28) !important;
}

body .sidebar,
body .sidebar *,
body .nav button,
body .nav button *,
body .bell-dropdown,
body .notification-menu {
  color: inherit;
}

body .sidebar {
  background: #ffffff !important;
  color: #111827 !important;
}

body .nav button {
  color: #303846 !important;
}

body .nav button.active {
  color: #2563EB !important;
}

@media (max-width: 720px) {
  body .hero-panel,
  body .admin-topbar-premium,
  body .user-topbar-premium {
    background: #ffffff !important;
    color: #111827 !important;
    border-color: rgba(17, 24, 39, 0.12) !important;
  }

  body .hero-panel *,
  body .admin-topbar-premium *,
  body .user-topbar-premium * {
    color: inherit;
  }

  body .hero-panel h1,
  body .hero-panel h2,
  body .hero-panel h3,
  body .admin-topbar-premium h1,
  body .admin-topbar-premium h2,
  body .admin-topbar-premium h3,
  body .user-topbar-premium h1,
  body .user-topbar-premium h2,
  body .user-topbar-premium h3 {
    color: #111827 !important;
  }

  body .hero-panel .muted,
  body .admin-topbar-premium .muted,
  body .user-topbar-premium .muted {
    color: #4b5563 !important;
  }

  body .hero-panel .eyebrow,
  body .admin-topbar-premium .eyebrow,
  body .user-topbar-premium .eyebrow {
    color: #2563EB !important;
  }

  body .hero-panel button,
  body .admin-topbar-premium button,
  body .user-topbar-premium button {
    background: #f3edff !important;
    color: #6f1fe8 !important;
    border-color: rgba(124, 44, 255, 0.28) !important;
  }

  body .hero-panel .primary-button,
  body .admin-topbar-premium .primary-button,
  body .user-topbar-premium .primary-button {
    background: linear-gradient(135deg, #2563EB, #2563EB) !important;
    color: #ffffff !important;
  }

  body .sidebar {
    background: rgba(3, 9, 22, 0.96) !important;
    color: #f7fbff !important;
  }

  body .nav button {
    color: #9aa8c2 !important;
  }

  body .nav button.active {
    color: #58a0ff !important;
  }

  body .nav button.active span {
    color: #ffffff !important;
  }

  body .mobile-account-panel {
    display: block !important;
  }
}

.mobile-account-panel {
  display: none;
}

@media (max-width: 720px) {
  html,
  body {
    width: 100%;
    max-width: 100%;
    overscroll-behavior-x: none;
  }

  body,
  .main,
  .shell {
    overflow-x: hidden;
  }

  .mobile-account-panel {
    display: block;
  }

  .mobile-account-panel .danger-button {
    width: 100%;
  }

  .panel,
  .premium-panel,
  .hero-panel,
  .auth-card,
  .auth-brand,
  .metric,
  .row,
  .release-card,
  .ticket-row,
  .claim-row,
  .membership,
  .user-module-card,
  .user-module-panel,
  .user-topbar-premium,
  .admin-topbar-premium,
  .metadata-grid span,
  .file-grid > div {
    background: rgba(10, 18, 35, 0.9);
    color: #f7fbff;
  }

  h1,
  h2,
  h3,
  p,
  label,
  strong,
  .panel-header h2,
  .metric strong,
  .row strong {
    color: inherit;
  }

  .muted,
  small,
  .metadata-grid span,
  .file-grid > div {
    color: #b7c3dc;
  }

  input,
  select,
  textarea {
    font-size: 16px;
  }
}

@media (max-width: 720px) and (prefers-color-scheme: light) {
  .light-mobile-safe,
  :root[data-theme="light"] {
    --text: #111827;
    --muted: #4b5563;
    --brand: #2563EB;
  }
}

/* Final contrast guard: light surfaces must never carry white text. */
:root,
:root[data-theme="console"],
:root[data-theme="light"] {
  --light-surface-text: #111827;
  --light-surface-muted: #4b5563;
  --light-surface-brand: #6f1fe8;
  --dark-surface-text: #f7fbff;
  --dark-surface-muted: #b7c3dc;
}

.panel,
.premium-panel,
.auth-card,
.auth-brand,
.metric,
.row,
.ticket-row,
.claim-row,
.release-card,
.membership,
.user-module-panel,
.admin-topbar-premium,
.user-topbar-premium,
.deploy-panel,
.metadata-grid span,
.file-grid > div,
.front-option,
.role-card,
.notice-box,
.table,
.sidebar-card {
  color: var(--light-surface-text);
}

.panel h1,
.panel h2,
.panel h3,
.panel p,
.panel label,
.panel strong,
.premium-panel h1,
.premium-panel h2,
.premium-panel h3,
.premium-panel p,
.premium-panel label,
.premium-panel strong,
.auth-card h1,
.auth-card h2,
.auth-card h3,
.auth-card p,
.auth-card label,
.auth-card strong,
.auth-brand h1,
.auth-brand h2,
.auth-brand h3,
.auth-brand p,
.auth-brand label,
.auth-brand strong,
.metric strong,
.row strong,
.ticket-row strong,
.claim-row strong,
.release-card strong,
.membership strong,
.user-module-panel strong,
.metadata-grid strong,
.file-grid strong,
.front-option strong,
.role-card strong,
.notice-box strong {
  color: var(--light-surface-text);
}

.panel .muted,
.premium-panel .muted,
.auth-card .muted,
.auth-brand .muted,
.metric .muted,
.row .muted,
.ticket-row .muted,
.claim-row .muted,
.release-card .muted,
.membership .muted,
.user-module-panel .muted,
.metadata-grid span,
.file-grid > div,
.front-option span,
.role-card span,
.notice-box {
  color: var(--light-surface-muted);
}

.panel .eyebrow,
.premium-panel .eyebrow,
.auth-card .eyebrow,
.auth-brand .eyebrow,
.file-link {
  color: var(--light-surface-brand);
}

.primary-button,
.danger-button,
.hero-panel,
.hero-panel h1,
.hero-panel h2,
.hero-panel h3,
.hero-panel p,
.hero-panel strong,
.hero-panel .muted,
.hero-panel .eyebrow,
.nav button.active span {
  color: #ffffff;
}

.ghost-button,
button.compact,
.compact {
  color: #172033;
}

@media (max-width: 720px) {
  .panel,
  .premium-panel,
  .auth-card,
  .auth-brand,
  .metric,
  .row,
  .ticket-row,
  .claim-row,
  .release-card,
  .membership,
  .user-module-card,
  .user-module-panel,
  .admin-topbar-premium,
  .user-topbar-premium,
  .deploy-panel,
  .metadata-grid span,
  .file-grid > div,
  .front-option,
  .role-card,
  .notice-box,
  .table,
  .sidebar-card {
    color: var(--dark-surface-text);
  }

  .panel h1,
  .panel h2,
  .panel h3,
  .panel p,
  .panel label,
  .panel strong,
  .premium-panel h1,
  .premium-panel h2,
  .premium-panel h3,
  .premium-panel p,
  .premium-panel label,
  .premium-panel strong,
  .auth-card h1,
  .auth-card h2,
  .auth-card h3,
  .auth-card p,
  .auth-card label,
  .auth-card strong,
  .auth-brand h1,
  .auth-brand h2,
  .auth-brand h3,
  .auth-brand p,
  .auth-brand label,
  .auth-brand strong,
  .metric strong,
  .row strong,
  .ticket-row strong,
  .claim-row strong,
  .release-card strong,
  .membership strong,
  .user-module-panel strong,
  .metadata-grid strong,
  .file-grid strong,
  .front-option strong,
  .role-card strong,
  .notice-box strong {
    color: var(--dark-surface-text);
  }

  .panel .muted,
  .premium-panel .muted,
  .auth-card .muted,
  .auth-brand .muted,
  .metric .muted,
  .row .muted,
  .ticket-row .muted,
  .claim-row .muted,
  .release-card .muted,
  .membership .muted,
  .user-module-panel .muted,
  .metadata-grid span,
  .file-grid > div,
  .front-option span,
  .role-card span,
  .notice-box {
    color: var(--dark-surface-muted);
  }

  .panel .eyebrow,
  .premium-panel .eyebrow,
  .auth-card .eyebrow,
  .auth-brand .eyebrow,
  .file-link {
    color: #a98cff;
  }

  .ghost-button,
  button.compact,
  .compact {
    color: #f7fbff;
  }
}

/* Zaventra Reference UI Pack - final cascade layer for every dashboard screen. */
:root {
  --zv-purple: #2563EB;
  --zv-purple-2: #7c3aed;
  --zv-purple-3: #2563EB;
  --zv-soft: #f5f0ff;
  --zv-border: #e8defd;
  --zv-border-2: #d9c7ff;
  --zv-text: #101828;
  --zv-muted: #667085;
  --zv-canvas: #fbfaff;
  --zv-card: #ffffff;
  --zv-green: #22c55e;
  --zv-orange: #f59e0b;
  --zv-red: #ef4444;
  --text: var(--zv-text);
  --muted: var(--zv-muted);
  --brand: var(--zv-purple);
  --line: var(--zv-border);
  --panel: var(--zv-card);
}

html,
body {
  background: var(--zv-canvas) !important;
  color: var(--zv-text) !important;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(circle at 22% -10%, rgba(109, 40, 255, .08), transparent 28%),
    radial-gradient(circle at 84% 0%, rgba(139, 92, 246, .07), transparent 24%),
    linear-gradient(180deg, #fff 0%, #fbfaff 52%, #fff 100%);
}

.layout {
  display: grid !important;
  grid-template-columns: 248px minmax(0, 1fr) !important;
  min-height: 100vh;
  background: transparent !important;
}

.main {
  width: 100%;
  min-width: 0;
  padding: 22px 28px 36px !important;
  background: transparent !important;
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 20px 16px !important;
  background: rgba(255, 255, 255, .96) !important;
  border-right: 1px solid var(--zv-border) !important;
  box-shadow: 12px 0 40px rgba(16, 24, 40, .035) !important;
  color: var(--zv-text) !important;
  overflow-y: auto;
}

.brand {
  gap: 12px !important;
  margin-bottom: 24px !important;
}

.brand img {
  width: 56px !important;
  height: 56px !important;
  border-radius: 50% !important;
  object-fit: cover;
}

.brand strong,
.brand h1,
.brand-lockup strong {
  color: var(--zv-purple) !important;
  font-size: 20px !important;
  line-height: 1.08 !important;
  letter-spacing: .02em !important;
  text-transform: uppercase;
}

.brand span,
.brand small,
.brand-lockup span {
  color: var(--zv-muted) !important;
  font-size: 11px !important;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.nav {
  gap: 6px !important;
}

.nav button,
.nav a,
.sidebar button:not(.primary-button):not(.danger-button),
.sidebar .ghost-button {
  min-height: 42px !important;
  padding: 0 12px !important;
  border-radius: 10px !important;
  border: 1px solid transparent !important;
  background: transparent !important;
  color: #344054 !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  justify-content: flex-start !important;
  box-shadow: none !important;
}

.nav button span:first-child,
.nav a span:first-child {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  margin-right: 8px;
  border-radius: 7px;
  color: inherit !important;
}

.nav button:hover,
.nav a:hover {
  transform: none !important;
  background: #faf7ff !important;
  color: var(--zv-purple) !important;
  border-color: var(--zv-border) !important;
}

.nav button.active,
.nav a.active,
.sidebar button.active {
  background: var(--zv-soft) !important;
  color: var(--zv-purple) !important;
  border-color: var(--zv-border-2) !important;
  box-shadow: inset 3px 0 0 var(--zv-purple), 0 8px 22px rgba(109, 40, 255, .08) !important;
}

.sidebar-card {
  margin-top: 18px !important;
  padding: 14px !important;
  border: 1px solid var(--zv-border) !important;
  border-radius: 14px !important;
  background: #fff !important;
  color: var(--zv-text) !important;
  box-shadow: 0 14px 36px rgba(16, 24, 40, .05) !important;
}

.admin-workspace,
.user-workspace {
  display: flex;
  flex-direction: column;
  gap: 18px;
  max-width: 100%;
  color: var(--zv-text) !important;
}

.topbar,
.admin-topbar-premium,
.user-topbar-premium {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 18px !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  color: var(--zv-text) !important;
}

.topbar h1,
.admin-topbar-premium h1,
.user-topbar-premium h1 {
  margin: 0 0 6px !important;
  max-width: 880px;
  color: var(--zv-text) !important;
  font-size: clamp(26px, 2.2vw, 36px) !important;
  line-height: 1.08 !important;
  font-weight: 900 !important;
  letter-spacing: -.035em !important;
}

.topbar p,
.admin-topbar-premium p,
.user-topbar-premium p,
.muted {
  color: var(--zv-muted) !important;
}

.eyebrow {
  color: var(--zv-purple) !important;
  font-size: 12px !important;
  font-weight: 900 !important;
  letter-spacing: .08em !important;
  text-transform: uppercase;
}

.admin-command {
  display: flex !important;
  align-items: center;
  gap: 10px !important;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.admin-command input {
  width: min(360px, 42vw) !important;
}

input,
select,
textarea,
.admin-command input,
.admin-command select {
  min-height: 42px !important;
  border: 1px solid var(--zv-border) !important;
  border-radius: 10px !important;
  background: #fff !important;
  color: var(--zv-text) !important;
  font-size: 14px !important;
  box-shadow: 0 1px 2px rgba(16, 24, 40, .03) !important;
}

textarea {
  min-height: 112px !important;
}

label {
  color: var(--zv-text) !important;
  font-size: 13px !important;
  font-weight: 800 !important;
}

input::placeholder,
textarea::placeholder {
  color: #98a2b3 !important;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--zv-purple-3) !important;
  box-shadow: 0 0 0 4px rgba(109, 40, 255, .10) !important;
}

.primary-button,
button.primary-button,
.auth-card button[type="submit"],
.release-step-actions .primary-button {
  min-height: 42px !important;
  border: 0 !important;
  border-radius: 10px !important;
  background: linear-gradient(135deg, var(--zv-purple), var(--zv-purple-3)) !important;
  color: #fff !important;
  font-weight: 900 !important;
  box-shadow: 0 14px 30px rgba(109, 40, 255, .24) !important;
}

.primary-button.compact,
.ghost-button.compact,
.danger-button.compact,
button.compact {
  min-height: 34px !important;
  padding: 0 12px !important;
  border-radius: 8px !important;
  font-size: 12px !important;
}

.primary-button:hover {
  transform: translateY(-1px) !important;
  box-shadow: 0 18px 42px rgba(109, 40, 255, .32) !important;
}

.ghost-button,
button.ghost-button {
  min-height: 42px !important;
  border: 1px solid var(--zv-border) !important;
  border-radius: 10px !important;
  background: #fff !important;
  color: var(--zv-purple) !important;
  font-weight: 850 !important;
  box-shadow: 0 8px 22px rgba(16, 24, 40, .04) !important;
}

.danger-button,
button.danger-button {
  min-height: 42px !important;
  border: 1px solid #fecdd3 !important;
  border-radius: 10px !important;
  background: #fff1f2 !important;
  color: var(--zv-red) !important;
  font-weight: 850 !important;
}

.admin-kpis,
.metric-grid,
.user-kpis,
.wallet-kpis {
  display: grid !important;
  grid-template-columns: repeat(5, minmax(150px, 1fr)) !important;
  gap: 16px !important;
}

.metric,
.admin-kpis .metric {
  position: relative;
  min-height: 104px !important;
  padding: 18px !important;
  border: 1px solid var(--zv-border) !important;
  border-radius: 14px !important;
  background: #fff !important;
  box-shadow: 0 16px 40px rgba(16, 24, 40, .05) !important;
  overflow: hidden;
}

.metric::after,
.admin-kpis .metric::after {
  content: "";
  position: absolute;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: linear-gradient(135deg, #f2eaff, #fff);
  border: 1px solid var(--zv-border);
}

.metric span,
.metric small {
  position: relative;
  z-index: 1;
  color: var(--zv-muted) !important;
  font-size: 13px !important;
}

.metric strong,
.admin-kpis .metric strong {
  position: relative;
  z-index: 1;
  display: block;
  margin: 8px 0 6px;
  color: var(--zv-text) !important;
  font-size: clamp(24px, 2vw, 34px) !important;
  line-height: 1 !important;
  font-weight: 950 !important;
  letter-spacing: -.045em !important;
}

.grid,
.settings-grid {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 18px !important;
}

.panel,
.premium-panel,
.upload-wizard,
.release-card,
.membership,
.user-module-card,
.ticket-row,
.claim-row,
.front-option,
.role-card,
.notice-box,
.deploy-panel {
  border: 1px solid var(--zv-border) !important;
  border-radius: 16px !important;
  background: #fff !important;
  color: var(--zv-text) !important;
  box-shadow: 0 18px 48px rgba(16, 24, 40, .055) !important;
}

.panel,
.premium-panel {
  padding: 20px !important;
}

.panel:hover,
.premium-panel:hover,
.metric:hover,
.release-card:hover,
.user-module-card:hover {
  transform: none !important;
  border-color: var(--zv-border-2) !important;
  box-shadow: 0 22px 60px rgba(109, 40, 255, .08) !important;
}

.panel-header {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px !important;
}

.panel-header h2,
.panel h2,
.premium-panel h2 {
  margin: 0;
  color: var(--zv-text) !important;
  font-size: 20px !important;
  line-height: 1.18 !important;
  font-weight: 900 !important;
  letter-spacing: -.025em !important;
}

.quick-grid,
.compact-actions,
.user-module-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(145px, 1fr)) !important;
  gap: 14px !important;
}

.quick-grid button,
.user-module-card {
  min-height: 94px !important;
  padding: 16px !important;
  border: 1px solid var(--zv-border) !important;
  border-radius: 14px !important;
  background: #fff !important;
  color: var(--zv-text) !important;
  box-shadow: 0 14px 34px rgba(16, 24, 40, .045) !important;
  text-align: center;
}

.quick-grid button:hover,
.user-module-card:hover {
  background: #fbf8ff !important;
  color: var(--zv-purple) !important;
  transform: translateY(-1px) !important;
}

.table,
.admin-table-wrap {
  border: 1px solid var(--zv-border) !important;
  border-radius: 16px !important;
  background: #fff !important;
  overflow: hidden !important;
  box-shadow: none !important;
}

.table .row,
.row {
  display: grid;
  align-items: center;
  gap: 12px;
  padding: 14px 16px !important;
  border: 0 !important;
  border-bottom: 1px solid #f0eafb !important;
  border-radius: 0 !important;
  background: #fff !important;
  box-shadow: none !important;
  color: var(--zv-text) !important;
}

.table .row:last-child,
.row:last-child {
  border-bottom: 0 !important;
}

.row:hover,
tbody tr:hover {
  background: #fbf8ff !important;
  transform: none !important;
}

.admin-table-wrap table {
  width: 100% !important;
  border-collapse: collapse !important;
}

.admin-table-wrap th,
.admin-table-wrap td,
table th,
table td {
  padding: 14px 16px !important;
  border-bottom: 1px solid #f0eafb !important;
  color: var(--zv-text) !important;
  font-size: 13px !important;
}

.admin-table-wrap th,
table th {
  background: #f7f2ff !important;
  color: #475467 !important;
  font-size: 11px !important;
  font-weight: 900 !important;
  letter-spacing: .06em !important;
  text-transform: uppercase !important;
}

.user-cell {
  display: flex;
  align-items: center;
  gap: 10px;
}

.user-cell img,
.release-artwork img,
.artist-card img,
.profile-card img {
  border-radius: 12px !important;
  object-fit: cover;
}

.status {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: max-content;
  min-height: 24px;
  padding: 3px 10px !important;
  border-radius: 999px !important;
  font-size: 11px !important;
  font-weight: 900 !important;
  line-height: 1 !important;
  text-transform: none !important;
}

.status.active,
.status.verified,
.status.live,
.status.delivered,
.status.approved,
.status.paid,
.status.completed {
  background: #dcfce7 !important;
  color: #15803d !important;
}

.status.pending,
.status.in-review,
.status.under-review,
.status.processing,
.status.draft {
  background: #fff7ed !important;
  color: #c2410c !important;
}

.status.rejected,
.status.inactive,
.status.cancelled,
.status.suspended {
  background: #fff1f2 !important;
  color: #e11d48 !important;
}

.bar-chart {
  min-height: 245px;
  padding: 12px 4px 0;
  background:
    repeating-linear-gradient(to top, transparent 0 45px, rgba(109, 40, 255, .08) 46px),
    linear-gradient(180deg, #fff, #fff);
  border-radius: 14px;
}

.bar-chart span {
  display: block;
  border-radius: 999px 999px 0 0;
  background: linear-gradient(180deg, var(--zv-purple), rgba(109, 40, 255, .16)) !important;
  box-shadow: 0 12px 28px rgba(109, 40, 255, .22) !important;
  transform-origin: bottom;
}

.wallet-fintech-grid {
  display: grid !important;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, .65fr) !important;
  gap: 18px !important;
}

.wallet-hero {
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: var(--zv-text) !important;
}

.wallet-hero .muted,
.wallet-hero .eyebrow {
  color: var(--zv-muted) !important;
}

.release-progressive,
.release-shell {
  background: transparent !important;
}

.release-stepper {
  display: grid !important;
  grid-template-columns: repeat(7, minmax(0, 1fr)) !important;
  gap: 10px !important;
  padding: 14px !important;
  border: 1px solid var(--zv-border) !important;
  border-radius: 16px !important;
  background: #fff !important;
  box-shadow: 0 16px 42px rgba(16, 24, 40, .045) !important;
}

.release-stepper button,
.release-stepper span {
  min-height: 42px !important;
  border: 1px solid var(--zv-border) !important;
  border-radius: 999px !important;
  background: #fff !important;
  color: #475467 !important;
  font-weight: 900 !important;
}

.release-stepper button.active,
.release-stepper span.active {
  border-color: var(--zv-purple) !important;
  background: linear-gradient(135deg, var(--zv-purple), var(--zv-purple-3)) !important;
  color: #fff !important;
  box-shadow: 0 12px 28px rgba(109, 40, 255, .24) !important;
}

.release-step-page,
.release-progressive .panel {
  padding: 24px !important;
  border: 1px solid var(--zv-border) !important;
  border-radius: 18px !important;
  background: #fff !important;
  box-shadow: 0 20px 58px rgba(16, 24, 40, .06) !important;
}

.upload-drop {
  min-height: 138px;
  display: grid !important;
  place-items: center;
  text-align: center;
  border: 1.5px dashed #cbb8ff !important;
  border-radius: 14px !important;
  background: #fbf8ff !important;
  color: var(--zv-purple) !important;
}

.upload-drop:hover,
.upload-drop.drag-over {
  background: #f5efff !important;
  border-color: var(--zv-purple) !important;
}

.artist-card,
.member-card {
  border: 1px solid var(--zv-border) !important;
  border-radius: 16px !important;
  background: #fff !important;
  box-shadow: 0 16px 40px rgba(16, 24, 40, .05) !important;
}

.copyright-layout,
.support-layout,
.payout-layout {
  display: grid !important;
  grid-template-columns: minmax(0, .95fr) minmax(360px, 1.05fr) !important;
  gap: 18px !important;
}

.modal-backdrop {
  background: rgba(16, 24, 40, .40) !important;
  backdrop-filter: blur(16px) !important;
}

.payout-modal {
  border: 1px solid var(--zv-border) !important;
  border-radius: 18px !important;
  background: #fff !important;
  box-shadow: 0 32px 90px rgba(16, 24, 40, .22) !important;
}

.payout-method {
  border: 1px solid var(--zv-border) !important;
  border-radius: 12px !important;
  background: #fff !important;
  color: var(--zv-text) !important;
}

.payout-method:has(input:checked) {
  border-color: var(--zv-purple) !important;
  background: var(--zv-soft) !important;
  color: var(--zv-purple) !important;
}

.notice-board,
.notice-box {
  border: 1px solid var(--zv-border) !important;
  border-radius: 14px !important;
  background: linear-gradient(135deg, #fff, #fbf8ff) !important;
  color: var(--zv-text) !important;
}

.hero-panel {
  border-radius: 18px !important;
  background:
    linear-gradient(135deg, rgba(109, 40, 255, .92), rgba(139, 92, 246, .86)),
    radial-gradient(circle at 82% 18%, rgba(255,255,255,.25), transparent 22%) !important;
  box-shadow: 0 24px 70px rgba(109, 40, 255, .18) !important;
}

.hero-panel h1,
.hero-panel h2,
.hero-panel h3,
.hero-panel p,
.hero-panel .muted,
.hero-panel .eyebrow {
  color: #fff !important;
}

.auth-page {
  min-height: 100vh;
  background:
    radial-gradient(circle at 22% 10%, rgba(109, 40, 255, .12), transparent 30%),
    linear-gradient(180deg, #fff, #fbfaff) !important;
}

.auth-brand,
.auth-card {
  border: 1px solid var(--zv-border) !important;
  border-radius: 22px !important;
  background: rgba(255, 255, 255, .94) !important;
  color: var(--zv-text) !important;
  box-shadow: 0 26px 80px rgba(16, 24, 40, .08) !important;
}

.auth-card h1,
.auth-brand h1 {
  color: var(--zv-text) !important;
  letter-spacing: -.035em !important;
}

.panel *,
.premium-panel *,
.metric *,
.row *,
.table *,
.sidebar-card *,
.auth-card *,
.auth-brand * {
  color: inherit;
}

.panel strong,
.premium-panel strong,
.metric strong,
.row strong,
.table strong,
.auth-card strong {
  color: var(--zv-text) !important;
}

.panel .muted,
.premium-panel .muted,
.metric .muted,
.row .muted,
.table .muted,
.auth-card .muted {
  color: var(--zv-muted) !important;
}

@media (max-width: 1180px) {
  .admin-kpis,
  .metric-grid,
  .user-kpis,
  .wallet-kpis {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }

  .grid,
  .settings-grid,
  .wallet-fintech-grid,
  .copyright-layout,
  .support-layout,
  .payout-layout {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 760px) {
  .layout {
    grid-template-columns: 1fr !important;
  }

  .sidebar {
    position: relative !important;
    height: auto !important;
    border-right: 0 !important;
    border-bottom: 1px solid var(--zv-border) !important;
  }

  .main {
    padding: 16px !important;
  }

  .admin-kpis,
  .metric-grid,
  .user-kpis,
  .wallet-kpis,
  .release-stepper {
    grid-template-columns: 1fr !important;
  }

  .topbar,
  .admin-topbar-premium,
  .user-topbar-premium,
  .panel-header {
    align-items: flex-start !important;
    flex-direction: column !important;
  }

  .admin-command,
  .admin-command input,
  .admin-command select {
    width: 100% !important;
  }

  .panel,
  .premium-panel,
  .release-step-page {
    padding: 16px !important;
  }

  .table,
  .admin-table-wrap {
    overflow-x: auto !important;
  }

  .table .row,
  .row {
    grid-template-columns: 1fr !important;
  }

  .panel,
  .premium-panel,
  .metric,
  .row,
  .ticket-row,
  .claim-row,
  .release-card,
  .membership,
  .user-module-card,
  .user-module-panel,
  .admin-topbar-premium,
  .user-topbar-premium,
  .metadata-grid span,
  .file-grid > div,
  .front-option,
  .role-card,
  .notice-box,
  .table,
  .sidebar-card,
  .auth-card,
  .auth-brand {
    color: var(--zv-text) !important;
  }

  .muted,
  small,
  .panel .muted,
  .premium-panel .muted,
  .row .muted {
    color: var(--zv-muted) !important;
  }
}

/* Final mobile and release-wizard overrides: keep this block last. */
.sidebar {
  max-height: 100vh !important;
  overflow-y: auto !important;
  overscroll-behavior: contain !important;
  -webkit-overflow-scrolling: touch !important;
  display: flex !important;
  flex-direction: column !important;
}

.sidebar .nav,
.nav {
  min-height: 0 !important;
}

.sidebar .brand {
  order: 0 !important;
  flex: 0 0 auto !important;
}

.sidebar .nav {
  order: 1 !important;
  flex: 0 0 auto !important;
  overflow: visible !important;
}

.sidebar .sidebar-card {
  order: 2 !important;
  position: static !important;
  inset: auto !important;
  transform: none !important;
  margin: 18px 0 12px !important;
  flex: 0 0 auto !important;
}

.sidebar .portal-footer {
  order: 3 !important;
  position: static !important;
  margin-top: 0 !important;
  flex: 0 0 auto !important;
}

.release-stepper {
  display: grid !important;
  grid-template-columns: repeat(7, minmax(112px, 1fr)) !important;
  gap: 8px !important;
  overflow-x: auto !important;
}

.release-stepper button {
  border-radius: 999px !important;
  white-space: nowrap !important;
}

.release-step-page {
  display: none;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 16px !important;
}

.release-step-page.active {
  display: grid !important;
}

.admin-table-wrap,
.table-wrap {
  overflow-x: auto !important;
  overflow-y: visible !important;
}

.admin-table-wrap table {
  min-width: 1120px !important;
}

.action-menu,
.tool-row {
  flex-wrap: wrap !important;
}

@media (max-width: 760px) {
  body {
    padding-bottom: calc(82px + env(safe-area-inset-bottom)) !important;
  }

  .shell {
    display: block !important;
    padding-bottom: calc(88px + env(safe-area-inset-bottom)) !important;
  }

  .sidebar {
    position: fixed !important;
    left: 0 !important;
    right: 0 !important;
    top: auto !important;
    bottom: 0 !important;
    width: 100% !important;
    height: calc(76px + env(safe-area-inset-bottom)) !important;
    z-index: 999 !important;
    padding: 8px 10px calc(8px + env(safe-area-inset-bottom)) !important;
    border: 0 !important;
    border-top: 1px solid #e8ddff !important;
    background: rgba(255, 255, 255, .96) !important;
    box-shadow: 0 -18px 40px rgba(16, 24, 40, .10) !important;
    overflow: hidden !important;
  }

  .sidebar .brand,
  .sidebar-card,
  .portal-footer {
    display: none !important;
  }

  .nav {
    display: grid !important;
    grid-auto-flow: column !important;
    grid-auto-columns: minmax(70px, 1fr) !important;
    height: 100% !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    gap: 6px !important;
    scrollbar-width: none;
  }

  .nav::-webkit-scrollbar,
  .sidebar::-webkit-scrollbar {
    display: none !important;
  }

  .nav button,
  .nav a {
    min-width: 68px !important;
    min-height: 58px !important;
    padding: 4px 6px !important;
    flex-direction: column !important;
    justify-content: center !important;
    text-align: center !important;
    font-size: 11px !important;
    line-height: 1.1 !important;
  }

  .nav button span:first-child,
  .nav a span:first-child {
    margin: 0 0 4px !important;
  }

  .main {
    padding: 16px 14px calc(96px + env(safe-area-inset-bottom)) !important;
  }

  .release-stepper {
    grid-template-columns: none !important;
    grid-auto-flow: column !important;
    grid-auto-columns: minmax(138px, 1fr) !important;
  }

  .release-step-page,
.release-step-page.active,
.track-row {
    grid-template-columns: 1fr !important;
  }

  .release-credit-grid,
  .track-row .track-flags {
    grid-template-columns: 1fr !important;
  }

  .track-row .track-index,
  .track-row .upload-drop,
  .track-row .track-flags,
  .track-row .track-footer-actions {
    grid-column: 1 !important;
  }
}

/* Zaventra email template center */
.email-template-hero {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(360px, 1.1fr);
  gap: 18px;
  align-items: center;
  padding: 22px;
  border: 1px solid #e8ddff;
  border-radius: 18px;
  background:
    radial-gradient(circle at 12% 0%, rgba(109, 40, 255, .10), transparent 28rem),
    #fff;
  box-shadow: 0 18px 50px rgba(16, 24, 40, .06);
}

.email-template-hero h2 {
  margin: 0 0 8px;
  color: var(--zv-text);
  font-size: clamp(26px, 3vw, 42px);
  line-height: 1.08;
  letter-spacing: -.02em;
}

.email-sender-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.email-sender-grid div,
.email-category-card {
  padding: 14px;
  border: 1px solid #e8ddff;
  border-radius: 14px;
  background: #fbf8ff;
  box-shadow: 0 12px 28px rgba(109, 40, 255, .06);
}

.email-sender-grid strong,
.email-sender-grid span,
.email-sender-grid small,
.email-category-card strong,
.email-category-card span,
.email-category-card small {
  display: block;
}

.email-sender-grid strong {
  color: var(--zv-purple);
  font-size: 14px;
}

.email-sender-grid span,
.email-category-card strong {
  color: var(--zv-text);
  font-weight: 900;
}

.email-sender-grid small,
.email-category-card small {
  margin-top: 6px;
  color: var(--zv-muted);
  line-height: 1.45;
}

.email-template-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}

.email-template-card {
  position: relative;
  padding: 16px;
  border: 1px solid #e8ddff;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 18px 46px rgba(16, 24, 40, .06);
}

.email-template-number {
  position: absolute;
  top: 14px;
  left: 14px;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--zv-purple), var(--zv-purple-3));
  color: #fff;
  font-weight: 900;
}

.email-template-meta {
  min-height: 44px;
  padding-left: 42px;
}

.email-template-meta strong,
.email-template-meta span {
  display: block;
}

.email-template-meta strong {
  color: var(--zv-text);
  font-weight: 900;
}

.email-template-meta span {
  color: var(--zv-muted);
  font-size: 12px;
}

.email-preview-shell {
  overflow: hidden;
  border: 1px solid #eee6ff;
  border-radius: 12px;
  background: #fff;
}

.email-preview-header {
  min-height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(135deg, #2563EB, #7c3cff);
  color: #fff;
  font-weight: 900;
}

.email-preview-header img {
  width: 28px;
  height: 28px;
  object-fit: contain;
  border-radius: 8px;
  background: rgba(255,255,255,.14);
}

.email-preview-body {
  padding: 18px;
  text-align: center;
}

.email-preview-icon {
  width: 54px;
  height: 54px;
  margin: 0 auto 12px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid #d8c8ff;
  background: #fbf8ff;
  color: var(--zv-purple);
  font-size: 24px;
  font-weight: 900;
}

.email-preview-body h3 {
  margin: 0 0 12px;
  color: var(--zv-text);
  font-size: 20px;
  line-height: 1.15;
}

.email-preview-body p {
  margin: 8px 0;
  color: var(--zv-text);
  font-size: 13px;
  line-height: 1.5;
  text-align: left;
}

.email-preview-box {
  margin: 14px 0;
  padding: 12px;
  border: 1px solid #e8ddff;
  border-radius: 10px;
  background: #fbf8ff;
  color: var(--zv-text);
  font-weight: 800;
}

.email-preview-footer {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px 10px;
  padding: 12px;
  background: #f8f5ff;
  border-top: 1px solid #eee6ff;
}

.email-preview-footer strong,
.email-preview-footer span,
.email-preview-footer small {
  color: var(--zv-muted);
  font-size: 11px;
}

.email-preview-footer small {
  grid-column: 2;
}

.tone-green .email-preview-icon,
.status-green {
  color: #099250 !important;
  background: #ecfdf3 !important;
  border-color: #abefc6 !important;
}

.tone-orange .email-preview-icon,
.status-orange {
  color: #b54708 !important;
  background: #fffaeb !important;
  border-color: #fedf89 !important;
}

.tone-red .email-preview-icon,
.status-red {
  color: #d92d20 !important;
  background: #fef3f2 !important;
  border-color: #fecdca !important;
}

.status-purple {
  color: var(--zv-purple) !important;
  background: #f4efff !important;
  border-color: #d8c8ff !important;
}

.status-gray {
  color: #475467 !important;
  background: #f2f4f7 !important;
  border-color: #eaecf0 !important;
}

.email-category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

.email-category-card div {
  display: grid;
  gap: 2px;
  margin-top: 10px;
  max-height: 220px;
  overflow: auto;
}

.email-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0 18px;
}

.email-chip-list span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 6px 10px;
  border: 1px solid #e8ddff;
  border-radius: 999px;
  background: #fbf8ff;
  color: var(--zv-purple);
  font-size: 12px;
  font-weight: 800;
}

@media (max-width: 760px) {
  body .sidebar {
    background: rgba(255, 255, 255, .98) !important;
    color: #111827 !important;
    border-top: 1px solid #e8ddff !important;
    box-shadow: 0 -16px 34px rgba(109, 40, 255, .12) !important;
  }

  body .sidebar .nav button,
  body .sidebar .nav a {
    background: #ffffff !important;
    color: #4b5563 !important;
    border: 1px solid #eee6ff !important;
  }

  body .sidebar .nav button.active,
  body .sidebar .nav a.active {
    background: #f4f0ff !important;
    color: #2563EB !important;
    border-color: #c4b5fd !important;
    box-shadow: 0 10px 22px rgba(109, 40, 255, .12) !important;
  }
}

@media (max-width: 980px) {
  .email-template-hero,
  .email-sender-grid {
    grid-template-columns: 1fr;
  }
}

.managed-artist-picker {
  position: relative;
}

.artist-picker-control {
  min-height: 56px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border: 1px solid #e4d7ff;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(109, 40, 255, .05);
}

.artist-picker-control:focus-within {
  border-color: #7c3cff;
  box-shadow: 0 0 0 4px rgba(109, 40, 255, .10);
}

.artist-picker-control input {
  flex: 1;
  min-width: 150px;
  border: 0 !important;
  box-shadow: none !important;
  padding: 8px !important;
}

.artist-picker-control button {
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  border: 0;
  border-left: 1px solid #e5e7eb;
  background: transparent;
  color: #2563EB;
  font-size: 22px;
  cursor: pointer;
}

.artist-picker-chips {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.artist-picker-chips span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 32px;
  padding: 5px 8px;
  border-radius: 999px;
  background: #f4f0ff;
  color: #4c1d95;
  font-weight: 800;
  font-size: 12px;
}

.artist-picker-chips img {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  object-fit: cover;
}

.artist-picker-chips button {
  width: 18px;
  height: 18px;
  border-left: 0;
  border-radius: 50%;
  background: #ede5ff;
  color: #2563EB;
  font-size: 14px;
  line-height: 18px;
}

.artist-picker-menu {
  position: absolute;
  z-index: 40;
  left: 0;
  right: 0;
  top: calc(100% - 18px);
  max-height: 250px;
  overflow: auto;
  display: none;
  padding: 8px;
  border: 1px solid #e4d7ff;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 22px 50px rgba(17, 24, 39, .14);
}

.managed-artist-picker.open .artist-picker-menu {
  display: grid;
  gap: 6px;
}

.admin-owner-picker-field {
  position: relative;
}

.admin-owner-menu.open {
  display: grid;
  gap: 6px;
  top: calc(100% + 6px);
}

.artist-picker-menu button {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 50px;
  border: 1px solid transparent;
  border-radius: 12px;
  background: #fff;
  color: #111827;
  text-align: left;
  cursor: pointer;
}

.artist-picker-menu button:hover,
.artist-picker-menu button.selected {
  border-color: #c7b4ff;
  background: #f8f5ff;
}

.artist-picker-menu img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
}

.artist-picker-menu strong,
.artist-picker-menu small {
  display: block;
}

.artist-picker-menu small {
  color: #6b7280;
  font-size: 12px;
}

.profile-link-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.profile-link-stack a,
.profile-link-stack span {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 4px 8px;
  border: 1px solid #e3d7ff;
  border-radius: 999px;
  background: #f8f5ff;
  color: #5b21b6;
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
}

.hidden,
.track-row.hidden,
[data-track-row].hidden,
.release-step-page .track-row.hidden,
body .track-row.hidden,
body [data-track-row].hidden {
  display: none !important;
}

body .sidebar {
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
}

body .sidebar .nav {
  order: 1 !important;
  display: flex !important;
  flex-direction: column !important;
  flex-wrap: nowrap !important;
  height: auto !important;
  max-height: none !important;
  overflow: visible !important;
}

body .sidebar .sidebar-card {
  order: 90 !important;
  position: relative !important;
  inset: auto !important;
  transform: none !important;
  width: 100% !important;
  margin: 20px 0 12px !important;
}

body .sidebar .portal-footer {
  order: 100 !important;
  position: relative !important;
  margin-top: 0 !important;
}

@media (max-width: 760px) {
  body .sidebar .sidebar-card,
  body .sidebar .portal-footer {
    display: none !important;
  }
}

.waveform-preview audio {
  width: 100%;
  margin-top: 10px;
}

@media (max-width: 760px) {
  body {
    padding-bottom: 112px !important;
  }

  body .sidebar {
    position: fixed !important;
    left: 14px !important;
    right: 14px !important;
    bottom: 14px !important;
    top: auto !important;
    width: auto !important;
    height: 82px !important;
    min-height: 0 !important;
    padding: 8px 10px calc(8px + env(safe-area-inset-bottom)) !important;
    border: 1px solid #ded3ff !important;
    border-radius: 24px !important;
    background: rgba(255, 255, 255, .96) !important;
    box-shadow: 0 18px 42px rgba(109, 40, 255, .16) !important;
    z-index: 1000 !important;
    overflow: hidden !important;
  }

  body .sidebar .brand,
  body .sidebar .sidebar-card,
  body .sidebar .portal-footer {
    display: none !important;
  }

  body .sidebar .nav {
    order: 1 !important;
    display: grid !important;
    grid-auto-flow: column !important;
    grid-auto-columns: minmax(74px, 1fr) !important;
    gap: 6px !important;
    width: 100% !important;
    height: 100% !important;
    max-height: none !important;
    padding: 0 !important;
    margin: 0 !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    flex-direction: row !important;
    align-items: stretch !important;
    scrollbar-width: none !important;
  }

  body .sidebar .nav::-webkit-scrollbar {
    display: none !important;
  }

  body .sidebar .nav button,
  body .sidebar .nav a {
    min-width: 74px !important;
    width: 74px !important;
    height: 64px !important;
    padding: 6px 4px !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 3px !important;
    border-radius: 18px !important;
    background: transparent !important;
    color: #5b6475 !important;
    font-size: 11px !important;
    line-height: 1.1 !important;
    text-align: center !important;
    white-space: normal !important;
  }

  body .sidebar .nav button span:first-child,
  body .sidebar .nav a span:first-child {
    width: 30px !important;
    height: 30px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 12px !important;
    background: #f4f0ff !important;
    color: #2563EB !important;
    font-size: 15px !important;
    font-weight: 900 !important;
  }

  body .sidebar .nav button.active,
  body .sidebar .nav a.active {
    background: #f4f0ff !important;
    color: #2563EB !important;
  }
}
/* Final Zaventra Music Group professional light dashboard theme */
:root,
:root[data-theme="light"],
:root[data-theme="dark"] {
  color-scheme: light !important;
  --bg: #F5F7FA !important;
  --panel: #FFFFFF !important;
  --panel-2: #FFFFFF !important;
  --line: #E5E7EB !important;
  --text: #111827 !important;
  --muted: #667085 !important;
  --soft: #98A2B3 !important;
  --brand: #2563EB !important;
  --brand-2: #2563EB !important;
}

body,
html body,
body[data-theme],
:root[data-theme] body {
  background: #F5F7FA !important;
  color: #111827 !important;
}

body::before,
body::after {
  display: none !important;
}

body .shell,
body .layout,
body .admin-workspace,
body .user-workspace,
body main {
  background: #F5F7FA !important;
}

body .sidebar {
  background: #FFFFFF !important;
  border-right: 1px solid #E5E7EB !important;
  box-shadow: 0 1px 2px rgba(16, 24, 40, .04) !important;
}

body .panel,
body .premium-panel,
body .metric,
body .admin-kpis .metric,
body .row,
body .ticket-row,
body .claim-row,
body .release-card,
body .membership,
body .user-module-card,
body .user-module-panel,
body .control-hero,
body .metadata-grid span,
body .file-grid > div,
body .upload-drop,
body .track-row,
body .credit-row,
body .inline-modal-card,
body .admin-topbar-premium,
body .user-topbar-premium,
body .topbar {
  background: #FFFFFF !important;
  border-color: #E5E7EB !important;
  color: #111827 !important;
  box-shadow: 0 1px 2px rgba(16, 24, 40, .05) !important;
}

body .primary-button,
body button.primary-button,
body .nav button.active,
body .nav a.active {
  background: #2563EB !important;
  border-color: #2563EB !important;
  color: #FFFFFF !important;
}

body .ghost-button,
body button.ghost-button {
  background: #FFFFFF !important;
  border-color: #D0D5DD !important;
  color: #344054 !important;
}

body input,
body select,
body textarea {
  background: #FFFFFF !important;
  border-color: #D0D5DD !important;
  color: #111827 !important;
  box-shadow: none !important;
}

body input:focus,
body select:focus,
body textarea:focus {
  border-color: #2563EB !important;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, .12) !important;
}

body .nav button:hover,
body .nav a:hover {
  background: #EFF6FF !important;
  border-color: #BFDBFE !important;
  color: #1D4ED8 !important;
}

body .brand img,
body .auth-brand img,
body .email-preview-header img {
  object-fit: contain !important;
  background: transparent !important;
  box-shadow: none !important;
}

@media (max-width: 760px) {
  body .sidebar {
    background: #FFFFFF !important;
    border-color: #E5E7EB !important;
    box-shadow: 0 1px 2px rgba(16, 24, 40, .08) !important;
  }

  body .sidebar .nav button span:first-child,
  body .sidebar .nav a span:first-child {
    background: #EFF6FF !important;
    color: #2563EB !important;
  }

  body .sidebar .nav button.active,
  body .sidebar .nav a.active {
    background: #DBEAFE !important;
    color: #1D4ED8 !important;
  }
}

/* Final UI polish: compact dashboard typography, blue-only accents, reliable logo sizing */
body .brand {
  min-height: 96px !important;
  align-items: center !important;
  gap: 12px !important;
  overflow: visible !important;
}

body .brand img,
body .auth-brand img,
body .profile-card img,
body .admin-avatar,
body .user-cell img {
  content: url('/assets/zaventra-black-logo.png') !important;
  object-fit: contain !important;
  object-position: center !important;
  background: #FFFFFF !important;
  border: 0 !important;
  box-shadow: none !important;
}

body .brand img {
  width: 64px !important;
  height: 64px !important;
  padding: 8px !important;
  border-radius: 14px !important;
  flex: 0 0 auto !important;
}

body .brand h1,
body .brand strong,
body .brand-title {
  color: #2563EB !important;
  font-size: 24px !important;
  line-height: 1.08 !important;
  letter-spacing: 0 !important;
}

body .brand span,
body .brand small {
  color: #475467 !important;
  letter-spacing: .06em !important;
}

body .topbar,
body .user-topbar-premium,
body .admin-topbar-premium,
body .wallet-hero,
body .control-hero {
  min-height: auto !important;
  padding: 24px 28px !important;
  border-radius: 0 0 8px 8px !important;
  background: #FFFFFF !important;
}

body .topbar h1,
body .user-topbar-premium h1,
body .admin-topbar-premium h1,
body .wallet-hero h1,
body .control-hero h1,
body .panel h1,
body .panel-header h2 {
  font-size: clamp(24px, 2.2vw, 36px) !important;
  line-height: 1.12 !important;
  letter-spacing: 0 !important;
  color: #101828 !important;
  overflow-wrap: anywhere !important;
}

body .panel-header h2,
body .track-header h2,
body .metadata-grid h2 {
  font-size: 20px !important;
  line-height: 1.2 !important;
}

body .topbar p,
body .user-topbar-premium p,
body .admin-topbar-premium p,
body .wallet-hero p,
body .control-hero p {
  font-size: 16px !important;
  line-height: 1.5 !important;
  max-width: 920px !important;
}

body .eyebrow {
  color: #2563EB !important;
  letter-spacing: .08em !important;
}

body .hero-panel,
body .royalty-band,
body .email-template-hero,
body .apply-hero,
body .wl-clean-hero {
  background: linear-gradient(135deg, #2563EB, #3B82F6) !important;
  color: #FFFFFF !important;
  border: 1px solid #BFDBFE !important;
  box-shadow: 0 16px 42px rgba(37, 99, 235, .18) !important;
}

body .hero-panel::after,
body .hero-panel::before,
body .royalty-band::after,
body .control-hero::before,
body .control-hero::after {
  display: none !important;
}

body .hero-panel h1,
body .hero-panel h2,
body .hero-panel h3,
body .royalty-band h2 {
  color: #FFFFFF !important;
  font-size: clamp(28px, 3vw, 46px) !important;
  line-height: 1.08 !important;
  letter-spacing: 0 !important;
  max-width: 860px !important;
}

body .hero-panel p,
body .hero-panel .muted,
body .hero-panel .eyebrow,
body .royalty-band .muted,
body .royalty-band .eyebrow {
  color: rgba(255,255,255,.92) !important;
}

body .metric strong,
body .admin-kpis .metric strong {
  color: #2563EB !important;
  font-size: clamp(26px, 2.4vw, 40px) !important;
  line-height: 1.1 !important;
}

body .nav button span:first-child,
body .nav a span:first-child,
body .sidebar .nav button span:first-child,
body .sidebar .nav a span:first-child {
  background: #EFF6FF !important;
  color: #2563EB !important;
}

body .nav button.active,
body .nav a.active,
body .sidebar .nav button.active,
body .sidebar .nav a.active {
  background: #DBEAFE !important;
  color: #1D4ED8 !important;
  border-color: #BFDBFE !important;
}

body [style*="linear-gradient"],
body [class*="purple"],
body [class*="violet"] {
  --brand: #2563EB !important;
  --brand-2: #2563EB !important;
}

@media (max-width: 760px) {
  body .topbar h1,
  body .user-topbar-premium h1,
  body .admin-topbar-premium h1,
  body .wallet-hero h1,
  body .control-hero h1 {
    font-size: 24px !important;
  }

  body .hero-panel h1,
  body .hero-panel h2,
  body .hero-panel h3 {
    font-size: 28px !important;
  }
}

/* Final production fixes: centered login, larger balanced logo, blue-only theme */
body .auth-page {
  min-height: 100vh !important;
  display: grid !important;
  place-items: center !important;
  grid-template-columns: 1fr !important;
  padding: 28px !important;
  background: #F5F7FA !important;
}

body .auth-page::before,
body .auth-page::after,
body .auth-brand .front-option-grid,
body .auth-brand p,
body .auth-brand h1,
body .auth-brand .eyebrow {
  display: none !important;
}

body .auth-brand {
  display: flex !important;
  position: absolute !important;
  top: max(24px, 8vh) !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  width: auto !important;
  max-width: none !important;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

body .auth-brand img {
  width: 108px !important;
  height: 108px !important;
  padding: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
}

body .auth-card {
  width: min(520px, calc(100vw - 32px)) !important;
  margin-top: 110px !important;
  background: #FFFFFF !important;
  border: 1px solid #E5E7EB !important;
  box-shadow: 0 20px 50px rgba(16, 24, 40, .08) !important;
}

body .brand img {
  width: 78px !important;
  height: 78px !important;
  padding: 6px !important;
}

body .profile-card img,
body .artist-account-card img,
body .user-cell img {
  width: 84px !important;
  height: 84px !important;
}

body .primary-button,
body .auth-card button[type="submit"] {
  background: #2563EB !important;
  color: #FFFFFF !important;
  border-color: #2563EB !important;
  box-shadow: 0 12px 28px rgba(37, 99, 235, .18) !important;
}

body .ghost-button {
  color: #2563EB !important;
  border-color: #BFDBFE !important;
  background: #FFFFFF !important;
}

body .bulk-template-actions {
  display: grid;
  gap: 10px;
}

body .bulk-validation-row {
  grid-template-columns: minmax(220px, 1.5fr) 150px 150px 140px auto !important;
}

body .bulk-stats span {
  background: #F8FAFC !important;
  border-color: #E5E7EB !important;
}

@media (max-width: 760px) {
  body .auth-brand { top: 24px !important; }
  body .auth-card { margin-top: 96px !important; }
  body .brand img { width: 64px !important; height: 64px !important; }
  body .bulk-validation-row { grid-template-columns: 1fr !important; }
}

/* Dedicated admin login panel */
body .auth-card.admin-login-card {
  border-top: 4px solid #2563EB !important;
  box-shadow: 0 22px 60px rgba(37, 99, 235, .14) !important;
}

body .auth-card.admin-login-card .panel-header h2::before {
  content: "ADMIN";
  display: inline-flex;
  margin-right: 10px;
  padding: 5px 9px;
  border-radius: 8px;
  background: #DBEAFE;
  color: #1D4ED8;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .08em;
  vertical-align: middle;
}

/* Guaranteed create-release modal */
.quick-release-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(15, 23, 42, .48);
  backdrop-filter: blur(8px);
}

.quick-release-card {
  width: min(980px, 100%);
  max-height: min(88vh, 900px);
  overflow: auto;
  background: #FFFFFF;
  border: 1px solid #D0D5DD;
  border-radius: 14px;
  padding: 24px;
  box-shadow: 0 28px 90px rgba(16, 24, 40, .26);
}

.quick-release-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
  border-bottom: 1px solid #EAECF0;
  padding-bottom: 16px;
}

.quick-release-head h2 {
  margin: 0;
  font-size: 28px;
  line-height: 1.15;
  color: #101828;
}

.quick-release-modal .release-type-switch {
  margin-bottom: 16px;
}

.quick-release-modal .notice-box.error {
  border-color: #FCA5A5 !important;
  background: #FEF2F2 !important;
  color: #991B1B !important;
}

/* Admin login is intentionally different from the user login */
body .admin-auth-page {
  background: radial-gradient(circle at 18% 20%, rgba(37, 99, 235, .28), transparent 34%), #0F172A !important;
  color: #FFFFFF !important;
  place-items: center !important;
}

body .admin-auth-page .auth-brand {
  top: max(20px, 6vh) !important;
}

body .admin-auth-page .auth-brand img {
  filter: invert(1) brightness(5) !important;
}

body .admin-auth-page::before {
  content: "Zaventra Music Group Admin Control" !important;
  display: block !important;
  position: fixed !important;
  left: 42px !important;
  top: 42px !important;
  color: #DBEAFE !important;
  font-size: clamp(28px, 4vw, 58px) !important;
  line-height: 1.02 !important;
  font-weight: 900 !important;
  width: min(520px, 38vw) !important;
  letter-spacing: 0 !important;
}

body .admin-auth-page::after {
  content: "Secure access for admins only. User, artist, label and sub-user logins stay on the normal portal." !important;
  display: block !important;
  position: fixed !important;
  left: 44px !important;
  top: 190px !important;
  color: #93C5FD !important;
  font-size: 16px !important;
  line-height: 1.6 !important;
  width: min(440px, 34vw) !important;
}

body .admin-auth-page .auth-card.admin-login-card {
  margin-left: min(42vw, 560px) !important;
  margin-top: 70px !important;
  background: rgba(255, 255, 255, .98) !important;
  border: 1px solid rgba(191, 219, 254, .8) !important;
  border-top: 5px solid #2563EB !important;
}

@media (max-width: 980px) {
  body .admin-auth-page::before,
  body .admin-auth-page::after { display: none !important; }
  body .admin-auth-page .auth-card.admin-login-card { margin-left: 0 !important; }
}

/* Mobile app layout: this final layer intentionally wins over legacy breakpoints. */
.mobile-app-header {
  display: none;
}

@media (max-width: 760px) {
  html,
  body {
    width: 100%;
    min-height: 100%;
    overflow-x: hidden;
    -webkit-tap-highlight-color: transparent;
  }

  body {
    padding: 0 0 calc(76px + env(safe-area-inset-bottom)) !important;
    background: #F5F7FA !important;
  }

  body .shell {
    display: block !important;
    min-height: 100dvh !important;
    padding: 0 !important;
  }

  body .main {
    width: 100% !important;
    min-width: 0 !important;
    padding: 76px 12px calc(94px + env(safe-area-inset-bottom)) !important;
  }

  body .mobile-app-header {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 900;
    display: flex;
    align-items: center;
    gap: 10px;
    height: calc(64px + env(safe-area-inset-top));
    padding: calc(8px + env(safe-area-inset-top)) 58px 8px 14px;
    border-bottom: 1px solid #E5E7EB;
    background: rgba(255, 255, 255, .97);
    box-shadow: 0 1px 8px rgba(16, 24, 40, .06);
    backdrop-filter: blur(14px);
  }

  body .mobile-app-header img {
    width: 42px !important;
    height: 42px !important;
    flex: 0 0 42px;
    object-fit: contain;
    background: transparent !important;
  }

  body .mobile-app-header div {
    min-width: 0;
    display: grid;
    gap: 1px;
  }

  body .mobile-app-header strong {
    color: #101828;
    font-size: 15px;
    line-height: 1.15;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  body .mobile-app-header span {
    color: #667085;
    font-size: 11px;
  }

  body .global-top-actions {
    position: fixed !important;
    z-index: 950 !important;
    top: calc(12px + env(safe-area-inset-top)) !important;
    right: 12px !important;
  }

  body .sidebar {
    position: fixed !important;
    inset: auto 0 0 0 !important;
    width: 100% !important;
    height: calc(72px + env(safe-area-inset-bottom)) !important;
    padding: 6px 8px calc(6px + env(safe-area-inset-bottom)) !important;
    border: 0 !important;
    border-top: 1px solid #E5E7EB !important;
    border-radius: 0 !important;
    background: rgba(255, 255, 255, .98) !important;
    box-shadow: 0 -4px 18px rgba(16, 24, 40, .08) !important;
    overflow: hidden !important;
  }

  body .sidebar .nav {
    display: grid !important;
    grid-auto-flow: column !important;
    grid-auto-columns: 68px !important;
    align-items: stretch !important;
    gap: 4px !important;
    width: 100% !important;
    height: 60px !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    scroll-snap-type: x proximity;
  }

  body .sidebar .nav button,
  body .sidebar .nav a {
    scroll-snap-align: center;
    min-width: 68px !important;
    width: 68px !important;
    height: 58px !important;
    min-height: 58px !important;
    padding: 4px 3px !important;
    border: 0 !important;
    border-radius: 10px !important;
    gap: 2px !important;
    font-size: 10px !important;
    line-height: 1.05 !important;
  }

  body .sidebar .nav button span:first-child,
  body .sidebar .nav a span:first-child {
    width: 28px !important;
    height: 28px !important;
    margin: 0 !important;
    border-radius: 8px !important;
    font-size: 13px !important;
  }

  body .topbar,
  body .user-topbar-premium,
  body .admin-topbar-premium,
  body .wallet-hero,
  body .control-hero {
    display: flex !important;
    align-items: flex-start !important;
    min-height: 0 !important;
    margin: 0 0 12px !important;
    padding: 16px !important;
    border-radius: 10px !important;
  }

  body .topbar h1,
  body .user-topbar-premium h1,
  body .admin-topbar-premium h1,
  body .wallet-hero h1,
  body .control-hero h1,
  body .panel h1 {
    font-size: 22px !important;
    line-height: 1.18 !important;
  }

  body .topbar p,
  body .user-topbar-premium p,
  body .admin-topbar-premium p,
  body .wallet-hero p,
  body .control-hero p {
    font-size: 14px !important;
    line-height: 1.45 !important;
  }

  body .hero-panel {
    min-height: 0 !important;
    padding: 20px 18px !important;
    border-radius: 12px !important;
  }

  body .hero-panel h1,
  body .hero-panel h2,
  body .hero-panel h3 {
    font-size: 26px !important;
    line-height: 1.12 !important;
  }

  body .grid,
  body .form-grid,
  body .settings-grid,
  body .admin-kpis,
  body .metrics-grid,
  body .dashboard-grid,
  body .metadata-grid,
  body .file-grid,
  body .option-grid {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  body .panel,
  body .premium-panel,
  body .metric,
  body .release-card,
  body .user-module-card {
    min-width: 0 !important;
    padding: 16px !important;
    border-radius: 10px !important;
  }

  body input,
  body select,
  body textarea {
    width: 100% !important;
    min-height: 46px !important;
    font-size: 16px !important;
  }

  body button,
  body .primary-button,
  body .ghost-button,
  body .danger-button {
    min-height: 44px;
    touch-action: manipulation;
  }

  body .tool-row,
  body .action-menu,
  body .panel-header {
    gap: 8px !important;
  }

  body .tool-row > button,
  body .tool-row > a {
    flex: 1 1 auto;
  }

  body .admin-table-wrap,
  body .table-wrap,
  body .table {
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: auto !important;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
  }

  body .admin-table-wrap table,
  body .table-wrap table {
    min-width: 760px !important;
  }

  body .quick-release-modal,
  body .modal-backdrop {
    align-items: stretch !important;
    padding: 0 !important;
  }

  body .quick-release-card,
  body .inline-modal-card,
  body .payout-modal {
    width: 100% !important;
    max-width: none !important;
    height: 100dvh !important;
    max-height: 100dvh !important;
    margin: 0 !important;
    padding: calc(18px + env(safe-area-inset-top)) 14px calc(24px + env(safe-area-inset-bottom)) !important;
    border: 0 !important;
    border-radius: 0 !important;
  }

  body .quick-release-head {
    position: sticky;
    top: calc(-18px - env(safe-area-inset-top));
    z-index: 2;
    margin: calc(-18px - env(safe-area-inset-top)) -14px 16px;
    padding: calc(14px + env(safe-area-inset-top)) 14px 12px;
    background: #FFFFFF;
  }

  body .auth-page {
    min-height: 100dvh !important;
    padding: calc(18px + env(safe-area-inset-top)) 16px calc(18px + env(safe-area-inset-bottom)) !important;
  }

  body .auth-brand {
    top: calc(18px + env(safe-area-inset-top)) !important;
  }

  body .auth-brand img {
    width: 82px !important;
    height: 82px !important;
  }

  body .auth-card,
  body .admin-auth-page .auth-card.admin-login-card {
    width: 100% !important;
    margin: 100px 0 0 !important;
    padding: 18px !important;
    border-radius: 12px !important;
  }
}

/* Final mobile + release stability pass */
.release-form-final { width: 100%; }
.release-form-final .release-progressive { width: 100%; }
.release-form-final .release-step-page { min-width: 0; }
.release-form-final input,
.release-form-final select,
.release-form-final textarea,
.release-form-final button { max-width: 100%; }
.asset-manager-open .asset-manager-shell {
  position: fixed;
  inset: 12px;
  z-index: 80;
  overflow: auto;
  background: #fff;
  border: 1px solid #dbe3ef;
  box-shadow: 0 24px 80px rgba(15, 23, 42, .18);
}
.auth-page.admin-auth-page .auth-brand h1 { color: #111827; }
.auth-page.admin-auth-page .auth-card { border-top: 4px solid #2563EB; }
@media (max-width: 860px) {
  body { overflow-x: hidden; }
  .auth-page,
  body .auth-page,
  body .admin-auth-page {
    min-height: 100svh;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 22px !important;
    grid-template-columns: 1fr !important;
    background: #F5F7FA !important;
  }
  .auth-page::before,
  .auth-page::after,
  body .auth-page::before,
  body .auth-page::after { display: none !important; }
  .auth-brand { display: none !important; }
  .auth-card,
  body .auth-card,
  body .auth-card.admin-login-card {
    width: min(100%, 420px) !important;
    margin: 0 auto !important;
    border-radius: 18px !important;
  }
  .app-shell { grid-template-columns: 1fr !important; }
  .sidebar { display: none !important; }
  .main { padding: 14px 12px 96px !important; width: 100% !important; }
  .topbar,
  .hero-card,
  .panel { border-radius: 14px !important; padding: 18px !important; }
  .topbar h1,
  .hero-card h1,
  .panel h1 { font-size: clamp(1.55rem, 7vw, 2.35rem) !important; line-height: 1.08 !important; overflow-wrap: anywhere; }
  .panel h2,
  .card h2 { font-size: clamp(1.25rem, 5vw, 1.65rem) !important; line-height: 1.15 !important; overflow-wrap: anywhere; }
  .metric-grid,
  .dashboard-grid,
  .form-grid,
  .release-credit-grid,
  .asset-manager-grid { grid-template-columns: 1fr !important; }
  .bottom-nav {
    display: flex !important;
    overflow-x: auto !important;
    gap: 8px !important;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom)) !important;
    white-space: normal !important;
  }
  .bottom-nav button,
  .bottom-nav a {
    flex: 0 0 84px !important;
    min-width: 84px !important;
    max-width: 94px !important;
    font-size: 12px !important;
    line-height: 1.08 !important;
    word-break: normal !important;
    overflow-wrap: anywhere !important;
  }
  .bottom-nav span,
  .bottom-nav strong { white-space: normal !important; overflow: visible !important; text-overflow: clip !important; }
  .release-stepper { display: grid !important; grid-template-columns: 1fr !important; gap: 8px !important; }
  .release-stepper button { justify-content: flex-start !important; white-space: normal !important; text-align: left !important; }
  .sticky-release-actions { position: sticky !important; bottom: 76px !important; flex-wrap: wrap !important; gap: 8px !important; }
  .asset-manager-open .asset-manager-shell { inset: 0 !important; border-radius: 0 !important; }
  .asset-manager-head { align-items: flex-start !important; gap: 12px !important; }
  .asset-manager-side { display: flex !important; overflow-x: auto !important; }
  .track-row { grid-template-columns: 34px 1fr !important; }
  .table .row,
  .row.admin { grid-template-columns: 1fr !important; gap: 10px !important; align-items: start !important; }
  .notice-box,
  .muted { overflow-wrap: anywhere; }
}

/* Final release form simplification: no video tab, no launcher, clean tracks */
.catalog-create-bar { display: none !important; }
.release-form-final .release-stepper {
  display: flex !important;
  gap: 10px !important;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  padding: 10px !important;
  align-items: stretch !important;
}
.release-form-final .release-stepper button {
  flex: 0 0 190px !important;
  min-width: 0 !important;
  min-height: 58px !important;
  padding: 10px 14px !important;
  border-radius: 18px !important;
  white-space: normal !important;
  line-height: 1.12 !important;
  text-align: left !important;
  overflow: hidden !important;
}
.release-form-final .release-stepper button span {
  flex: 0 0 32px !important;
  width: 32px !important;
  height: 32px !important;
  font-size: 14px !important;
}
.release-form-final .release-step-pages,
.release-form-final .release-step-page,
.release-form-final .release-direct-assets {
  min-width: 0 !important;
  overflow: visible !important;
}
.release-direct-assets {
  display: grid !important;
  gap: 18px !important;
  border: 1px solid #DBEAFE !important;
  border-radius: 18px !important;
  padding: 18px !important;
  background: #FFFFFF !important;
  box-shadow: none !important;
}
.direct-assets-head {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 430px) !important;
  gap: 18px !important;
  align-items: start !important;
  border-bottom: 1px solid #E5E7EB !important;
  padding-bottom: 14px !important;
}
.direct-assets-head h2 { margin: 4px 0 6px !important; font-size: 1.35rem !important; }
.direct-validation { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
.release-direct-assets .artwork-preview-card,
.release-direct-assets .upload-drop { min-width: 0 !important; }
.release-direct-assets #track-list,
.release-direct-assets .track-list {
  overflow: visible !important;
  display: grid !important;
  gap: 14px !important;
}
.release-direct-assets .track-row {
  display: grid !important;
  grid-template-columns: 46px minmax(180px, 1fr) minmax(150px, .7fr) minmax(240px, 1.1fr) auto !important;
  gap: 14px !important;
  align-items: end !important;
  overflow: visible !important;
  min-width: 0 !important;
  width: 100% !important;
}
.release-direct-assets .track-row > .field:nth-of-type(4),
.release-direct-assets .track-row > .field:nth-of-type(5),
.release-direct-assets .track-row > .field:nth-of-type(6),
.release-direct-assets .track-row > .field:nth-of-type(7),
.release-direct-assets .track-row > .field:nth-of-type(8),
.release-direct-assets .track-row > .field:nth-of-type(9),
.release-direct-assets .track-row > .field:nth-of-type(10),
.release-direct-assets .track-row > .field:nth-of-type(11),
.release-direct-assets .track-row > .field:nth-of-type(12),
.release-direct-assets .track-row .track-flags {
  display: none !important;
}
.release-direct-assets .track-row > .field:nth-of-type(2),
.release-direct-assets .track-row > .field:nth-of-type(3),
.release-direct-assets .track-row > .field:nth-of-type(13) {
  display: grid !important;
  min-width: 0 !important;
}
.release-direct-assets .track-footer-actions {
  display: flex !important;
  gap: 8px !important;
  align-self: center !important;
}
.release-direct-assets .upload-drop span { min-height: 54px !important; }
.release-direct-assets input { width: 100% !important; min-width: 0 !important; }
@media (max-width: 900px) {
  .direct-assets-head { grid-template-columns: 1fr !important; }
  .direct-validation { grid-template-columns: 1fr !important; }
  .release-direct-assets .track-row {
    grid-template-columns: 38px 1fr !important;
  }
  .release-direct-assets .track-row > .field:nth-of-type(3),
  .release-direct-assets .track-row > .field:nth-of-type(13),
  .release-direct-assets .track-footer-actions {
    grid-column: 2 !important;
  }
  .release-form-final .release-stepper button { flex-basis: 170px !important; }
}

/* Users: full-screen access creation workspace */
.inline-modal[data-label-user-modal] {
  position: fixed !important;
  inset: 0 !important;
  z-index: 120 !important;
  display: grid !important;
  place-items: stretch !important;
  background: #F5F7FA !important;
  padding: 0 !important;
  overflow: hidden !important;
}
.inline-modal[data-label-user-modal].hidden { display: none !important; }
.inline-modal[data-label-user-modal] .inline-modal-card {
  width: 100vw !important;
  height: 100svh !important;
  max-width: none !important;
  max-height: none !important;
  border-radius: 0 !important;
  border: 0 !important;
  box-shadow: none !important;
  overflow: auto !important;
  padding: 28px clamp(18px, 4vw, 56px) 44px !important;
  background: #FFFFFF !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  align-content: start !important;
}
.inline-modal[data-label-user-modal] .panel-header {
  position: sticky !important;
  top: 0 !important;
  z-index: 2 !important;
  background: rgba(255,255,255,.96) !important;
  backdrop-filter: blur(10px) !important;
  margin: -28px calc(clamp(18px, 4vw, 56px) * -1) 18px !important;
  padding: 22px clamp(18px, 4vw, 56px) !important;
  border-bottom: 1px solid #E5E7EB !important;
}
.inline-modal[data-label-user-modal] .panel-header h2 { font-size: clamp(1.5rem, 3vw, 2.2rem) !important; }
.inline-modal[data-label-user-modal] .field.full,
.inline-modal[data-label-user-modal] .panel-header.full { grid-column: 1 / -1 !important; }
.inline-modal[data-label-user-modal] .assignment-picker,
.inline-modal[data-label-user-modal] .permission-grid {
  max-height: none !important;
  overflow: visible !important;
}
.inline-modal[data-label-user-modal] .alpha-directory {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)) !important;
  gap: 10px !important;
  max-height: none !important;
  overflow: visible !important;
}
.inline-modal[data-label-user-modal] .alpha-directory label {
  min-height: 70px !important;
  align-items: center !important;
}
.inline-modal[data-label-user-modal] .rich-permission-grid {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)) !important;
}
@media (max-width: 760px) {
  .inline-modal[data-label-user-modal] .inline-modal-card {
    grid-template-columns: 1fr !important;
    padding: 18px 14px 96px !important;
  }
  .inline-modal[data-label-user-modal] .panel-header {
    margin: -18px -14px 14px !important;
    padding: 16px 14px !important;
  }
}

/* Assignment picker readability fix */
.inline-modal[data-label-user-modal] .assignment-directory {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)) !important;
  gap: 12px !important;
  width: 100% !important;
}
.inline-modal[data-label-user-modal] .assignment-directory .assignment-option {
  display: grid !important;
  grid-template-columns: 20px minmax(0, 1fr) auto !important;
  gap: 12px !important;
  align-items: center !important;
  min-height: 58px !important;
  width: 100% !important;
  padding: 12px 14px !important;
  border: 1px solid #E5E7EB !important;
  border-radius: 12px !important;
  background: #FFFFFF !important;
}
.inline-modal[data-label-user-modal] .assignment-directory .assignment-option input {
  width: 18px !important;
  height: 18px !important;
  margin: 0 !important;
}
.inline-modal[data-label-user-modal] .assignment-directory .assignment-option span {
  display: block !important;
  min-width: 0 !important;
  width: auto !important;
  white-space: nowrap !important;
  word-break: normal !important;
  overflow-wrap: normal !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  line-height: 1.25 !important;
  font-weight: 800 !important;
  color: #111827 !important;
}
.inline-modal[data-label-user-modal] .assignment-directory .assignment-option small {
  white-space: nowrap !important;
  word-break: normal !important;
  overflow-wrap: normal !important;
  line-height: 1.2 !important;
  font-size: 12px !important;
  color: #C76F3A !important;
}
.inline-modal[data-label-user-modal] .admin-inline-search::placeholder { text-transform: none !important; }
@media (max-width: 620px) {
  .inline-modal[data-label-user-modal] .assignment-directory { grid-template-columns: 1fr !important; }
  .inline-modal[data-label-user-modal] .assignment-directory .assignment-option {
    grid-template-columns: 20px minmax(0, 1fr) !important;
  }
  .inline-modal[data-label-user-modal] .assignment-directory .assignment-option small {
    grid-column: 2 !important;
    white-space: normal !important;
  }
}

/* Final fix: release assets must never squeeze or overlap */
.release-form-final .release-step-page .release-direct-assets,
.release-form-final .release-direct-assets {
  grid-column: 1 / -1 !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  box-sizing: border-box !important;
  overflow: visible !important;
}
.release-form-final .direct-assets-head {
  grid-template-columns: 1fr !important;
  width: 100% !important;
}
.release-form-final .direct-assets-head > div:first-child {
  min-width: 0 !important;
  width: 100% !important;
}
.release-form-final .direct-assets-head .eyebrow,
.release-form-final .direct-assets-head h2,
.release-form-final .direct-assets-head p {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  white-space: normal !important;
  word-break: normal !important;
  overflow-wrap: normal !important;
  line-height: 1.25 !important;
}
.release-form-final .direct-assets-head h2 {
  font-size: clamp(1.35rem, 2.4vw, 1.8rem) !important;
}
.release-form-final .direct-validation {
  grid-template-columns: repeat(3, minmax(180px, 1fr)) !important;
  width: 100% !important;
}
.release-form-final .release-direct-assets .track-row {
  display: grid !important;
  grid-template-columns: 46px minmax(0, 1fr) minmax(0, .8fr) auto !important;
  grid-template-areas:
    "num title version actions"
    "num audio audio actions" !important;
  gap: 12px !important;
  align-items: start !important;
  width: 100% !important;
  max-width: 100% !important;
  overflow: visible !important;
  padding: 18px !important;
}
.release-form-final .release-direct-assets .track-row .track-index { grid-area: num !important; align-self: center !important; }
.release-form-final .release-direct-assets .track-row > .field,
.release-form-final .release-direct-assets .track-row > .disc-field,
.release-form-final .release-direct-assets .track-row > .track-flags {
  display: none !important;
}
.release-form-final .release-direct-assets .track-row > .field:nth-of-type(2) {
  display: grid !important;
  grid-area: title !important;
}
.release-form-final .release-direct-assets .track-row > .field:nth-of-type(3) {
  display: grid !important;
  grid-area: version !important;
}
.release-form-final .release-direct-assets .track-row > .upload-drop,
.release-form-final .release-direct-assets .track-row > .field.upload-drop:nth-of-type(13) {
  display: grid !important;
  grid-area: audio !important;
  grid-column: auto !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
}
.release-form-final .release-direct-assets .track-row > .track-footer-actions {
  display: flex !important;
  grid-area: actions !important;
  flex-direction: column !important;
  justify-content: center !important;
  align-self: stretch !important;
  min-width: 110px !important;
}
.release-form-final .release-direct-assets .upload-drop input[type="file"] {
  width: 100% !important;
  max-width: 100% !important;
}
.release-form-final .release-direct-assets .upload-drop span {
  width: 100% !important;
  max-width: 100% !important;
  min-height: 88px !important;
  box-sizing: border-box !important;
}
@media (max-width: 760px) {
  .release-form-final .direct-validation { grid-template-columns: 1fr !important; }
  .release-form-final .release-direct-assets .track-row {
    grid-template-columns: 38px minmax(0, 1fr) !important;
    grid-template-areas:
      "num title"
      "num version"
      "num audio"
      "num actions" !important;
  }
  .release-form-final .release-direct-assets .track-row > .track-footer-actions {
    flex-direction: row !important;
    justify-content: flex-start !important;
    min-width: 0 !important;
  }
}
