/* Discovery Mode — Merphi product surface (aligned with catalog/home) */
:root {
  --dm-ink: #1a1814;
  --dm-muted: #6b6560;
  --dm-line: rgba(26, 24, 20, 0.1);
  --dm-panel: #ffffff;
  --dm-accent: #1db954;
  --dm-accent-deep: #148a3c;
  --dm-lime: #c9f55d;
  --dm-canvas: #f6f5f1;
  --dm-shadow: 0 10px 26px rgba(26, 24, 20, 0.07), 0 1px 0 rgba(26, 24, 20, 0.04);
}

.dm-page {
  gap: 1.15rem;
  padding-bottom: 2.5rem;
}

.dm-page-header {
  position: relative;
  isolation: isolate;
  min-height: 214px;
  margin: 0;
  padding: clamp(1.35rem, 3vw, 2.15rem) clamp(1.25rem, 4vw, 3rem);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 22px;
  background:
    radial-gradient(circle at 76% 23%, rgba(29, 185, 84, 0.23), transparent 16%),
    radial-gradient(circle at 84% 84%, rgba(201, 245, 93, 0.16), transparent 23%),
    linear-gradient(130deg, #090a09 0%, #151b15 56%, #0d2316 100%);
  box-shadow: 0 22px 48px rgba(21, 25, 20, 0.19);
}

.dm-page-header::before,
.dm-page-header::after {
  position: absolute;
  z-index: -1;
  content: "";
  border: 1px solid rgba(201, 245, 93, 0.24);
  border-radius: 50%;
}

.dm-page-header::before {
  width: 370px;
  height: 370px;
  right: 7rem;
  bottom: -282px;
}

.dm-page-header::after {
  width: 255px;
  height: 255px;
  right: -86px;
  top: -120px;
}

.dm-page-header > div:first-child {
  position: relative;
  max-width: 47rem;
}

.dm-page-header .overline {
  color: var(--dm-lime) !important;
  font-weight: 750;
  letter-spacing: 0.14em;
}

.dm-page-header h1 {
  max-width: 12ch;
  margin: 0.35rem 0 0.6rem !important;
  color: #fff !important;
  font-size: clamp(2rem, 4vw, 3.25rem) !important;
  font-weight: 720 !important;
  letter-spacing: -0.055em;
  line-height: 0.98;
}

.dm-page-header p:not(.overline) {
  max-width: 42rem;
  color: rgba(255, 255, 255, 0.72) !important;
  font-size: 0.93rem !important;
  line-height: 1.55;
}

.dm-header-actions {
  position: absolute;
  right: clamp(1.5rem, 5vw, 4rem);
  bottom: 1rem;
  width: min(30vw, 250px);
  height: 170px;
  align-items: center;
}

.dm-spotify-badge {
  position: absolute;
  z-index: 3;
  right: 0;
  bottom: 0;
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  background: rgba(10, 14, 10, 0.78);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(8px);
}

.dm-spotify-mark {
  width: 28px !important;
  height: 28px !important;
  padding: 0;
  border-radius: 50%;
  background: transparent;
  box-shadow: none;
  object-fit: contain;
  display: block;
}

.dm-hero-visual {
  position: absolute;
  right: 12px;
  bottom: 7px;
  width: 182px;
  height: 156px;
}

.dm-hero-wave {
  position: absolute;
  border: 1px solid rgba(201, 245, 93, 0.24);
  border-radius: 50%;
  transform: rotate(-30deg);
}

.dm-hero-wave-one {
  inset: 2px 12px 1px 8px;
}

.dm-hero-wave-two {
  inset: 20px 28px 17px 25px;
  border-color: rgba(29, 185, 84, 0.5);
}

.dm-hero-record {
  position: absolute;
  z-index: 2;
  right: 25px;
  bottom: 20px;
  display: grid;
  width: 118px;
  height: 118px;
  place-items: center;
  border: 7px solid #101510;
  border-radius: 50%;
  background:
    repeating-radial-gradient(circle, transparent 0 6px, rgba(255, 255, 255, 0.1) 6.5px 7.5px, transparent 8px 12px),
    radial-gradient(circle at 37% 31%, #3a6041, #121b14 57%, #070807 58%);
  box-shadow: -12px 18px 30px rgba(0, 0, 0, 0.34), inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  transform: rotate(-14deg);
}

.dm-hero-record::after {
  position: absolute;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #090a09;
  content: "";
}

.dm-hero-record-core {
  display: block;
  width: 35px;
  height: 35px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 50%;
  background: #c9f55d;
  box-shadow: inset 0 0 0 7px rgba(20, 89, 41, 0.88);
}

.dm-hero-eq {
  position: absolute;
  z-index: 3;
  bottom: 18px;
  left: 3px;
  display: flex;
  align-items: end;
  gap: 4px;
  height: 34px;
}

.dm-hero-eq i {
  display: block;
  width: 4px;
  border-radius: 999px;
  background: var(--dm-lime);
  opacity: 0.9;
}

.dm-hero-eq i:nth-child(1) { height: 12px; }
.dm-hero-eq i:nth-child(2) { height: 26px; }
.dm-hero-eq i:nth-child(3) { height: 18px; }
.dm-hero-eq i:nth-child(4) { height: 32px; }
.dm-hero-eq i:nth-child(5) { height: 15px; }

.dm-rules {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
  counter-reset: dm-rule;
}

.dm-rules li {
  position: relative;
  margin: 0;
  min-height: 126px;
  padding: 1rem 3.55rem 1rem 3.65rem;
  border: 1px solid rgba(26, 24, 20, 0.08);
  border-radius: 18px;
  background: var(--dm-panel);
  display: grid;
  align-content: start;
  gap: 0.3rem;
  box-shadow: 0 7px 18px rgba(26, 24, 20, 0.045);
  counter-increment: dm-rule;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.dm-rules li::before {
  position: absolute;
  top: 1rem;
  left: 1rem;
  display: grid;
  width: 1.8rem;
  height: 1.8rem;
  place-items: center;
  border-radius: 50%;
  background: #edf8d5;
  color: #337229;
  content: "0" counter(dm-rule);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.dm-rule-icon {
  position: absolute;
  top: 0.9rem;
  right: 0.9rem;
  display: grid;
  width: 2.15rem;
  height: 2.15rem;
  place-items: center;
  border-radius: 10px;
  background: rgba(26, 24, 20, 0.055);
  color: #507d45;
}

.dm-rule-icon svg {
  width: 1rem;
  height: 1rem;
  stroke-width: 2.1;
}

.dm-rules li:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(26, 24, 20, 0.08);
}

.dm-rules strong {
  font-size: 0.88rem;
  color: var(--dm-ink);
}

.dm-rules span {
  color: var(--dm-muted);
  font-size: 0.84rem;
  line-height: 1.4;
}

.dm-rules-fee {
  border-color: rgba(29, 185, 84, 0.2) !important;
  background: linear-gradient(135deg, rgba(201, 245, 93, 0.44), rgba(255, 255, 255, 0.92) 74%);
}

.dm-rules-fee strong {
  color: var(--dm-accent-deep);
}

.dm-rules-fee .dm-rule-icon {
  background: rgba(29, 185, 84, 0.13);
  color: #16853d;
}

.dm-panel {
  background: var(--dm-panel);
  border: 1px solid rgba(26, 24, 20, 0.09);
  border-radius: 20px;
  box-shadow: var(--dm-shadow);
  overflow: hidden;
}

.dm-panel-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 1.1rem 1.25rem 0.95rem;
  border-bottom: 1px solid var(--dm-line);
  background: linear-gradient(180deg, #fff, #fdfcf9);
}

.dm-panel-head h2 {
  margin: 0.15rem 0 0;
  font-size: 1.2rem;
  letter-spacing: -0.025em;
}

.dm-picker-meta {
  margin: 0.3rem 0 0;
  color: var(--dm-muted);
  font-size: 0.84rem;
}

.dm-toolbar {
  display: flex;
  gap: 0.55rem;
  flex-wrap: wrap;
  align-items: center;
}

.dm-toolbar .control {
  min-width: 12rem;
  border-radius: 10px;
}

.dm-toolbar .dm-filter-select {
  width: min(15rem, 100%);
  min-width: 12rem;
}

.dm-toolbar .dm-filter-select .merphi-combobox-trigger {
  min-height: 40px;
  border-color: rgba(26, 24, 20, 0.13);
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 1px 0 rgba(26, 24, 20, 0.03);
}

.dm-toolbar .dm-filter-select .merphi-combobox-trigger:focus-visible {
  outline: 3px solid rgba(29, 185, 84, 0.2);
  outline-offset: 2px;
}

.dm-page input[type="checkbox"] {
  width: 1.15rem;
  height: 1.15rem;
  margin: 0;
  flex: 0 0 auto;
  appearance: none;
  -webkit-appearance: none;
  border: 1.5px solid rgba(26, 24, 20, 0.28);
  border-radius: 5px;
  background: #fff;
  box-shadow: inset 0 1px 1px rgba(26, 24, 20, 0.04);
  cursor: pointer;
  transition: background-color 0.14s ease, border-color 0.14s ease, box-shadow 0.14s ease, transform 0.14s ease;
}

.dm-page input[type="checkbox"]:hover:not(:disabled) {
  border-color: var(--dm-accent);
  box-shadow: 0 0 0 3px rgba(29, 185, 84, 0.1);
}

.dm-page input[type="checkbox"]:checked {
  border-color: var(--dm-accent-deep);
  background-color: var(--dm-accent-deep);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='white' stroke-linecap='round' stroke-linejoin='round' stroke-width='2.4' d='m3.1 8.2 3 3 6.8-6.6'/%3E%3C/svg%3E");
  background-position: center;
  background-repeat: no-repeat;
  background-size: 0.85rem;
}

.dm-page input[type="checkbox"]:focus-visible {
  outline: 3px solid rgba(29, 185, 84, 0.28);
  outline-offset: 2px;
}

.dm-page input[type="checkbox"]:disabled {
  cursor: not-allowed;
  border-color: rgba(26, 24, 20, 0.12);
  background-color: #f0efea;
  opacity: 0.72;
}

.dm-page .check-line {
  min-height: 40px;
  padding: 0.4rem 0.65rem;
  gap: 0.55rem;
  border: 1px solid rgba(26, 24, 20, 0.1);
  border-radius: 10px;
  background: #f9f9f6;
  color: var(--dm-ink);
  font-size: 0.82rem;
  font-weight: 620;
  transition: border-color 0.14s ease, background-color 0.14s ease;
}

.dm-page .check-line:has(input:checked) {
  border-color: rgba(29, 185, 84, 0.34);
  background: rgba(201, 245, 93, 0.2);
}

.dm-track-list {
  display: flex;
  flex-direction: column;
  min-height: 12rem;
  gap: 0.55rem;
  padding: 0.65rem;
  background: #f7f7f3;
}

.dm-track-row {
  display: grid;
  grid-template-columns: auto 48px minmax(0, 1.4fr) minmax(0, 1fr) auto;
  gap: 0.75rem;
  align-items: center;
  padding: 0.82rem 1.25rem;
  border-bottom: 1px solid var(--dm-line);
  transition: background 0.15s ease, box-shadow 0.15s ease;
}

.dm-track-row:hover {
  background: linear-gradient(90deg, rgba(201, 245, 93, 0.1), rgba(29, 185, 84, 0.025));
}

.dm-track-row.is-selected {
  background: linear-gradient(90deg, rgba(201, 245, 93, 0.23), rgba(29, 185, 84, 0.08));
  box-shadow: inset 3px 0 0 var(--dm-accent);
}

.dm-track-row:has(input:focus-visible) {
  position: relative;
  z-index: 1;
  box-shadow: inset 3px 0 0 var(--dm-accent), 0 0 0 2px rgba(29, 185, 84, 0.17);
}

.dm-cover {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  object-fit: cover;
  background: #eeeae3;
}

.dm-cover-fallback {
  display: grid;
  place-items: center;
  color: var(--dm-muted);
  font-size: 0.7rem;
}

.dm-track-meta strong {
  display: block;
  font-size: 0.95rem;
}

.dm-track-meta span,
.dm-track-side span {
  color: var(--dm-muted);
  font-size: 0.82rem;
}

.dm-mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.8rem;
  letter-spacing: 0.02em;
}

.dm-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.24rem 0.55rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 650;
  border: 1px solid var(--dm-line);
  background: #fff;
}

.dm-pill.ok {
  color: var(--dm-accent-deep);
  border-color: rgba(29, 185, 84, 0.35);
  background: rgba(29, 185, 84, 0.1);
}

.dm-pill.warn {
  color: #8a5a12;
  border-color: rgba(232, 168, 124, 0.45);
  background: rgba(232, 168, 124, 0.14);
}

.dm-sticky-bar {
  position: sticky;
  bottom: 0.75rem;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
  margin: 0.85rem 1rem 1rem;
  padding: 0.85rem 1rem 0.85rem 1.15rem;
  border: 1px solid rgba(201, 245, 93, 0.16);
  border-radius: 15px;
  background: linear-gradient(110deg, #161c14, #16251a);
  color: #fff;
  box-shadow: 0 14px 36px rgba(20, 18, 16, 0.22);
}

.dm-sticky-bar.is-hidden {
  display: none;
}

.dm-sticky-bar .control {
  background: rgba(255, 255, 255, 0.12) !important;
  border-color: rgba(255, 255, 255, 0.2) !important;
  color: #fff !important;
  min-width: 0;
}

.dm-sticky-bar .control::placeholder {
  color: rgba(255, 255, 255, 0.55) !important;
}

.dm-sticky-bar .button-primary {
  background: #1ed760 !important;
  border-color: #1ed760 !important;
  color: #04140a !important;
  font-weight: 700;
  white-space: nowrap;
}

.dm-count {
  font-variant-numeric: tabular-nums;
  font-weight: 700;
}

.dm-count.bump {
  color: #1ed760;
}

.dm-release-group + .dm-release-group {
  border-top: 0;
}

.dm-release-group {
  overflow: hidden;
  border: 1px solid rgba(26, 24, 20, 0.08);
  border-radius: 15px;
  background: #fff;
  box-shadow: 0 3px 8px rgba(26, 24, 20, 0.025);
}

.dm-release-head {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  gap: 0.75rem;
  align-items: center;
  padding: 0.9rem 1.25rem 0.55rem;
  background: linear-gradient(105deg, #f3f5ed, #fafbf8 64%);
}

.dm-release-head .dm-cover {
  width: 40px;
  height: 40px;
  box-shadow: 0 4px 10px rgba(26, 24, 20, 0.12);
}

.dm-request-list {
  display: flex;
  flex-direction: column;
}

.dm-request-card {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--dm-line);
}

.dm-request-card summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.dm-request-card[open] {
  background: linear-gradient(90deg, rgba(201, 245, 93, 0.11), transparent 35%);
}

.dm-request-card summary::-webkit-details-marker { display: none; }

.dm-timeline {
  list-style: none;
  margin: 0.75rem -1.1rem 0.35rem;
  padding: 0.75rem 1.1rem 0.35rem;
  display: grid;
  gap: 0.55rem;
  border-bottom: 1px solid var(--dm-line);
  background: #faf8f5;
}

.dm-timeline li {
  display: grid;
  grid-template-columns: 12px minmax(0, 1fr);
  gap: 0.65rem;
  align-items: start;
}

.dm-timeline-dot {
  width: 10px;
  height: 10px;
  margin-top: 0.3rem;
  border-radius: 50%;
  background: currentColor;
}

.dm-timeline strong {
  display: block;
  font-size: 0.88rem;
}

.dm-timeline span,
.dm-timeline em {
  display: block;
  color: var(--dm-muted);
  font-size: 0.8rem;
  font-style: normal;
}

.dm-collage {
  display: flex;
}

.dm-collage img,
.dm-collage .dm-cover-fallback {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  margin-left: -8px;
  border: 2px solid #fff;
}

.dm-collage img:first-child,
.dm-collage .dm-cover-fallback:first-child {
  margin-left: 0;
}

.dm-status {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.8rem;
}

.dm-status::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
}

.dm-status-submitted { color: #2f6fed; }
.dm-status-sent_to_onerpm { color: #c47b16; }
.dm-status-accepted { color: var(--dm-accent-deep); }
.dm-status-rejected,
.dm-status-no_selection,
.dm-status-cancelled { color: #8a8078; }

.dm-timeline {
  list-style: none;
  margin: 0;
  padding: 0.75rem 1.1rem 0.35rem;
  display: grid;
  gap: 0.55rem;
  border-bottom: 1px solid var(--dm-line);
  background: #faf8f5;
}

.dm-timeline li {
  display: grid;
  grid-template-columns: 12px minmax(0, 1fr);
  gap: 0.65rem;
  align-items: start;
}

.dm-timeline-dot {
  width: 10px;
  height: 10px;
  margin-top: 0.3rem;
  border-radius: 50%;
  background: currentColor;
}

.dm-timeline strong {
  display: block;
  font-size: 0.88rem;
}

.dm-timeline span,
.dm-timeline em {
  display: block;
  color: var(--dm-muted);
  font-size: 0.8rem;
  font-style: normal;
}

.dm-empty {
  padding: 2.8rem 1.25rem;
  text-align: center;
  color: var(--dm-muted);
}

.dm-empty-rich {
  display: grid;
  gap: 0.65rem;
  justify-items: center;
  max-width: 28rem;
  margin: 0 auto;
}

.dm-empty-rich::before {
  display: grid;
  width: 3.25rem;
  height: 3.25rem;
  place-items: center;
  border-radius: 50%;
  background: #edf8d5;
  color: var(--dm-accent-deep);
  content: "♪";
  font-size: 1.3rem;
  font-weight: 750;
}

.dm-empty-rich strong {
  font-size: 1.02rem;
  color: var(--dm-ink);
}

.dm-almost {
  width: min(100%, 32rem);
  margin-top: 0.85rem;
  text-align: left;
  border-top: 1px solid var(--dm-line);
  padding-top: 0.85rem;
  display: grid;
  gap: 0.55rem;
}

.dm-almost-title {
  margin: 0;
  font-size: 0.82rem;
  font-weight: 650;
  color: var(--dm-ink);
}

.dm-almost-row {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto;
  gap: 0.65rem;
  align-items: center;
  padding: 0.45rem 0.55rem;
  border: 1px solid var(--dm-line);
  border-radius: 12px;
  background: #faf8f5;
}

.dm-almost-row .dm-cover {
  width: 40px;
  height: 40px;
}

.dm-desk-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  gap: 1rem;
  align-items: start;
}

.dm-desk-side {
  display: grid;
  gap: 0.85rem;
  min-width: 0;
}

.dm-preview {
  border: 1px solid var(--dm-line);
  border-radius: 18px;
  overflow: hidden;
  background: #141210;
  color: #e8e4de;
}

.dm-preview-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.7rem 0.9rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.dm-preview-head .dm-picker-meta {
  color: rgba(232, 228, 222, 0.65);
  margin: 0;
}

.dm-preview-body {
  margin: 0;
  padding: 0.85rem 0.95rem 1rem;
  min-height: 7.5rem;
  max-height: 16rem;
  overflow: auto;
  white-space: pre-wrap;
  word-break: break-word;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.8rem;
  line-height: 1.45;
  color: #d7f5e2;
}

.dm-partner-note {
  margin: 0;
  padding: 0.75rem 1.1rem;
  border-bottom: 1px solid var(--dm-line);
  color: var(--dm-muted);
  font-size: 0.9rem;
}

.dm-desk-table {
  width: 100%;
  border-collapse: collapse;
}

.dm-desk-table th,
.dm-desk-table td {
  padding: 0.75rem 0.85rem;
  border-bottom: 1px solid var(--dm-line);
  text-align: left;
  vertical-align: middle;
  font-size: 0.92rem;
}

.dm-desk-table th:first-child,
.dm-desk-table td:first-child {
  width: 2.65rem;
  text-align: center;
}

.dm-desk-table tr.is-active {
  background: rgba(29, 185, 84, 0.07);
}

.dm-desk-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 1rem 1.1rem;
  border-top: 1px solid var(--dm-line);
  background: #faf8f5;
  position: sticky;
  bottom: 0;
}

.dm-onerpm-strip {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.8rem 1.25rem;
  border-bottom: 1px solid var(--dm-line);
  background: linear-gradient(90deg, #f2f1eb, #fafaf7);
}

.dm-onerpm-strip .brand-logo img {
  height: 22px;
  width: auto;
}

/* Discovery Mode follows the functional, high-contrast campaign language of Spotify for Artists. */
.dm-page {
  gap: 0;
  padding: 0.75rem;
  background: #000;
  border-radius: 12px;
}

.dm-page > * + * {
  margin-top: 0.75rem;
}

.dm-page-header {
  min-height: 164px;
  padding: 1.75rem 2rem;
  border: 1px solid #282828;
  border-radius: 8px;
  background: #000;
  box-shadow: none;
}

.dm-page-header::before,
.dm-page-header::after {
  display: none;
}

.dm-page-header > div:first-child {
  max-width: 46rem;
}

.dm-page-header .overline {
  color: #b3b3b3 !important;
  font-size: 0.67rem;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.dm-page-header h1 {
  max-width: none;
  margin: 0.45rem 0 0.55rem !important;
  font-size: clamp(2.1rem, 4vw, 3.45rem) !important;
  font-weight: 780 !important;
  letter-spacing: -0.055em;
  line-height: 1;
}

.dm-page-header p:not(.overline) {
  max-width: 38rem;
  color: #b3b3b3 !important;
  font-size: 0.9rem !important;
}

.dm-header-actions {
  top: 1.5rem;
  right: 1.65rem;
  bottom: auto;
  width: auto;
  height: auto;
}

.dm-spotify-badge {
  position: relative;
  width: 38px;
  height: 38px;
  border: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

.dm-spotify-mark {
  width: 30px !important;
  height: 30px !important;
}

.dm-rules {
  gap: 0;
  padding: 0.1rem 0;
  border: 1px solid #282828;
  border-radius: 8px;
  background: #121212;
}

.dm-rules li {
  min-height: 0;
  padding: 1rem 1.25rem 1rem 3.45rem;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  transition: background-color 0.15s ease;
}

.dm-rules li + li {
  border-left: 1px solid #303030;
}

.dm-rules li::before {
  display: none;
}

.dm-rules li:hover {
  transform: none;
  box-shadow: none;
  background: #1a1a1a;
}

.dm-rules strong {
  color: #fff;
  font-size: 0.88rem;
}

.dm-rules span:not(.dm-rule-icon) {
  color: #b3b3b3;
  font-size: 0.8rem;
  line-height: 1.43;
}

.dm-rule-icon {
  top: 1rem;
  left: 1.25rem;
  right: auto;
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 0;
  background: transparent;
  color: #1ed760;
}

.dm-rule-icon svg {
  width: 1.1rem;
  height: 1.1rem;
}

.dm-rules-fee {
  border-color: transparent !important;
  background: transparent;
}

.dm-rules-fee strong,
.dm-rules-fee .dm-rule-icon {
  color: #1ed760;
}

.dm-rules-fee .dm-rule-icon {
  background: transparent;
}

.dm-panel {
  border: 1px solid #282828;
  border-radius: 8px;
  background: #121212;
  box-shadow: none;
  color: #fff;
}

.dm-panel-head {
  padding: 1.25rem;
  border-bottom-color: #303030;
  background: transparent;
}

.dm-panel-head .overline {
  color: #b3b3b3;
}

.dm-panel-head h2,
.dm-track-meta strong,
.dm-empty-rich strong,
.dm-almost-title {
  color: #fff;
}

.dm-picker-meta,
.dm-track-meta span,
.dm-track-side span {
  color: #b3b3b3;
}

.dm-toolbar .control,
.dm-toolbar .dm-filter-select .merphi-combobox-trigger {
  border-color: #4a4a4a;
  background: #242424;
  color: #fff;
  box-shadow: none;
}

.dm-toolbar .control::placeholder {
  color: #b3b3b3;
}

.dm-toolbar .dm-filter-select .merphi-combobox-trigger:hover {
  border-color: #b3b3b3;
  background: #2a2a2a;
}

.dm-page .check-line {
  border-color: #4a4a4a;
  background: #242424;
  color: #fff;
}

.dm-page .check-line:has(input:checked) {
  border-color: #1ed760;
  background: #1f3325;
}

.dm-track-list {
  gap: 0.5rem;
  padding: 0.6rem;
  background: #121212;
}

.dm-release-group {
  border-color: #303030;
  border-radius: 6px;
  background: #181818;
  box-shadow: none;
}

.dm-release-head {
  padding: 0.85rem 1rem 0.5rem;
  background: #181818;
}

.dm-release-head .dm-cover {
  border-radius: 4px;
  box-shadow: none;
}

.dm-track-row {
  padding: 0.78rem 1rem;
  border-bottom-color: #303030;
}

.dm-track-row:hover {
  background: #282828;
}

.dm-track-row.is-selected {
  background: #26382b;
  box-shadow: inset 3px 0 0 #1ed760;
}

.dm-cover {
  border-radius: 4px;
}

.dm-pill {
  border-color: #4a4a4a;
  background: transparent;
  color: #b3b3b3;
}

.dm-pill.ok {
  border-color: rgba(30, 215, 96, 0.55);
  background: transparent;
  color: #1ed760;
}

.dm-sticky-bar {
  margin: 0.85rem 0.6rem 0.6rem;
  border: 0;
  border-radius: 6px;
  background: #1ed760;
  color: #000;
  box-shadow: none;
}

.dm-sticky-bar .control {
  background: rgba(0, 0, 0, 0.13) !important;
  border-color: rgba(0, 0, 0, 0.4) !important;
  color: #000 !important;
}

.dm-sticky-bar .control::placeholder {
  color: rgba(0, 0, 0, 0.65) !important;
}

.dm-sticky-bar .button-primary {
  background: #000 !important;
  border-color: #000 !important;
  color: #fff !important;
}

.dm-empty,
.dm-timeline span,
.dm-timeline em,
.dm-partner-note {
  color: #b3b3b3;
}

.dm-almost,
.dm-almost-row,
.dm-timeline,
.dm-desk-actions {
  border-color: #303030;
  background: #181818;
}

.dm-almost-row {
  color: #fff;
}

/* Refined light campaign workspace: one green action, neutral surfaces, no decorative dark blocks. */
.dm-page {
  gap: 1rem;
  padding: 0 0 2.5rem;
  background: transparent;
  border-radius: 0;
}

.dm-page > * + * {
  margin-top: 0;
}

.dm-page-header {
  min-height: 172px;
  border-color: #dfe5df;
  border-radius: 12px;
  background: linear-gradient(112deg, #f7faf7 0%, #eef7ef 100%);
  box-shadow: none;
}

.dm-page-header .overline {
  color: #58715b !important;
}

.dm-page-header h1 {
  color: #191919 !important;
}

.dm-page-header p:not(.overline) {
  color: #5d625d !important;
}

.dm-spotify-badge {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #1ed760;
}

.dm-rules {
  gap: 0.7rem;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.dm-rules li {
  min-height: 108px;
  padding: 1rem 1.1rem 1rem 3.5rem;
  border: 1px solid #e1e4e1;
  border-radius: 10px;
  background: #fff;
}

.dm-rules li + li {
  border-left: 1px solid #e1e4e1;
}

.dm-rules li:hover {
  background: #f8faf8;
}

.dm-rules strong {
  color: #242424;
}

.dm-rules span:not(.dm-rule-icon) {
  color: #686d68;
}

.dm-rule-icon,
.dm-rules-fee .dm-rule-icon {
  color: #188a43;
}

.dm-rules-fee strong {
  color: #242424;
}

.dm-panel {
  border-color: #dedfde;
  border-radius: 12px;
  background: #fff;
  color: #242424;
}

.dm-panel-head {
  border-bottom-color: #e6e6e6;
}

.dm-panel-head .overline,
.dm-picker-meta,
.dm-track-meta span,
.dm-track-side span,
.dm-empty,
.dm-timeline span,
.dm-timeline em,
.dm-partner-note {
  color: #6b706b;
}

.dm-panel-head h2,
.dm-track-meta strong,
.dm-empty-rich strong,
.dm-almost-title {
  color: #242424;
}

.dm-page .button-primary {
  border-color: #1ed760;
  background: #1ed760;
  color: #102014;
  font-weight: 720;
}

.dm-page .button-primary:hover:not(:disabled) {
  border-color: #1fdf64;
  background: #1fdf64;
}

.dm-page .button-secondary,
.dm-page .button-quiet {
  border-color: #d3d6d3;
  background: #fff;
  color: #353935;
}

.dm-page .button-secondary:hover:not(:disabled),
.dm-page .button-quiet:hover:not(:disabled) {
  border-color: #8e968e;
  background: #f5f7f5;
  color: #171917;
}

.dm-toolbar .control,
.dm-toolbar .dm-filter-select .merphi-combobox-trigger {
  border-color: #d3d6d3;
  background: #fff;
  color: #252725;
}

.dm-toolbar .control::placeholder {
  color: #777d77;
}

.dm-toolbar .dm-filter-select .merphi-combobox-trigger:hover {
  border-color: #949a94;
  background: #fff;
}

.dm-page .check-line {
  border-color: #d8dbd8;
  background: #fff;
  color: #333633;
}

.dm-page .check-line:has(input:checked) {
  border-color: rgba(29, 185, 84, 0.54);
  background: #f2fbf4;
}

.dm-track-list {
  background: #fafbfa;
}

.dm-release-group {
  border-color: #e2e4e2;
  background: #fff;
}

.dm-release-head {
  background: #f7f8f7;
}

.dm-track-row {
  border-bottom-color: #eceeec;
}

.dm-track-row:hover {
  background: #f5f8f5;
}

.dm-track-row.is-selected {
  background: #effaf1;
  box-shadow: inset 3px 0 0 #1db954;
}

.dm-pill {
  border-color: #d5d8d5;
  background: #fff;
  color: #656a65;
}

.dm-pill.ok {
  border-color: rgba(29, 185, 84, 0.42);
  background: #f1fbf3;
  color: #147538;
}

.dm-pill.review {
  border-color: #d7b86a;
  background: #fff9e8;
  color: #755716;
}

.dm-status-note {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.8rem 1rem;
  border: 1px solid #dde4dd;
  border-left: 3px solid #1db954;
  border-radius: 6px;
  background: #f8fbf8;
  color: #596159;
}

.dm-status-note > i {
  width: 1.05rem;
  height: 1.05rem;
  flex: 0 0 auto;
  margin-top: 0.1rem;
  color: #177a3a;
}

.dm-status-note div {
  display: grid;
  gap: 0.18rem;
}

.dm-status-note strong {
  color: #242724;
  font-size: 0.84rem;
}

.dm-status-note span {
  font-size: 0.78rem;
  line-height: 1.45;
}

.dm-sticky-bar {
  border: 1px solid #d8dcd8;
  border-radius: 10px;
  background: #fff;
  color: #282b28;
  box-shadow: 0 12px 28px rgba(26, 32, 26, 0.12);
}

.dm-sticky-bar .control {
  background: #fff !important;
  border-color: #cdd1cd !important;
  color: #242724 !important;
}

.dm-sticky-bar .control::placeholder {
  color: #777d77 !important;
}

.dm-sticky-bar .button-primary {
  background: #1ed760 !important;
  border-color: #1ed760 !important;
  color: #102014 !important;
}

.dm-almost,
.dm-almost-row,
.dm-timeline,
.dm-desk-actions {
  border-color: #e2e4e2;
  background: #fafbfa;
}

.dm-almost-row {
  color: #242424;
}

.dm-preview {
  border-color: #dedfde;
  background: #fafbfa;
  color: #262926;
}

.dm-preview-head {
  border-bottom-color: #e1e4e1;
}

.dm-preview-head .dm-picker-meta,
.dm-preview-body {
  color: #4e554e;
}

/* Use the official full Spotify logo lockup, with the clear space it requires. */
.dm-header-actions {
  top: 1.5rem;
  right: 1.75rem;
}

.dm-spotify-logo {
  display: block;
  width: 126px;
  height: auto;
  max-width: 34vw;
}

/* The rest of the product uses compact geometry; Discovery Mode should too. */
.dm-page-header,
.dm-rules li,
.dm-panel,
.dm-release-group,
.dm-sticky-bar,
.dm-preview,
.dm-almost-row {
  border-radius: 6px;
}

.dm-page .button,
.dm-page .check-line,
.dm-toolbar .dm-filter-select .merphi-combobox-trigger {
  border-radius: 4px;
}

.dm-page input[type="checkbox"] {
  border-radius: 3px;
}

.dm-cover,
.dm-release-head .dm-cover {
  border-radius: 2px;
}

.dm-pill {
  border-radius: 3px;
}

.dm-pill.warn,
.dm-status-sent_to_onerpm {
  color: #5c665d;
}

.dm-pill.warn {
  border-color: #d6d9d6;
  background: #f7f8f7;
}

/* These rules intentionally match the app shell's `html.ui-v2` specificity. */
html.ui-v2 .dm-page {
  --brand-orange: #1db954;
  --brand-orange-hover: #1ed760;
}

html.ui-v2 .dm-page .overline,
html.ui-v2 .dm-page .dm-panel-head .overline {
  color: #687168;
}

html.ui-v2 .dm-page .dm-page-header .overline {
  color: #58715b !important;
}

html.ui-v2 .dm-page .button,
html.ui-v2 .dm-page .control,
html.ui-v2 .dm-page input.control,
html.ui-v2 .dm-page select.control,
html.ui-v2 .dm-page .check-line,
html.ui-v2 .dm-page .dm-filter-select .merphi-combobox-trigger {
  border-radius: 5px;
}

html.ui-v2 .dm-page .button-primary,
html.ui-v2 .dm-page .button-accent {
  border-color: #1db954;
  background: #1db954;
  color: #102014;
}

html.ui-v2 .dm-page .button-primary:hover:not(:disabled),
html.ui-v2 .dm-page .button-accent:hover:not(:disabled) {
  border-color: #1ed760;
  background: #1ed760;
  color: #102014;
}

html.ui-v2 .dm-page .button-secondary,
html.ui-v2 .dm-page .button-quiet {
  border-color: #d4d8d4;
  background: #fff;
  color: #333733;
}

html.ui-v2 .dm-page .button-secondary:hover:not(:disabled),
html.ui-v2 .dm-page .button-quiet:hover:not(:disabled) {
  border-color: #909790;
  background: #f5f7f5;
  color: #171917;
}

html.ui-v2 .dm-page .control,
html.ui-v2 .dm-page input.control,
html.ui-v2 .dm-page select.control,
html.ui-v2 .dm-page .dm-filter-select .merphi-combobox-trigger {
  border-color: #d4d8d4;
  background: #fff;
  color: #252825;
}

html.ui-v2 .dm-page .dm-sticky-bar .control {
  border-color: #cbd1cb !important;
  background: #fff !important;
  color: #242724 !important;
}

html.ui-v2 .dm-page .dm-rules {
  gap: 0;
  border: 1px solid #dfe3df;
  border-radius: 6px;
  background: #fff;
}

html.ui-v2 .dm-page .dm-rules li {
  min-height: 0;
  padding: 0.85rem 1rem 0.85rem 3.1rem;
  border: 0;
  border-radius: 0;
  background: transparent;
}

html.ui-v2 .dm-page .dm-rules li + li {
  border-left: 1px solid #e6e9e6;
}

html.ui-v2 .dm-page .dm-rules li:hover {
  background: #f8faf8;
}

html.ui-v2 .dm-page .dm-rule-icon {
  top: 0.9rem;
  left: 1rem;
  width: 1.1rem;
  height: 1.1rem;
  color: #177a3a;
}

html.ui-v2 .dm-page .dm-rules-fee .dm-rule-icon {
  color: #177a3a;
}

html.ui-v2 .dm-page .dm-rules strong,
html.ui-v2 .dm-page .dm-rules-fee strong {
  color: #242724;
  font-size: 0.84rem;
}

html.ui-v2 .dm-page .dm-rules span:not(.dm-rule-icon) {
  color: #737a73;
  font-size: 0.77rem;
}

@media (max-width: 900px) {
  .dm-rules,
  .dm-desk-layout {
    grid-template-columns: 1fr;
  }

  .dm-panel-head {
    align-items: stretch;
  }

  .dm-page-header {
    min-height: 198px;
  }

  .dm-page-header > div:first-child {
    max-width: 46rem;
  }

  .dm-header-actions {
    right: 1.25rem;
    width: auto;
    height: auto;
  }

  .dm-toolbar {
    width: 100%;
  }

  .dm-toolbar .control {
    min-width: 0;
    flex: 1 1 100%;
  }

  .dm-toolbar .dm-filter-select {
    width: 100%;
    min-width: 0;
    flex: 1 1 100%;
  }

  .dm-sticky-bar {
    flex-direction: column;
    align-items: stretch;
    bottom: calc(var(--mr-bottom-nav, 64px) + env(safe-area-inset-bottom, 0px) + 0.55rem);
    margin: 0.65rem 0.65rem 0.85rem;
  }

  .dm-sticky-bar .dm-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .dm-sticky-bar .button-primary {
    width: 100%;
    white-space: normal;
  }

  .dm-release-head {
    grid-template-columns: 40px minmax(0, 1fr);
  }

  .dm-release-head .button {
    grid-column: 1 / -1;
    justify-self: start;
  }

  .dm-track-row {
    grid-template-columns: auto 44px minmax(0, 1fr);
    grid-template-areas:
      "check cover meta"
      "check cover side";
  }

  .dm-track-row > :nth-child(1) { grid-area: check; }
  .dm-track-row > :nth-child(2) { grid-area: cover; }
  .dm-track-row > :nth-child(3) { grid-area: meta; }
  .dm-track-row > :nth-child(4),
  .dm-track-row > :nth-child(5) { grid-area: side; }
}

@media (max-width: 560px) {
  .dm-page {
    gap: 0.85rem;
  }

  .dm-page-header {
    min-height: 205px;
    padding: 1.3rem 1.15rem;
    border-radius: 18px;
  }

  .dm-page-header h1 {
    font-size: 2.15rem !important;
  }

  .dm-page-header::before {
    right: -4.5rem;
    bottom: -15.5rem;
  }

  .dm-header-actions {
    right: 1.15rem;
    top: 1.15rem;
    bottom: auto;
    width: auto;
    height: auto;
  }

  .dm-page-header > div:first-child {
    max-width: calc(100% - 4rem);
  }

  .dm-spotify-badge {
    position: relative;
    width: 40px;
    height: 40px;
  }

  .dm-rules {
    gap: 0.6rem;
  }

  .dm-rules li {
    min-height: auto;
  }

  .dm-panel {
    border-radius: 16px;
  }

  .dm-panel-head,
  .dm-track-row,
  .dm-release-head,
  .dm-request-card {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}
