/* v3.29.4 – Card / Panel Visual Tuning
   Scope: admin-only canvas. Purpose: make legacy panels feel closer to the new SINKAYO OS shell without redesigning detail/editor yet. */

body.is-admin:not(.is-guest):not(.is-guest-preview) {
  --sx-panel-tint: rgba(255,255,255,.042);
  --sx-panel-tint-strong: rgba(255,255,255,.065);
  --sx-panel-border: rgba(255,255,255,.095);
  --sx-panel-border-strong: rgba(217,52,97,.24);
  --sx-panel-shadow: 0 24px 78px rgba(0,0,0,.30), inset 0 1px 0 rgba(255,255,255,.045);
}

body.is-admin:not(.is-guest):not(.is-guest-preview) .content {
  padding-left: clamp(18px, 1.8vw, 34px);
  padding-right: clamp(24px, 3.2vw, 56px);
}

body.is-admin:not(.is-guest):not(.is-guest-preview) .content > .view {
  max-width: min(100%, 1840px) !important;
}

body.is-admin:not(.is-guest):not(.is-guest-preview) .content > .view > .page-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin: 0 0 22px;
  padding: 10px 0 18px;
  border-bottom: 1px solid rgba(255,255,255,.075);
}

body.is-admin:not(.is-guest):not(.is-guest-preview) .content > .view > .page-header h2 {
  margin: 0;
  color: var(--sx-text-0, var(--text));
  font-family: Rajdhani, Inter, sans-serif;
  font-size: clamp(38px, 3vw, 64px);
  line-height: .9;
  letter-spacing: .08em;
  text-transform: uppercase;
  text-shadow: 0 24px 76px rgba(0,0,0,.48);
}

body.is-admin:not(.is-guest):not(.is-guest-preview) .content > .view > .page-header h2::after {
  content: "";
  display: block;
  width: 86px;
  height: 3px;
  margin-top: 15px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--sx-accent, #d93461), var(--sx-accent-2, #36d6ff));
  box-shadow: 0 0 24px rgba(217,52,97,.24);
}

body.is-admin:not(.is-guest):not(.is-guest-preview) .content > .view:not(#dashboard) .card,
body.is-admin:not(.is-guest):not(.is-guest-preview) .content > .view:not(#dashboard) .stat-card,
body.is-admin:not(.is-guest):not(.is-guest-preview) .content > .view:not(#dashboard) .editor-workflow-panel,
body.is-admin:not(.is-guest):not(.is-guest-preview) .content > .view:not(#dashboard) .editor-form-card,
body.is-admin:not(.is-guest):not(.is-guest-preview) .content > .view:not(#dashboard) .empty-state,
body.is-admin:not(.is-guest):not(.is-guest-preview) .content > .view:not(#dashboard) .about-card,
body.is-admin:not(.is-guest):not(.is-guest-preview) .content > .view:not(#dashboard) .album-card {
  border: 1px solid var(--sx-panel-border);
  border-radius: 26px;
  background:
    radial-gradient(circle at 12% 0%, rgba(217,52,97,.10), transparent 34%),
    radial-gradient(circle at 92% 2%, rgba(54,214,255,.055), transparent 30%),
    linear-gradient(180deg, rgba(24,20,34,.70), rgba(10,9,16,.70));
  box-shadow: var(--sx-panel-shadow);
  backdrop-filter: blur(16px) saturate(125%);
}

body.is-admin:not(.is-guest):not(.is-guest-preview) .content > .view:not(#dashboard) .card:hover,
body.is-admin:not(.is-guest):not(.is-guest-preview) .content > .view:not(#dashboard) .stat-card:hover,
body.is-admin:not(.is-guest):not(.is-guest-preview) .content > .view:not(#dashboard) .album-card:hover {
  border-color: rgba(217,52,97,.26);
  box-shadow: 0 28px 90px rgba(0,0,0,.34), 0 0 34px rgba(217,52,97,.055), inset 0 1px 0 rgba(255,255,255,.06);
}

body.is-admin:not(.is-guest):not(.is-guest-preview) .content > .view:not(#dashboard) .card h3,
body.is-admin:not(.is-guest):not(.is-guest-preview) .content > .view:not(#dashboard) .stat-card h3 {
  color: var(--sx-text-0, var(--text));
  font-family: Rajdhani, Inter, sans-serif;
  font-size: 22px;
  letter-spacing: .055em;
  text-transform: uppercase;
}

body.is-admin:not(.is-guest):not(.is-guest-preview) .grid,
body.is-admin:not(.is-guest):not(.is-guest-preview) .stats-layout-grid,
body.is-admin:not(.is-guest):not(.is-guest-preview) .stats-classic-grid,
body.is-admin:not(.is-guest):not(.is-guest-preview) .detail-command-grid,
body.is-admin:not(.is-guest):not(.is-guest-preview) .detail-admin-bottom {
  gap: clamp(16px, 1.45vw, 24px);
}

body.is-admin:not(.is-guest):not(.is-guest-preview) #songs .filter-bar,
body.is-admin:not(.is-guest):not(.is-guest-preview) #songs .filter-bar-row2,
body.is-admin:not(.is-guest):not(.is-guest-preview) .songs-meta-bar {
  max-width: min(100%, 1280px);
}

body.is-admin:not(.is-guest):not(.is-guest-preview) #songs #tableView {
  overflow: auto;
  border: 1px solid rgba(255,255,255,.085);
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(20,16,30,.66), rgba(7,6,12,.58));
  box-shadow: 0 24px 80px rgba(0,0,0,.28), inset 0 1px 0 rgba(255,255,255,.035);
}

body.is-admin:not(.is-guest):not(.is-guest-preview) #songs table {
  margin: 0;
  border-collapse: separate;
  border-spacing: 0;
  background: transparent;
}

body.is-admin:not(.is-guest):not(.is-guest-preview) #songs thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: rgba(7,6,12,.92);
  color: var(--sx-text-2, var(--text-muted));
  border-bottom: 1px solid rgba(255,255,255,.08);
  text-transform: uppercase;
  letter-spacing: .11em;
  font-size: 11px;
}

body.is-admin:not(.is-guest):not(.is-guest-preview) #songs tbody tr {
  transition: background .16s ease, color .16s ease;
}

body.is-admin:not(.is-guest):not(.is-guest-preview) #songs tbody tr:hover {
  background: rgba(217,52,97,.075);
}

body.is-admin:not(.is-guest):not(.is-guest-preview) #songs tbody td:first-child {
  border-left: 3px solid transparent;
}
body.is-admin:not(.is-guest):not(.is-guest-preview) #songs tbody tr:hover td:first-child {
  border-left-color: rgba(217,52,97,.62);
}

body.is-admin:not(.is-guest):not(.is-guest-preview) input,
body.is-admin:not(.is-guest):not(.is-guest-preview) select,
body.is-admin:not(.is-guest):not(.is-guest-preview) textarea {
  border-color: rgba(255,255,255,.105);
  background: rgba(255,255,255,.045);
  color: var(--sx-text-0, var(--text));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.035);
}

body.is-admin:not(.is-guest):not(.is-guest-preview) input:focus,
body.is-admin:not(.is-guest):not(.is-guest-preview) select:focus,
body.is-admin:not(.is-guest):not(.is-guest-preview) textarea:focus {
  border-color: rgba(217,52,97,.46);
  box-shadow: 0 0 0 3px rgba(217,52,97,.12), inset 0 1px 0 rgba(255,255,255,.045);
}

body.is-admin:not(.is-guest):not(.is-guest-preview) .nav-btn,
body.is-admin:not(.is-guest):not(.is-guest-preview) .copy-btn,
body.is-admin:not(.is-guest):not(.is-guest-preview) .toggle-btn,
body.is-admin:not(.is-guest):not(.is-guest-preview) .back-btn {
  border-color: rgba(255,255,255,.105);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.035);
}

body.is-admin:not(.is-guest):not(.is-guest-preview) #detail .detail-header {
  min-height: 260px;
  padding: clamp(22px, 2.4vw, 38px);
  border-radius: 32px;
}

body.is-admin:not(.is-guest):not(.is-guest-preview) #detail .detail-top {
  gap: clamp(22px, 2.5vw, 42px);
}

body.is-admin:not(.is-guest):not(.is-guest-preview) #detail .detail-cover-wrapper {
  border-radius: 26px;
  box-shadow: 0 24px 70px rgba(0,0,0,.34), 0 0 0 1px rgba(255,255,255,.07) inset;
}

body.is-admin:not(.is-guest):not(.is-guest-preview) #detail #dTitle {
  font-family: Rajdhani, Inter, sans-serif;
  font-size: clamp(38px, 4.6vw, 78px);
  line-height: .9;
  letter-spacing: .035em;
  text-transform: uppercase;
}

body.is-admin:not(.is-guest):not(.is-guest-preview) #changelog .changelog-viewer-center,
body.is-admin:not(.is-guest):not(.is-guest-preview) #systemhealth .system-health-shell,
body.is-admin:not(.is-guest):not(.is-guest-preview) #releasecenter .command-center-shell,
body.is-admin:not(.is-guest):not(.is-guest-preview) #aicreative .command-center-shell,
body.is-admin:not(.is-guest):not(.is-guest-preview) #archiverecovery .command-center-shell {
  width: min(100%, 1520px);
}

@media (min-width: 1700px) {
  body.is-admin:not(.is-guest):not(.is-guest-preview) .content > .view {
    max-width: min(100%, 1900px) !important;
  }
  body.is-admin:not(.is-guest):not(.is-guest-preview) #songs .filter-bar,
  body.is-admin:not(.is-guest):not(.is-guest-preview) #songs .filter-bar-row2,
  body.is-admin:not(.is-guest):not(.is-guest-preview) .songs-meta-bar {
    max-width: min(100%, 1480px);
  }
}

@media (max-width: 1180px) {
  body.is-admin:not(.is-guest):not(.is-guest-preview) .content > .view > .page-header {
    align-items: flex-start;
    flex-direction: column;
  }
  body.is-admin:not(.is-guest):not(.is-guest-preview) .content > .view > .page-header h2 {
    font-size: clamp(34px, 9vw, 50px);
  }
}
