/* Soft Music cabinet — visual language from Soft Workspace (Liquid Glass / iOS) */

:root {
  color-scheme: light;
  --font-sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro", system-ui, sans-serif;
  --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro", system-ui, sans-serif;
  --background: #e8eef2;
  --foreground: #000000;
  --card: #ffffff;
  --primary: #007aff;
  --primary-fg: #ffffff;
  --muted: rgba(120, 120, 128, 0.16);
  --muted-fg: rgba(60, 60, 67, 0.6);
  --border: rgba(60, 60, 67, 0.29);
  --destructive: #ff3b30;
  --success: #34c759;
  --separator: rgba(60, 60, 67, 0.29);
  --fill: rgba(118, 118, 128, 0.12);
  --wallpaper-color: #d8e6f2;
  --wallpaper:
    radial-gradient(ellipse 95% 75% at 8% 5%, rgb(245 238 228 / 0.98) 0%, transparent 52%),
    radial-gradient(ellipse 80% 70% at 92% 35%, rgb(120 170 220 / 0.72) 0%, transparent 55%),
    radial-gradient(ellipse 70% 60% at 78% 8%, rgb(170 205 235 / 0.65) 0%, transparent 50%),
    radial-gradient(ellipse 90% 70% at 12% 88%, rgb(120 200 195 / 0.7) 0%, transparent 55%),
    radial-gradient(ellipse 65% 55% at 45% 55%, rgb(255 255 255 / 0.55) 0%, transparent 60%),
    linear-gradient(165deg, #f4f0e8 0%, #d8e6f2 28%, #b8d4ea 55%, #9ecfc8 100%);
}

html.dark {
  color-scheme: dark;
  --background: #122040;
  --foreground: #ffffff;
  --card: #1c1c1e;
  --primary: #0a84ff;
  --muted: rgba(120, 120, 128, 0.24);
  --muted-fg: rgba(235, 235, 245, 0.6);
  --border: rgba(84, 84, 88, 0.65);
  --separator: rgba(84, 84, 88, 0.65);
  --fill: rgba(118, 118, 128, 0.24);
  --wallpaper-color: #122040;
  --wallpaper:
    radial-gradient(ellipse 130% 80% at 50% 100%, rgb(70 115 200 / 0.55) 0%, transparent 70%),
    radial-gradient(ellipse 70% 50% at 18% 82%, rgb(255 150 55 / 0.16) 0%, transparent 55%),
    radial-gradient(ellipse 60% 45% at 88% 78%, rgb(255 190 70 / 0.12) 0%, transparent 52%),
    radial-gradient(ellipse 55% 40% at 82% 18%, rgb(55 95 175 / 0.28) 0%, transparent 50%),
    radial-gradient(ellipse 45% 35% at 12% 22%, rgb(40 80 160 / 0.18) 0%, transparent 48%),
    radial-gradient(ellipse 42% 28% at 50% 4%, rgb(255 210 90 / 0.1) 0%, transparent 55%),
    radial-gradient(ellipse 80% 50% at 50% 0%, rgb(6 8 14 / 0.92) 0%, transparent 55%),
    linear-gradient(180deg, #05060a 0%, #0c1224 34%, #122040 62%, #152448 82%, #1a3058 100%);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  height: 100%;
  height: -webkit-fill-available;
  background-color: var(--wallpaper-color);
  background-image: var(--wallpaper);
}

html,
body {
  margin: 0;
  min-height: 100%;
  min-height: 100dvh;
  min-height: -webkit-fill-available;
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.35;
  color: var(--foreground);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  max-width: 100%;
}

/*
  Wallpaper on the scrolling document — not a fixed layer.
  Fixed ::before ended at a different Safari viewport edge than cards, so only
  the background looked “cut” under the bottom chrome.
*/
body {
  background-color: var(--wallpaper-color);
  background-image: var(--wallpaper);
  background-repeat: no-repeat;
  background-size: cover;
  background-attachment: scroll;
}

button,
input,
textarea,
select {
  font: inherit;
  color: inherit;
}

a {
  color: inherit;
}

.hidden {
  display: none !important;
}

.muted {
  color: var(--muted-fg);
}

.error {
  color: var(--destructive);
  margin: 12px 0 0;
  font-size: 0.9375rem;
}

/* —— Glass materials —— */
.sw-glass {
  position: relative;
  isolation: isolate;
  background: rgb(255 255 255 / 0.28);
  backdrop-filter: blur(44px) saturate(200%) brightness(1.08);
  -webkit-backdrop-filter: blur(44px) saturate(200%) brightness(1.08);
  border: 0.5px solid rgb(255 255 255 / 0.62);
  box-shadow:
    inset 0 1px 0 0 rgb(255 255 255 / 0.82),
    inset 1px 0 0 0 rgb(255 255 255 / 0.32),
    inset -1px 0 0 0 rgb(255 255 255 / 0.12),
    inset 0 -0.5px 0 0 rgb(255 255 255 / 0.2),
    0 8px 32px rgb(0 0 0 / 0.08);
}

.sw-glass::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(
    135deg,
    rgb(255 255 255 / 0.48) 0%,
    rgb(255 255 255 / 0.12) 32%,
    rgb(255 255 255 / 0.04) 58%,
    transparent 100%
  );
}

html.dark .sw-glass {
  background: rgb(36 40 54 / 0.5);
  border-color: rgb(200 215 255 / 0.2);
  backdrop-filter: blur(44px) saturate(180%) brightness(0.9);
  -webkit-backdrop-filter: blur(44px) saturate(180%) brightness(0.9);
  box-shadow:
    inset 0 1px 0 rgb(220 235 255 / 0.22),
    inset 1px 0 0 rgb(200 220 255 / 0.1),
    inset -1px 0 0 rgb(255 255 255 / 0.04),
    inset 0 -0.5px 0 rgb(255 255 255 / 0.05),
    0 8px 32px rgb(0 0 0 / 0.5);
}

html.dark .sw-glass::before {
  background: linear-gradient(
    135deg,
    rgb(200 220 255 / 0.16) 0%,
    rgb(160 190 255 / 0.06) 40%,
    rgb(255 200 120 / 0.03) 70%,
    transparent 100%
  );
}

.sw-glass-control {
  background: rgb(255 255 255 / 0.32);
  backdrop-filter: blur(28px) saturate(190%);
  -webkit-backdrop-filter: blur(28px) saturate(190%);
  border: 0.5px solid rgb(255 255 255 / 0.58);
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 0.78),
    inset 1px 0 0 rgb(255 255 255 / 0.28),
    0 2px 8px rgb(0 0 0 / 0.06);
}

html.dark .sw-glass-control {
  background: rgb(44 48 62 / 0.55);
  border-color: rgb(200 215 255 / 0.18);
  box-shadow:
    inset 0 1px 0 rgb(200 220 255 / 0.2),
    inset 1px 0 0 rgb(180 210 255 / 0.08),
    0 2px 8px rgb(0 0 0 / 0.35);
}

.sw-field {
  width: 100%;
  padding: 0.7rem 0.85rem;
  border-radius: 0.625rem;
  border: 0.5px solid rgb(255 255 255 / 0.45) !important;
  background: rgb(255 255 255 / 0.28) !important;
  backdrop-filter: blur(24px) saturate(170%);
  -webkit-backdrop-filter: blur(24px) saturate(170%);
  outline: none;
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 0.55),
    inset 1px 0 0 rgb(255 255 255 / 0.2),
    inset 0 -0.5px 0 rgb(0 0 0 / 0.04);
}

html.dark .sw-field {
  border-color: rgb(200 215 255 / 0.28) !important;
  background: rgb(8 10 18 / 0.55) !important;
  box-shadow:
    inset 0 1px 0 rgb(220 235 255 / 0.18),
    inset 1px 0 0 rgb(180 210 255 / 0.1),
    inset 0 -0.5px 0 rgb(0 0 0 / 0.35);
}

.sw-field:focus {
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 0.55),
    inset 1px 0 0 rgb(255 255 255 / 0.2),
    0 0 0 3px rgb(0 122 255 / 0.28);
}

html.dark .sw-field:focus {
  box-shadow:
    inset 0 1px 0 rgb(200 220 255 / 0.16),
    inset 1px 0 0 rgb(160 190 255 / 0.08),
    0 0 0 3px rgb(10 132 255 / 0.32);
}

textarea.sw-field {
  resize: vertical;
  min-height: 5rem;
}

.sw-card,
.panel {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-radius: 0.875rem;
  border: 0.5px solid rgb(255 255 255 / 0.68);
  background: rgb(255 255 255 / 0.42);
  backdrop-filter: blur(40px) saturate(190%) brightness(1.06);
  -webkit-backdrop-filter: blur(40px) saturate(190%) brightness(1.06);
  padding: 1.25rem 1.35rem;
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 0.9),
    inset 1px 0 0 rgb(255 255 255 / 0.35),
    inset -1px 0 0 rgb(255 255 255 / 0.12),
    inset 0 -0.5px 0 rgb(255 255 255 / 0.2),
    0 8px 28px rgb(0 0 0 / 0.06);
}

.sw-card::before,
.panel::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  background: linear-gradient(
    135deg,
    rgb(255 255 255 / 0.5) 0%,
    rgb(255 255 255 / 0.12) 28%,
    rgb(255 255 255 / 0.04) 55%,
    transparent 100%
  );
}

.sw-card > *,
.panel > * {
  position: relative;
  z-index: 1;
}

html.dark .sw-card,
html.dark .panel {
  border-color: rgb(200 215 255 / 0.2);
  background: rgb(32 36 50 / 0.54);
  backdrop-filter: blur(40px) saturate(170%) brightness(0.94);
  -webkit-backdrop-filter: blur(40px) saturate(170%) brightness(0.94);
  box-shadow:
    inset 0 1px 0 rgb(220 235 255 / 0.22),
    inset 1px 0 0 rgb(180 210 255 / 0.1),
    inset -1px 0 0 rgb(255 255 255 / 0.04),
    inset 0 -0.5px 0 rgb(255 255 255 / 0.05),
    0 8px 32px rgb(0 0 0 / 0.45);
}

html.dark .sw-card::before,
html.dark .panel::before {
  background: linear-gradient(
    135deg,
    rgb(200 220 255 / 0.16) 0%,
    rgb(150 185 255 / 0.06) 40%,
    rgb(255 190 110 / 0.02) 70%,
    transparent 100%
  );
}

.sw-card h2,
.panel h2 {
  margin: 0 0 0.85rem;
  font-size: 1.0625rem;
  font-weight: 600;
}

.sw-table {
  position: relative;
  isolation: isolate;
  width: 100%;
  max-width: 100%;
  border-radius: 0.875rem;
  border: 0.5px solid rgb(255 255 255 / 0.6);
  background: rgb(255 255 255 / 0.4);
  backdrop-filter: blur(40px) saturate(190%) brightness(1.06);
  -webkit-backdrop-filter: blur(40px) saturate(190%) brightness(1.06);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 0.85),
    inset 1px 0 0 rgb(255 255 255 / 0.3),
    0 8px 28px rgb(0 0 0 / 0.07);
}

html.dark .sw-table {
  border-color: rgb(200 215 255 / 0.18);
  background: rgb(32 36 50 / 0.52);
  box-shadow:
    inset 0 1px 0 rgb(220 235 255 / 0.2),
    0 8px 32px rgb(0 0 0 / 0.45);
}

.sw-table table,
.table {
  position: relative;
  z-index: 1;
  width: 100%;
  min-width: 36rem;
  border-collapse: collapse;
}

.sw-table thead,
.table thead {
  background: rgb(255 255 255 / 0.28);
}

html.dark .sw-table thead,
html.dark .table thead {
  background: rgb(255 255 255 / 0.06);
}

.sw-table th,
.sw-table td,
.table th,
.table td {
  padding: 0.75rem 1rem;
  text-align: left;
  font-size: 0.9375rem;
  color: var(--foreground);
  vertical-align: top;
}

.sw-table th,
.table th {
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted-fg);
  border-bottom: 0.5px solid var(--separator);
}

.sw-table tbody tr + tr td,
.table tbody tr + tr td {
  border-top: 0.5px solid color-mix(in srgb, var(--separator) 80%, transparent);
}

.sw-table tbody tr:hover,
.table tbody tr:hover {
  background: rgb(0 122 255 / 0.08);
}

html.dark .sw-table tbody tr:hover,
html.dark .table tbody tr:hover {
  background: rgb(10 132 255 / 0.14);
}

/* —— Buttons —— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 2.75rem;
  padding: 0 1rem;
  border-radius: 0.75rem;
  border: 0.5px solid transparent;
  background: transparent;
  cursor: pointer;
  font-size: 0.9375rem;
  font-weight: 600;
  transition: opacity 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
}

.btn:active {
  transform: scale(0.97);
}

.btn:disabled {
  opacity: 0.4;
  pointer-events: none;
}

.btn.primary {
  border-color: rgb(255 255 255 / 0.25);
  background: var(--primary);
  color: var(--primary-fg);
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 0.45),
    inset 1px 0 0 rgb(255 255 255 / 0.2),
    0 4px 12px rgb(0 122 255 / 0.35);
}

.btn.primary:hover {
  opacity: 0.95;
}

.btn.ghost,
.btn.outline {
  color: var(--primary);
  background: rgb(255 255 255 / 0.32);
  backdrop-filter: blur(28px) saturate(190%);
  -webkit-backdrop-filter: blur(28px) saturate(190%);
  border: 0.5px solid rgb(255 255 255 / 0.58);
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 0.78),
    0 2px 8px rgb(0 0 0 / 0.06);
}

html.dark .btn.ghost,
html.dark .btn.outline {
  background: rgb(44 48 62 / 0.55);
  border-color: rgb(200 215 255 / 0.18);
}

.btn.block {
  width: 100%;
}

.btn.icon {
  width: 2.75rem;
  min-height: 2.75rem;
  min-width: 2.75rem;
  padding: 0;
  border-radius: 999px;
  flex-shrink: 0;
}

.btn.sm {
  min-height: 2.25rem;
  padding: 0 0.75rem;
  font-size: 0.8125rem;
}

/* —— Login —— */
.login-shell {
  position: relative;
  z-index: 1;
  min-height: 100svh;
}

.login-center {
  min-height: 100svh;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: max(1rem, env(safe-area-inset-top, 0px)) 1rem max(1rem, env(safe-area-inset-bottom, 0px));
}

.sw-login-card {
  width: min(28rem, 100%);
  padding: 1.5rem;
  border-radius: 1.25rem;
  background: rgb(255 255 255 / 0.72);
  backdrop-filter: blur(48px) saturate(200%);
  -webkit-backdrop-filter: blur(48px) saturate(200%);
  border: 0.5px solid rgb(255 255 255 / 0.7);
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 0.9),
    inset 1px 0 0 rgb(255 255 255 / 0.35),
    0 16px 48px rgb(0 0 0 / 0.12);
}

html.dark .sw-login-card {
  background: rgb(32 36 50 / 0.8);
  border-color: rgb(200 215 255 / 0.2);
  box-shadow:
    inset 0 1px 0 rgb(220 235 255 / 0.2),
    0 16px 48px rgb(0 0 0 / 0.5);
}

.desk-choice {
  display: grid;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.desk-login-label {
  margin: 1.1rem 0 0.4rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--muted-fg);
}

.desk-choice .btn {
  min-height: 3rem;
}

.desk-pick.is-active {
  background: #007aff;
  color: #fff;
  border-color: transparent;
}

.login-card-head {
  text-align: center;
}

.login-card-head .brand-mark {
  display: block;
  margin: 0 auto 0.75rem;
}

.login-card-head h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 5vw, 2.15rem);
  font-weight: 700;
  letter-spacing: -0.03em;
}

.login-card-head p {
  margin: 0.35rem 0 0;
  color: var(--muted-fg);
  font-size: 0.9375rem;
}

.brand-mark {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  flex-shrink: 0;
  box-shadow: 0 6px 18px rgb(0 122 255 / 0.28);
}

.brand-mark--sm {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  box-shadow: 0 3px 10px rgb(0 122 255 / 0.22);
}

.sw-tabs-list,
.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.25rem;
  margin: 1.25rem 0 1rem;
  padding: 0.25rem;
  border-radius: 0.75rem;
  border: 0.5px solid rgb(255 255 255 / 0.4);
  background: rgb(255 255 255 / 0.22);
  backdrop-filter: blur(24px) saturate(170%);
  -webkit-backdrop-filter: blur(24px) saturate(170%);
}

html.dark .sw-tabs-list,
html.dark .auth-tabs {
  border-color: rgb(180 200 255 / 0.14);
  background: rgb(255 255 255 / 0.06);
}

.auth-tab {
  min-height: 2.25rem;
  border: 0;
  border-radius: 0.55rem;
  background: transparent;
  color: var(--muted-fg);
  font-weight: 500;
  cursor: pointer;
}

.auth-tab.is-active {
  color: var(--foreground);
  background: rgb(255 255 255 / 0.72);
  border: 0.5px solid rgb(255 255 255 / 0.65);
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 0.9),
    0 2px 8px rgb(0 0 0 / 0.08);
}

html.dark .auth-tab.is-active {
  background: rgb(48 54 72 / 0.72);
  border-color: rgb(200 215 255 / 0.22);
}

.auth-form {
  display: grid;
  gap: 0.85rem;
}

.field-label,
.form-grid label,
.stack label {
  display: grid;
  gap: 0.35rem;
  color: var(--muted-fg);
  font-size: 0.8125rem;
  font-weight: 500;
}

.auth-telegram {
  margin-top: 0.5rem;
}

.login-bot-link {
  margin: 1rem 0 0;
  text-align: center;
  font-size: 0.875rem;
  line-height: 1.4;
}

.login-bot-link a {
  color: inherit;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.login-bot-link a:hover {
  opacity: 0.85;
}

/* —— App shell —— */
.app-root {
  position: relative;
  z-index: 1;
  display: flex;
  min-height: 100svh;
  min-height: 100dvh;
  min-height: -webkit-fill-available;
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
}

.app-sidebar {
  display: none;
  width: 14rem;
  flex-shrink: 0;
  flex-direction: column;
  padding: 0 0 1rem;
  border-right: none;
  overflow: auto;
}

.app-sidebar > * {
  position: relative;
  z-index: 1;
}

.sidebar-brand {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-start;
  gap: 0.65rem;
  padding: 1.25rem 1rem 0.5rem;
}

.sidebar-brand-text {
  flex: 1 1 auto;
  min-width: 0;
}

.sidebar-eyebrow {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  text-transform: lowercase;
  color: var(--foreground);
}

.sidebar-title {
  margin: 0.2rem 0 0;
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--muted-fg);
}

.sidebar-cta {
  margin: 0.5rem 0.75rem 0.75rem;
  width: calc(100% - 1.5rem);
}

.side-nav {
  display: flex;
  flex-direction: column;
  flex: 1;
  overflow: auto;
  padding: 0 0.5rem 0.75rem;
}

.nav-section-label {
  margin: 0.65rem 0.75rem 0.35rem;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--muted-fg);
}

.sw-sidebar-nav-group {
  margin: 0.25rem 0.35rem 0.5rem;
  padding: 0.25rem;
  border-radius: 0.875rem;
  background: rgb(255 255 255 / 0.22);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border: 0.5px solid rgb(255 255 255 / 0.35);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.45);
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
}

html.dark .sw-sidebar-nav-group {
  background: rgb(255 255 255 / 0.06);
  border-color: rgb(255 255 255 / 0.1);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.08);
}

.sw-nav-link {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.55rem;
  width: 100%;
  min-height: 2.75rem;
  border: 0;
  border-radius: 0.625rem;
  padding: 0 0.75rem;
  background: transparent;
  color: var(--foreground);
  font-size: 0.9375rem;
  font-weight: 400;
  letter-spacing: -0.01em;
  text-align: left;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.sw-nav-link[data-icon]::before {
  content: "";
  width: 1.125rem;
  height: 1.125rem;
  flex-shrink: 0;
  background-color: currentColor;
  opacity: 0.88;
  -webkit-mask: var(--nav-ico) center / contain no-repeat;
  mask: var(--nav-ico) center / contain no-repeat;
}

.sw-nav-link[data-icon="profile"] {
  --nav-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2'/%3E%3Ccircle cx='12' cy='7' r='4'/%3E%3C/svg%3E");
}
.sw-nav-link[data-icon="news"] {
  --nav-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 22h16a2 2 0 0 0 2-2V4a2 2 0 0 0-2-2H8a2 2 0 0 0-2 2v16a2 2 0 0 1-2 2Zm0 0a2 2 0 0 1-2-2v-9c0-1.1.9-2 2-2h2'/%3E%3Cpath d='M18 14h-8M15 18h-5M10 6h8v4h-8V6Z'/%3E%3C/svg%3E");
}
.sw-nav-link[data-icon="edit"] {
  --nav-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 20h9'/%3E%3Cpath d='M16.5 3.5a2.12 2.12 0 0 1 3 3L7 19l-4 1 1-4Z'/%3E%3C/svg%3E");
}
.sw-nav-link[data-icon="mail"] {
  --nav-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2' y='4' width='20' height='16' rx='2'/%3E%3Cpath d='m22 7-8.97 5.7a1.94 1.94 0 0 1-2.06 0L2 7'/%3E%3C/svg%3E");
}
.sw-nav-link[data-icon="album"] {
  --nav-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/svg%3E");
}
.sw-nav-link[data-icon="releases"] {
  --nav-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 18V5l12-2v13'/%3E%3Ccircle cx='6' cy='18' r='3'/%3E%3Ccircle cx='18' cy='16' r='3'/%3E%3C/svg%3E");
}
.sw-nav-link[data-icon="changes"] {
  --nav-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3Z'/%3E%3Cpath d='M12 9v4M12 17h.01'/%3E%3C/svg%3E");
}
.sw-nav-link[data-icon="moderation"] {
  --nav-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M12 6v6l4 2'/%3E%3C/svg%3E");
}
.sw-nav-link[data-icon="draft"] {
  --nav-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14.5 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7.5L14.5 2z'/%3E%3Cpath d='M14 2v6h6M16 13H8M16 17H8M10 9H8'/%3E%3C/svg%3E");
}
.sw-nav-link[data-icon="promo"] {
  --nav-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4.5 16.5c-1.5 1.26-2 5-2 5s3.74-.5 5-2c.71-.84.7-2.13-.09-2.91a2.18 2.18 0 0 0-2.91-.09z'/%3E%3Cpath d='m12 15-3-3a22 22 0 0 1 2-3.95A12.88 12.88 0 0 1 22 2c0 2.72-.78 7.5-6 11a22.35 22.35 0 0 1-4 2z'/%3E%3Cpath d='M9 12H4s.55-3.03 2-4c1.62-1.08 5 0 5 0M12 15v5s3.03-.55 4-2c1.08-1.62 0-5 0-5'/%3E%3C/svg%3E");
}
.sw-nav-link[data-icon="link"] {
  --nav-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71'/%3E%3Cpath d='M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71'/%3E%3C/svg%3E");
}
.sw-nav-link[data-icon="links"] {
  --nav-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 17H7A5 5 0 0 1 7 7h2'/%3E%3Cpath d='M15 7h2a5 5 0 1 1 0 10h-2'/%3E%3Cpath d='M8 12h8'/%3E%3C/svg%3E");
}
.sw-nav-link[data-icon="finance"] {
  --nav-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 12V7H5a2 2 0 0 1 0-4h14v4'/%3E%3Cpath d='M3 5v14a2 2 0 0 0 2 2h16v-5'/%3E%3Cpath d='M18 12a2 2 0 0 0 0 4h4v-4Z'/%3E%3C/svg%3E");
}
.sw-nav-link[data-icon="lyrics"] {
  --nav-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 6h16M4 12h10M4 18h14'/%3E%3C/svg%3E");
}
.sw-nav-link[data-icon="ticket"] {
  --nav-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 9a3 3 0 0 1 0 6v2a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-2a3 3 0 0 1 0-6V7a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2Z'/%3E%3Cpath d='M13 5v2M13 17v2M13 11v2'/%3E%3C/svg%3E");
}
.sw-nav-link[data-icon="chat"] {
  --nav-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7.9 20A9 9 0 1 0 4 16.1L2 22Z'/%3E%3C/svg%3E");
}
.sw-nav-link[data-icon="stats"] {
  --nav-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 3v18h18'/%3E%3Cpath d='M18 17V9M13 17V5M8 17v-3'/%3E%3C/svg%3E");
}
.sw-nav-link[data-icon="network"] {
  --nav-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='5' r='2.5'/%3E%3Ccircle cx='5' cy='19' r='2.5'/%3E%3Ccircle cx='19' cy='19' r='2.5'/%3E%3Cpath d='M12 7.5v4M12 11.5 6.5 17M12 11.5l5.5 5.5'/%3E%3C/svg%3E");
}
.sw-nav-link[data-icon="tag"] {
  --nav-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 2H2v10l9.29 9.29c.94.94 2.48.94 3.42 0l6.58-6.58c.94-.94.94-2.48 0-3.42L12 2Z'/%3E%3Cpath d='M7 7h.01'/%3E%3C/svg%3E");
}

.sw-nav-link:hover {
  background: rgb(0 0 0 / 0.04);
}

html.dark .sw-nav-link:hover {
  background: rgb(255 255 255 / 0.06);
}

.sw-nav-link.is-active,
.sw-nav-link--active {
  background: rgb(0 122 255 / 0.18);
  color: var(--primary);
  font-weight: 600;
}

html.dark .sw-nav-link.is-active,
html.dark .sw-nav-link--active {
  background: rgb(10 132 255 / 0.28);
  color: #64b5ff;
}

.sw-nav-link.is-active[data-icon]::before,
.sw-nav-link--active[data-icon]::before {
  opacity: 1;
}

.sw-nav-link em {
  margin-left: auto;
  font-style: normal;
  font-variant-numeric: tabular-nums;
  font-size: 0.8125rem;
  color: var(--muted-fg);
  font-weight: 500;
}

.sw-mobile-nav-backdrop {
  position: fixed;
  inset: 0;
  z-index: 50;
  border: none;
  margin: 0;
  padding: 0;
  cursor: pointer;
  background: rgb(0 0 0 / 0.35);
  backdrop-filter: blur(12px) saturate(120%);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.28s ease, visibility 0.28s ease;
}

.sw-mobile-nav-backdrop.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.app-column {
  position: relative;
  z-index: 1;
  display: flex;
  min-width: 0;
  flex: 1;
  flex-direction: column;
  background: transparent;
}

.app-header {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  min-height: calc(3.5rem + env(safe-area-inset-top, 0px));
  height: auto;
  padding: calc(0.35rem + env(safe-area-inset-top, 0px)) 0.75rem 0.35rem;
}

.app-header > * {
  position: relative;
  z-index: 1;
}

.header-left {
  display: flex;
  min-width: 0;
  flex: 1;
  align-items: center;
  gap: 0.5rem;
}

.header-brand {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  text-transform: lowercase;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Page/block titles keep source casing (capital first letter).
   Brand marks stay lowercase via .header-brand / .sidebar-eyebrow. */

.header-spacer {
  flex: 1;
}

.header-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 0.35rem;
  min-width: 0;
}

.user-chip {
  display: none;
  align-items: center;
  gap: 0.5rem;
  max-width: 14rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 500;
}

.user-chip img {
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  object-fit: cover;
}

.app-main {
  flex: 1;
  padding: 0.75rem 0.85rem calc(2.5rem + env(safe-area-inset-bottom, 0px));
  overflow-x: hidden;
  min-width: 0;
  max-width: 100%;
}

.page-head {
  margin-bottom: 1.25rem;
}

.page-head h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: 0.011em;
  line-height: 1.15;
  color: var(--foreground);
}

.page-head p {
  margin: 0.35rem 0 0;
  font-size: 0.9375rem;
  color: var(--muted-fg);
}

.view {
  display: grid;
  gap: 1rem;
}

/* —— Content pieces —— */
.kpi-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}

.kpi span {
  display: block;
  color: var(--muted-fg);
  font-size: 0.875rem;
  font-weight: 500;
}

.kpi strong {
  display: block;
  margin-top: 0.45rem;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.85rem;
}

.form-grid .full {
  grid-column: 1 / -1;
}

.stack {
  display: grid;
  gap: 0.85rem;
}

.row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.sw-table td.td-actions,
.table td.td-actions {
  vertical-align: middle;
  white-space: nowrap;
  width: 1%;
}

.td-actions-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.staff-mod-actions {
  margin-top: 0;
}

.news-list,
.release-list,
.table-list {
  display: grid;
  gap: 0.85rem;
}

.news-card,
.release-card,
.row-card {
  display: grid;
  gap: 0.85rem;
  padding: 1rem 1.1rem;
}

.release-card {
  grid-template-columns: 5.5rem 1fr;
  align-items: start;
}

.catalog-release {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 12rem;
}

.cover-picker {
  display: grid;
  gap: 0.65rem;
  margin-bottom: 1rem;
}

.cover-lg {
  width: 8rem;
  height: 8rem;
}

.cover-thumb {
  width: 3.25rem;
  height: 3.25rem;
  flex-shrink: 0;
}

.sw-table .cover {
  width: 3.25rem;
  height: 3.25rem;
}

.cover {
  width: 5.5rem;
  height: 5.5rem;
  border-radius: 0.75rem;
  object-fit: cover;
  background: var(--fill);
  border: 0.5px solid rgb(255 255 255 / 0.45);
}

.cover-ph {
  background:
    linear-gradient(145deg, rgb(120 130 150 / 0.25), rgb(40 46 60 / 0.45));
}

.mm-toolbar {
  display: grid;
  gap: 0.75rem;
}

.mm-toolbar-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.mm-reset {
  border: 0;
  background: none;
  color: var(--muted-fg);
  cursor: pointer;
  font-size: 0.875rem;
}

.mm-search {
  display: block;
}

.mm-total {
  margin: 0;
  font-size: 0.9rem;
}

.mm-list {
  display: grid;
  gap: 0.75rem;
}

.mm-release {
  display: grid;
  grid-template-columns: 6.25rem minmax(0, 1fr);
  grid-template-areas:
    "cover head"
    "meta meta"
    "plats plats"
    "foot foot"
    "reject reject"
    "actions actions";
  gap: 0.7rem 1.05rem;
  align-items: start;
  padding: 0.95rem 1.05rem;
  border-radius: 1rem;
  border: 0.5px solid rgb(255 255 255 / 0.45);
  background: rgb(255 255 255 / 0.42);
}

html.dark .mm-release {
  border-color: rgb(200 215 255 / 0.16);
  background: rgb(32 36 50 / 0.55);
}

.cover.mm-cover {
  grid-area: cover;
  width: 6.25rem;
  height: 6.25rem;
  border-radius: 0.85rem;
}

/* Flatten so meta/platforms can span under the cover */
.mm-release-main {
  display: contents;
}

.mm-release-head {
  grid-area: head;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  min-width: 0;
  min-height: 6.25rem;
}

.mm-release-titles {
  min-width: 0;
}

.mm-release-head-right {
  display: flex;
  align-items: flex-start;
  gap: 0.4rem;
  flex-shrink: 0;
}

.mm-menu {
  position: relative;
  z-index: 3;
}

.mm-menu-btn {
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border: 0;
  border-radius: 0.55rem;
  background: transparent;
  color: var(--muted-fg);
  cursor: pointer;
  padding: 0;
}

.mm-menu-btn:hover,
.mm-menu.open .mm-menu-btn {
  background: rgb(0 0 0 / 0.06);
  color: var(--foreground);
}

html.dark .mm-menu-btn:hover,
html.dark .mm-menu.open .mm-menu-btn {
  background: rgb(255 255 255 / 0.08);
}

.mm-menu-btn span,
.mm-menu-btn span::before,
.mm-menu-btn span::after {
  display: block;
  width: 0.28rem;
  height: 0.28rem;
  border-radius: 50%;
  background: currentColor;
}

.mm-menu-btn span {
  position: relative;
  box-shadow:
    0 -0.42rem 0 currentColor,
    0 0.42rem 0 currentColor;
}

.mm-menu-drop {
  position: absolute;
  top: calc(100% + 0.25rem);
  right: 0;
  min-width: 13.5rem;
  padding: 0.35rem;
  border-radius: 0.85rem;
  border: 0.5px solid rgb(255 255 255 / 0.55);
  background: rgb(255 255 255 / 0.96);
  box-shadow: 0 12px 32px rgb(0 0 0 / 0.14);
  display: grid;
  gap: 0.15rem;
}

html.dark .mm-menu-drop {
  background: rgb(36 40 54 / 0.98);
  border-color: rgb(200 215 255 / 0.16);
  box-shadow: 0 14px 36px rgb(0 0 0 / 0.45);
}

.mm-menu-drop button,
.mm-menu-drop a {
  display: block;
  width: 100%;
  text-align: left;
  border: 0;
  background: transparent;
  color: var(--foreground);
  font: inherit;
  font-size: 0.875rem;
  padding: 0.55rem 0.7rem;
  border-radius: 0.6rem;
  cursor: pointer;
  text-decoration: none;
}

.mm-menu-drop button:hover,
.mm-menu-drop a:hover {
  background: rgb(10 132 255 / 0.12);
  color: var(--primary);
}

.mm-info-backdrop {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 1rem;
  background: rgb(0 0 0 / 0.45);
  backdrop-filter: blur(8px);
}

.mm-info-sheet {
  width: min(40rem, 100%);
  max-height: min(88vh, 52rem);
  overflow: auto;
  padding: 1.1rem 1.15rem 1.25rem;
  border-radius: 1.1rem;
}

.mm-info-top {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.85rem;
  align-items: start;
  margin-bottom: 1rem;
}

.mm-info-top h2 {
  margin: 0;
  font-size: 1.2rem;
}

.cover.mm-info-cover {
  width: 4.5rem;
  height: 4.5rem;
}

.mm-info-tracks-title {
  margin: 1.1rem 0 0.55rem;
  font-size: 0.95rem;
}

.mm-info-table-wrap {
  overflow-x: auto;
}

.mm-info-table td,
.mm-info-table th {
  font-size: 0.875rem;
}

.mm-info-num {
  width: 2rem;
  color: var(--muted-fg);
}

.mm-exp {
  display: inline-grid;
  place-items: center;
  min-width: 1.1rem;
  height: 1.1rem;
  padding: 0 0.2rem;
  border-radius: 0.3rem;
  font-size: 0.65rem;
  font-weight: 700;
  background: rgb(120 120 128 / 0.2);
  color: var(--muted-fg);
  vertical-align: middle;
}

.mm-release-head h3 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
}

.mm-artist {
  margin: 0.15rem 0 0;
  color: var(--muted-fg);
  font-size: 0.9rem;
}

.mm-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  flex-shrink: 0;
  padding: 0.28rem 0.65rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  background: rgb(0 0 0 / 0.06);
  color: var(--muted-fg);
}

.mm-pill-ok {
  background: rgb(52 199 89 / 0.16);
  color: #1f8a3d;
}

html.dark .mm-pill-ok {
  color: #7dff9a;
}

.mm-pill-bad {
  background: rgb(255 59 48 / 0.14);
  color: #ff6b61;
}

.mm-pill-soon {
  background: rgb(0 122 255 / 0.14);
  color: #0066d6;
}

html.dark .mm-pill-soon {
  color: #7cb8ff;
}

.mm-pill-mod {
  background: rgb(255 149 0 / 0.16);
  color: #c93400;
}

html.dark .mm-pill-mod {
  color: #ffb340;
}

.mm-pill-draft {
  background: rgb(120 120 128 / 0.16);
  color: var(--muted-fg);
}

.mm-pill-check {
  font-size: 0.7rem;
}

.dsp-icons {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.28rem;
}

.dsp-icons--row {
  flex-wrap: nowrap;
  overflow: hidden;
}

.dsp-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: 1.5rem;
  height: 1.5rem;
  padding: 0;
  margin: 0;
  line-height: 0;
  border-radius: 0.4rem;
  background: rgb(255 255 255 / 0.72);
  border: 0.5px solid rgb(60 60 67 / 0.12);
  overflow: hidden;
  vertical-align: middle;
}

html.dark .dsp-icon {
  background: rgb(44 44 46 / 0.92);
  border-color: rgb(84 84 88 / 0.55);
}

.dsp-icon img {
  width: 1rem;
  height: 1rem;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0.22rem;
  object-fit: contain;
  object-position: center;
  display: block;
  flex: 0 0 auto;
}

.dsp-icons-more {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--muted-fg);
  padding: 0 0.2rem;
}

.dsp-wiz-ico {
  width: 1.05rem;
  height: 1.05rem;
  object-fit: contain;
  flex-shrink: 0;
  border-radius: 0.25rem;
}

.mm-grid,
.mm-meta {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0.45rem 0.7rem;
}

.mm-release .mm-meta {
  grid-area: meta;
}

.mm-platforms-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem 0.85rem;
  padding: 0.45rem 0.55rem;
  border-radius: 0.75rem;
  background: rgb(120 120 128 / 0.08);
}

.mm-release .mm-platforms-bar {
  grid-area: plats;
}

html.dark .mm-platforms-bar {
  background: rgb(255 255 255 / 0.04);
}

.mm-platforms-bar--modal {
  margin-top: 0.65rem;
}

.mm-platforms-label {
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
  flex-shrink: 0;
}

.mm-platforms-label span {
  color: var(--muted-fg);
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.mm-platforms-label b {
  font-size: 0.9rem;
  font-weight: 700;
}

.mm-release-foot {
  grid-area: foot;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem 1.1rem;
  min-height: 0;
}

.mm-release .error,
.mm-release-reject {
  grid-area: reject;
  margin: 0;
}

.mm-foot-who {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.25rem 0.55rem;
  font-size: 0.8125rem;
}

.mm-foot-who > span {
  color: var(--muted-fg);
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.mm-foot-who b {
  font-weight: 600;
}

.mm-foot-who em {
  font-style: normal;
  color: var(--muted-fg);
  font-size: 0.78rem;
}

/* Only the field label — not nested .dsp-icon spans */
.mm-k > span {
  display: block;
  color: var(--muted-fg);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.mm-k b {
  font-size: 0.8125rem;
  font-weight: 600;
  word-break: break-word;
}

.mm-k-copy {
  cursor: pointer;
  border-radius: 0.45rem;
  margin: -0.15rem;
  padding: 0.15rem;
  outline: none;
  transition: background 0.15s ease;
}

.mm-k-copy:hover,
.mm-k-copy:focus-visible {
  background: rgb(0 122 255 / 0.1);
}

.mm-k-copy:hover b,
.mm-k-copy:focus-visible b {
  color: var(--primary);
}

.mm-bandlink-btn {
  white-space: nowrap;
  flex-shrink: 0;
}

.mm-sub {
  display: block;
  color: var(--muted-fg);
  font-size: 0.75rem;
  font-weight: 400;
}

.mm-tracks {
  margin: 0;
}

.mm-tracks summary {
  cursor: pointer;
  color: var(--primary);
  font-size: 0.8125rem;
  font-weight: 600;
}

.mm-tracks ol {
  margin: 0.35rem 0 0;
  padding-left: 1.1rem;
  font-size: 0.8125rem;
}

.mm-release-actions {
  grid-area: actions;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.4rem;
  margin-top: 0;
}

.mm-release-actions .btn {
  width: 100%;
  margin: 0;
}

@media (max-width: 1100px) {
  .mm-grid,
  .mm-meta {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .mm-grid,
  .mm-meta {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .mm-release-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.release-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.5rem;
  margin-top: 0.65rem;
  width: 100%;
}

.release-actions:has(> :only-child) {
  grid-template-columns: 1fr;
}

.release-actions .btn {
  width: 100%;
  min-width: 0;
  margin: 0;
}

.release-meta {
  display: grid;
  gap: 0.3rem;
  min-width: 0;
}

.release-meta h3,
.news-card h3,
.row-card h3 {
  margin: 0;
  font-size: 1.0625rem;
  font-weight: 600;
}

.meta-line {
  color: var(--muted-fg);
  font-size: 0.875rem;
}

.badge {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: rgb(0 122 255 / 0.14);
  color: var(--primary);
  font-size: 0.75rem;
  font-weight: 600;
}

html.dark .badge {
  background: rgb(10 132 255 / 0.22);
  color: #64b5ff;
}

.tracks {
  margin: 0.5rem 0 0;
  padding-left: 1.1rem;
  color: var(--muted-fg);
  font-size: 0.875rem;
}

.empty {
  padding: 1.5rem;
  border-radius: 0.875rem;
  border: 0.5px dashed color-mix(in srgb, var(--separator) 90%, transparent);
  background: rgb(255 255 255 / 0.22);
  color: var(--muted-fg);
  text-align: center;
}

html.dark .empty {
  background: rgb(255 255 255 / 0.05);
}

.empty-state {
  display: grid;
  gap: 0.45rem;
  justify-items: center;
  padding: 1.75rem 1.25rem;
}

.empty-title {
  margin: 0;
  color: var(--fg);
  font-size: 1.05rem;
  font-weight: 650;
}

.empty-text {
  margin: 0;
  max-width: 28rem;
  line-height: 1.45;
  font-size: 0.9rem;
}

.empty-actions {
  margin-top: 0.55rem;
  justify-content: center;
  flex-wrap: wrap;
}

.staff-wip {
  max-width: 32rem;
}

.staff-wip-badge {
  display: inline-flex;
  align-items: center;
  margin: 0 0 0.75rem;
  padding: 0.28rem 0.65rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  background: rgb(255 149 0 / 0.16);
  color: #c93400;
}

html.dark .staff-wip-badge {
  color: #ffb340;
}

.staff-wip h2 {
  margin: 0 0 0.5rem;
}

.staff-wip .btn[disabled] {
  opacity: 0.45;
  cursor: not-allowed;
}

.chat {
  display: grid;
  gap: 0.65rem;
  max-height: 52vh;
  overflow: auto;
}

.bubble {
  max-width: 85%;
  padding: 0.7rem 0.85rem;
  border-radius: 1rem;
  border: 0.5px solid rgb(255 255 255 / 0.45);
  background: rgb(255 255 255 / 0.35);
  white-space: pre-wrap;
  font-size: 0.9375rem;
}

html.dark .bubble {
  border-color: rgb(200 215 255 / 0.16);
  background: rgb(255 255 255 / 0.07);
}

.bubble.client {
  justify-self: end;
  background: rgb(0 122 255 / 0.16);
  border-color: rgb(0 122 255 / 0.25);
}

html.dark .bubble.client {
  background: rgb(10 132 255 / 0.22);
}

.bubble.staff {
  justify-self: start;
}

.toast {
  position: fixed;
  z-index: 60;
  right: 1rem;
  bottom: 1rem;
  max-width: min(22rem, calc(100vw - 2rem));
  padding: 0.9rem 1.1rem;
  border-radius: 0.875rem;
  background: rgb(255 255 255 / 0.82);
  backdrop-filter: blur(48px) saturate(200%);
  -webkit-backdrop-filter: blur(48px) saturate(200%);
  border: 0.5px solid rgb(255 255 255 / 0.7);
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 0.85),
    0 16px 40px rgb(0 0 0 / 0.14);
  font-size: 0.9375rem;
  font-weight: 500;
}

html.dark .toast {
  background: rgb(36 40 54 / 0.9);
  border-color: rgb(200 215 255 / 0.18);
  box-shadow: 0 16px 40px rgb(0 0 0 / 0.5);
}

code {
  font-size: 0.8125rem;
  word-break: break-all;
}

/* —— Responsive —— */
.mobile-only {
  display: flex;
}

.desktop-only {
  display: none;
}

@media (min-width: 640px) {
  .kpi-row {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .release-card {
    grid-template-columns: 5.5rem 1fr;
  }

  .user-chip {
    display: flex;
  }

  .app-main {
    padding: 1rem 1.15rem 2.5rem;
  }
}

@media (min-width: 1280px) {
  .app-sidebar {
    display: flex;
    transform: none;
    visibility: visible;
    pointer-events: auto;
    position: relative;
    inset: auto;
    width: 16rem;
    z-index: 1;
    padding-top: 0;
    padding-bottom: 1rem;
  }

  .mobile-only {
    display: none !important;
  }

  .desktop-only {
    display: flex;
  }

  .app-header {
    padding: 0 1.25rem;
    min-height: 3.5rem;
  }

  .app-main {
    padding: 1.25rem 1.5rem 3rem;
  }

  .sw-mobile-nav-backdrop {
    display: none !important;
  }

  .sw-table table,
  .table {
    min-width: 0;
  }
}

/* Mobile drawer when open */
@media (max-width: 1279px) {
  .app-sidebar {
    display: flex;
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 51;
    width: min(20rem, 88vw);
    transform: translateX(-105%);
    visibility: hidden;
    pointer-events: none;
    transition:
      transform 0.32s cubic-bezier(0.22, 1, 0.36, 1),
      visibility 0.32s;
    padding-top: env(safe-area-inset-top, 0px);
    padding-bottom: env(safe-area-inset-bottom, 0px);
    background: rgb(255 255 255 / 0.55);
    backdrop-filter: blur(48px) saturate(200%);
    -webkit-backdrop-filter: blur(48px) saturate(200%);
    box-shadow: 12px 0 48px rgb(0 0 0 / 0.15);
  }

  html.dark .app-sidebar {
    background: rgb(32 36 48 / 0.92);
    box-shadow: 12px 0 48px rgb(0 0 0 / 0.55);
  }

  .app-sidebar.is-open {
    transform: translateX(0);
    visibility: visible;
    pointer-events: auto;
  }
}

@media (prefers-reduced-transparency: reduce) {
  .sw-glass,
  .sw-glass-control,
  .sw-login-card,
  .sw-card,
  .panel,
  .sw-table,
  .sw-field,
  .sw-sidebar-nav-group,
  .toast,
  .btn.ghost,
  .btn.outline {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    background: var(--card) !important;
  }
}

.offer-check {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.65rem;
  width: fit-content;
  max-width: 100%;
  color: var(--foreground);
  font-size: 0.9rem;
  font-weight: 500;
  line-height: 1.35;
  cursor: pointer;
}

.form-grid label.offer-check,
.stack label.offer-check {
  display: flex;
  gap: 0.65rem;
  color: var(--foreground);
  font-size: 0.9rem;
  font-weight: 500;
}

.offer-check span {
  min-width: 0;
}

.offer-check input[type="checkbox"],
.dsp-list input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 1.2rem;
  height: 1.2rem;
  margin: 0;
  flex-shrink: 0;
  border-radius: 0.35rem;
  border: 0.5px solid rgb(255 255 255 / 0.5);
  background: rgb(255 255 255 / 0.22);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.45);
  cursor: pointer;
  background-repeat: no-repeat;
  background-position: center;
  background-size: 0.72rem;
}

html.dark .offer-check input[type="checkbox"],
html.dark .dsp-list input[type="checkbox"] {
  border-color: rgb(200 215 255 / 0.28);
  background-color: rgb(8 10 18 / 0.55);
}

.offer-check input[type="checkbox"]:checked,
.dsp-list input[type="checkbox"]:checked {
  border-color: transparent;
  background-color: var(--primary);
  box-shadow: 0 2px 8px rgb(0 122 255 / 0.35);
  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='%23fff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round' d='M3.5 8.5 6.5 11.5 12.5 4.5'/%3E%3C/svg%3E");
}

.offer-check input[type="checkbox"]:focus-visible,
.dsp-list input[type="checkbox"]:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgb(0 122 255 / 0.28);
}

.offer-check a {
  color: var(--primary);
  text-decoration: underline;
}

.site-legal-footer {
  margin-top: 18px;
  text-align: center;
  font-size: 12px;
  line-height: 1.45;
}

.site-legal-footer a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.site-legal-footer--app {
  margin: 28px 0 8px;
  padding-top: 16px;
  border-top: 1px solid var(--border, rgba(127, 127, 127, 0.25));
}

.auth-legal {
  margin: 0.85rem 0 1rem;
  padding: 0.85rem 0.95rem;
  border-radius: 14px;
  background: rgba(52, 199, 89, 0.1);
  border: 1px solid rgba(52, 199, 89, 0.18);
  color: var(--muted-fg);
  font-size: 0.82rem;
  line-height: 1.45;
}

html.dark .auth-legal {
  background: rgba(48, 209, 88, 0.12);
  border-color: rgba(48, 209, 88, 0.22);
}

.auth-legal p {
  margin: 0;
}

.auth-legal a {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.auth-legal-more {
  margin-top: 0.55rem;
}

.auth-legal-more summary {
  cursor: pointer;
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
  list-style: none;
}

.auth-legal-more summary::-webkit-details-marker {
  display: none;
}

.auth-legal-more[open] summary {
  margin-bottom: 0.45rem;
}

.auth-legal-more p {
  margin: 0;
}

.check-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.65rem;
}

.dsp-count {
  margin-left: auto;
  font-size: 0.8125rem;
}

.dsp-section-label {
  margin: 0 0 0.45rem;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted-fg);
}

.dsp-featured {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.dsp-tile {
  position: relative;
  display: block;
  margin: 0;
  cursor: pointer;
  user-select: none;
}

.dsp-tile input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  pointer-events: none;
}

.dsp-tile-face {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 4.6rem;
  padding: 0.65rem 0.4rem;
  border-radius: 0.85rem;
  border: 0.5px solid rgb(60 60 67 / 0.22);
  background: rgb(255 255 255 / 0.45);
  text-align: center;
  transition:
    border-color 0.15s ease,
    background 0.15s ease,
    box-shadow 0.15s ease;
}

html.dark .dsp-tile-face {
  border-color: rgb(84 84 88 / 0.65);
  background: rgb(44 44 46 / 0.55);
}

.dsp-tile input:checked + .dsp-tile-face {
  border-color: rgb(0 122 255 / 0.85);
  background: rgb(0 122 255 / 0.14);
  box-shadow: 0 0 0 1px rgb(0 122 255 / 0.25);
}

html.dark .dsp-tile input:checked + .dsp-tile-face {
  border-color: rgb(10 132 255 / 0.9);
  background: rgb(10 132 255 / 0.18);
}

.dsp-tile input:focus-visible + .dsp-tile-face {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.dsp-tile-name {
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1.2;
  color: var(--foreground);
}

.dsp-tile .dsp-wiz-ico {
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 0.4rem;
  object-fit: contain;
}

.dsp-more-toggle {
  width: 100%;
  margin-bottom: 0.55rem;
}

.dsp-more {
  margin-top: 0.15rem;
}

.dsp-search {
  margin-bottom: 0.65rem;
}

.dsp-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr));
  gap: 0.25rem 0.75rem;
  max-height: 16rem;
  overflow: auto;
  padding: 0.35rem;
}

.dsp-list label {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.8125rem;
  color: var(--foreground);
}

.dsp-list label span {
  min-width: 0;
}

.dsp-list input[type="checkbox"] {
  flex-shrink: 0;
}

@media (max-width: 719px) {
  .dsp-featured {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.track-row {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 0.5rem;
  align-items: end;
  margin-bottom: 0.5rem;
}

.payment-box img {
  max-width: min(16rem, 100%);
  border-radius: 0.75rem;
}

.pay-amount-line {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
  line-height: 1.35;
}

.pay-amount-line strong {
  font-size: 1.25rem;
  font-variant-numeric: tabular-nums;
  color: var(--accent, #0a84ff);
}

.hint {
  color: var(--muted-fg);
  font-size: 0.8125rem;
  margin: 0.35rem 0 0.75rem;
}

.sw-notice {
  margin: 0 0 1rem;
  padding: 0.85rem 1rem;
  border-radius: 0.875rem;
  border: 0.5px solid rgb(10 132 255 / 0.35);
  background: rgb(10 132 255 / 0.12);
  color: var(--foreground);
}

.sw-notice strong {
  display: block;
  margin: 0 0 0.35rem;
  font-size: 0.9375rem;
  font-weight: 650;
  letter-spacing: -0.01em;
}

.sw-notice p {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.45;
  color: var(--muted-fg);
}

.sw-notice b {
  color: var(--foreground);
  font-weight: 650;
}

html.dark .sw-notice {
  border-color: rgb(10 132 255 / 0.45);
  background: rgb(10 132 255 / 0.16);
}

.rel-wiz-step .sw-notice {
  margin-bottom: 1rem;
}

.sw-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.sw-kpi {
  padding: 1rem;
  border-radius: 1rem;
  background: rgb(255 255 255 / 0.55);
  border: 0.5px solid rgb(255 255 255 / 0.5);
}

html.dark .sw-kpi {
  background: rgb(32 36 50 / 0.72);
  border-color: rgb(200 215 255 / 0.16);
}

.sw-kpi strong {
  display: block;
  font-size: 1.25rem;
}

.sw-kpi span {
  color: var(--muted-fg);
  font-size: 0.75rem;
}

@media (max-width: 900px) {
  .sw-kpis {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 639px) {
  .track-row {
    grid-template-columns: 1fr;
  }

  .page-head h1 {
    font-size: 1.45rem;
  }

  .page-head p {
    font-size: 0.875rem;
  }

  .sw-card,
  .panel {
    padding: 1rem 0.95rem;
    border-radius: 0.75rem;
  }

  .sw-table th,
  .sw-table td,
  .table th,
  .table td {
    padding: 0.55rem 0.65rem;
    font-size: 0.8125rem;
  }

  .header-desk-btn {
    max-width: 5.6rem;
    min-height: 2.25rem;
    padding: 0 0.5rem;
    font-size: 0.6875rem;
    line-height: 1.15;
    white-space: normal;
    text-align: center;
  }

  #btn-logout {
    min-height: 2.25rem;
    padding: 0 0.65rem;
    font-size: 0.75rem;
  }

  .dsp-list {
    grid-template-columns: 1fr;
    max-height: 12rem;
  }

  .staff-mod-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .mm-release {
    grid-template-columns: 4.75rem minmax(0, 1fr);
    gap: 0.65rem 0.75rem;
    padding: 0.8rem;
  }

  .cover.mm-cover {
    width: 4.75rem;
    height: 4.75rem;
  }

  .mm-release-head {
    flex-direction: column;
    min-height: 4.75rem;
    gap: 0.45rem;
  }

  .mm-release-head-right {
    flex-wrap: wrap;
    width: 100%;
  }

  .mm-platforms-bar {
    gap: 0.4rem;
  }

  .mm-release .mm-meta {
    gap: 0.55rem 0.65rem;
  }

  .dsp-icons--row {
    flex-wrap: wrap;
  }

  .catalog-release {
    min-width: 0;
  }

  .row-actions {
    margin-top: 0.75rem;
  }

  .toast {
    right: 0.75rem;
    left: 0.75rem;
    bottom: calc(0.75rem + env(safe-area-inset-bottom, 0px));
    max-width: none;
  }
}

#btn-theme {
  z-index: 2;
}

::view-transition-old(root),
::view-transition-new(root) {
  animation: none;
  mix-blend-mode: normal;
}

::view-transition-old(root) {
  z-index: 0;
}

::view-transition-group(theme-toggle) {
  animation-duration: 0ms;
  z-index: 10;
}

::view-transition-old(theme-toggle) {
  display: none;
}

::view-transition-new(theme-toggle) {
  animation: none;
  mix-blend-mode: normal;
  opacity: 1;
}

::view-transition-new(root) {
  z-index: 1;
}

body.theme-reveal-running {
  overflow: hidden;
}

body.theme-reveal-running #btn-theme {
  pointer-events: none;
}

/* Дешевле снимок VT на retina: без blur/теней на время анимации. */
body.theme-reveal-running *,
body.theme-reveal-running *::before,
body.theme-reveal-running *::after {
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  transition: none !important;
}

@media (prefers-reduced-motion: reduce) {
  ::view-transition-new(root) {
    animation: none;
  }

  .app-sidebar,
  .sw-mobile-nav-backdrop {
    transition: none !important;
  }
}

/* —— Stats page (Musmedia-style) —— */
.view.stats-view {
  display: block;
  max-width: 1120px;
}

.app-main.stats-main .page-head {
  margin-bottom: 1rem;
}

.stats-page {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.stats-panel.sw-card {
  padding: 1.1rem 1.15rem;
}

.stats-eyebrow {
  margin: 0 0 0.85rem;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted-fg);
}

.stats-panel-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}

.stats-totals {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  font-size: 0.875rem;
  color: var(--foreground);
}

.stats-totals b {
  font-weight: 600;
  color: var(--muted-fg);
  margin-right: 0.35rem;
}

.stats-filter-grid {
  display: grid;
  gap: 0.75rem;
}

.stats-filter-row {
  display: grid;
  grid-template-columns: 8.25rem 9.75rem 9.75rem minmax(10rem, 1fr) auto;
  gap: 0.65rem;
  align-items: end;
}

.stats-field {
  display: grid;
  gap: 0.4rem;
  min-width: 0;
}

.stats-field > span {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--muted-fg);
}

.stats-field input,
.stats-field select,
.stats-request textarea {
  width: 100%;
  min-width: 0;
}

.stats-period select {
  min-width: 0;
  max-width: 100%;
}

/*
  Native iOS date inputs ignore width and keep a wide intrinsic control.
  Visual chrome lives on .stats-date-shell; the input itself is borderless inside.
*/
.stats-date-shell {
  display: flex;
  align-items: center;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  overflow: hidden;
  border-radius: 0.625rem;
}

.stats-date-shell input[type="date"] {
  display: block;
  flex: 1 1 auto;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  margin: 0;
  padding: 0;
  border: 0 !important;
  border-radius: 0;
  background: transparent !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  -webkit-appearance: none;
  appearance: none;
  color: inherit;
  font: inherit;
  line-height: 1.25;
}

.stats-date-shell input[type="date"]::-webkit-date-and-time-value {
  min-width: 0;
  text-align: left;
}

.stats-date-shell input[type="date"]::-webkit-datetime-edit {
  min-width: 0;
  padding: 0;
}

.stats-date-shell input[type="date"]::-webkit-calendar-picker-indicator {
  margin: 0 0 0 0.25rem;
  padding: 0;
  opacity: 0.75;
  cursor: pointer;
}

.stats-field-btn .stats-btn-label {
  visibility: hidden;
}

.stats-field-btn .btn {
  min-width: 6.25rem;
  white-space: nowrap;
}

.stats-field-grow {
  min-width: 0;
}

.stats-btn-primary {
  border: 0;
  border-radius: 0.625rem;
  padding: 0.65rem 1.1rem;
  font: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  color: #fff;
  background: #007aff;
  cursor: pointer;
}

html.dark .stats-btn-primary {
  background: #0a84ff;
}

.stats-reset {
  margin-top: 0.75rem;
  border: 0;
  background: none;
  padding: 0;
  font: inherit;
  font-size: 0.8125rem;
  color: var(--muted-fg);
  cursor: pointer;
  text-decoration: underline;
}

.stats-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.st-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.8125rem;
  color: var(--muted-fg);
}

.st-leg-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border: 0.5px solid rgb(255 255 255 / 0.45);
  background: rgb(255 255 255 / 0.28);
  color: var(--foreground);
  border-radius: 999px;
  padding: 0.35rem 0.7rem;
  font: inherit;
  font-size: 0.8125rem;
  cursor: pointer;
  opacity: 0.45;
}

html.dark .st-leg-btn {
  background: rgb(44 48 62 / 0.55);
  border-color: rgb(200 215 255 / 0.18);
}

.st-leg-btn.is-on {
  opacity: 1;
}

.st-leg-btn:hover {
  opacity: 0.8;
}

.st-leg-btn.is-on:hover {
  opacity: 1;
  background: rgb(255 255 255 / 0.4);
}

html.dark .st-leg-btn.is-on:hover {
  background: rgb(56 62 82 / 0.8);
}

.st-leg-btn:focus-visible {
  outline: 2px solid #7c6cff;
  outline-offset: 2px;
}

.st-leg-btn i {
  display: inline-block;
  flex-shrink: 0;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
}

.st-leg-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 0.15rem 0 0.85rem;
}

.st-leg-wrap .st-leg-btn {
  justify-content: flex-start;
  min-height: 0;
  padding: 0.28rem 0.55rem;
  font-size: 0.75rem;
}

.st-leg-flow {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 0.1rem 0 0.9rem;
  align-items: center;
}

.st-leg-flow--below {
  margin: 0.95rem 0 0;
  justify-content: center;
}

.st-leg-flow .st-leg-btn {
  justify-content: flex-start;
  gap: 0.35rem;
  min-height: 0;
  padding: 0.26rem 0.55rem;
  font-size: 0.75rem;
  line-height: 1.2;
  border-radius: 999px;
}

.st-leg-flow .st-leg-btn span {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  min-width: 0;
}

.st-leg-flow .st-leg-btn i {
  width: 0.4rem;
  height: 0.4rem;
}

.st-leg-flow .st-leg-btn b {
  font-size: 0.75rem;
  font-variant-numeric: tabular-nums;
  font-weight: 650;
  margin-left: 0.15rem;
}

.st-leg-col {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.35rem;
  margin: 0.2rem 0 1rem;
  max-width: 22rem;
}

.st-leg-col .st-leg-btn {
  width: 100%;
  justify-content: space-between;
  border-radius: 999px;
  padding: 0.35rem 0.65rem;
  font-size: 0.8125rem;
}

.st-leg-col .st-leg-btn span {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-width: 0;
}

.st-legend i {
  display: inline-block;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
}

.st-chart-wrap {
  position: relative;
  margin-top: 0.25rem;
}

.st-chart {
  width: 100%;
  height: auto;
  min-height: 12rem;
  display: block;
}

.st-chart-md {
  min-height: 10rem;
}

.st-grid {
  stroke: rgb(0 0 0 / 0.08);
  stroke-width: 1;
}

html.dark .st-grid {
  stroke: rgb(255 255 255 / 0.1);
}

.st-axis {
  fill: var(--muted-fg);
  font-size: 11px;
}

.st-xlabels {
  display: flex;
  justify-content: space-between;
  margin-top: 0.35rem;
  padding: 0 0.25rem 0 2.5rem;
  font-size: 0.75rem;
  color: var(--muted-fg);
}

.st-cursor {
  stroke: var(--primary);
  stroke-width: 1.25;
  stroke-dasharray: 3 3;
  pointer-events: none;
}

.st-hitbox {
  cursor: crosshair;
}

.st-tip {
  position: absolute;
  pointer-events: none;
  z-index: 5;
  display: grid;
  gap: 0.28rem;
  min-width: 11rem;
  max-width: 18rem;
  padding: 0.6rem 0.75rem;
  border-radius: 0.75rem;
  border: 0.5px solid rgb(255 255 255 / 0.55);
  background: rgb(255 255 255 / 0.92);
  backdrop-filter: blur(20px);
  box-shadow: 0 8px 24px rgb(0 0 0 / 0.12);
  font-size: 0.75rem;
  line-height: 1.3;
  top: 0.5rem;
  transform: translateX(-50%);
  opacity: 0;
}

html.dark .st-tip {
  background: rgb(32 36 50 / 0.94);
  border-color: rgb(200 215 255 / 0.22);
}

.st-tip.show {
  opacity: 1;
}

.st-tip[hidden] {
  display: none;
}

.st-tip-date {
  display: block;
  margin-bottom: 0.15rem;
  color: var(--muted-fg);
  font-weight: 600;
}

.st-tip-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.st-tip-row span {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-width: 0;
}

.st-tip-row i {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  flex-shrink: 0;
}

.st-tip-row b {
  font-variant-numeric: tabular-nums;
  font-size: 0.8125rem;
  margin: 0;
}

.st-pill-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.85rem;
}

.st-pill-grid-scroll {
  flex-wrap: nowrap;
  overflow-x: auto;
  padding-bottom: 0.25rem;
  scrollbar-width: none;
}

.st-pill-grid-scroll::-webkit-scrollbar {
  display: none;
}

.st-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem 0.7rem;
  border-radius: 999px;
  font-size: 0.8125rem;
  background: rgb(255 255 255 / 0.32);
  border: 0.5px solid rgb(255 255 255 / 0.5);
  color: var(--foreground);
  white-space: nowrap;
}

html.dark .st-pill {
  background: rgb(44 48 62 / 0.55);
  border-color: rgb(200 215 255 / 0.18);
}

.st-pill i {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  display: inline-block;
}

.st-pill b {
  font-weight: 600;
}

.st-hbars {
  display: grid;
  gap: 0.65rem;
}

.st-hbar {
  display: grid;
  grid-template-columns: 5.5rem minmax(0, 1fr);
  gap: 0.75rem;
  align-items: center;
}

.st-hbar-label {
  font-size: 0.8125rem;
  color: var(--muted-fg);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.st-hbar-track {
  height: 1.35rem;
  border-radius: 0.35rem;
  background: rgb(0 0 0 / 0.06);
  overflow: hidden;
}

html.dark .st-hbar-track {
  background: rgb(255 255 255 / 0.08);
}

.st-hbar-fill {
  height: 100%;
  border-radius: inherit;
  background: var(--primary);
}

.st-haxis {
  display: flex;
  justify-content: space-between;
  margin: 0.25rem 0 0 6.25rem;
  font-size: 0.6875rem;
  color: var(--muted-fg);
}

.st-donut-block,
.st-pie-block {
  display: grid;
  gap: 0.75rem;
  justify-items: center;
}

.st-donut-wrap {
  position: relative;
  width: min(14rem, 72%);
  aspect-ratio: 1;
  height: auto;
}

.st-donut,
.st-pie {
  width: 100%;
  height: auto;
  display: block;
}

.st-donut-hole {
  fill: #fff;
}

html.dark .st-donut-hole {
  fill: rgb(32 36 50);
}

.st-donut-center {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  pointer-events: none;
  line-height: 1.15;
}

.st-donut-center b {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.st-donut-center span {
  margin-top: 0.15rem;
  font-size: 0.75rem;
  color: var(--muted-fg);
  max-width: 6.5rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.st-empty {
  margin: 0;
  padding: 1.5rem 0;
  text-align: center;
  color: var(--muted-fg);
  font-size: 0.875rem;
}

.stats-table-wrap {
  overflow-x: auto;
}

.stats-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.stats-table th,
.stats-table td {
  padding: 0.65rem 0.5rem;
  border-bottom: 1px solid rgb(0 0 0 / 0.08);
  text-align: left;
  vertical-align: middle;
}

html.dark .stats-table th,
html.dark .stats-table td {
  border-bottom-color: rgb(255 255 255 / 0.1);
}

.stats-table th {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--muted-fg);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.stats-table .num {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.stats-table tbody tr[data-upc] {
  cursor: pointer;
}

.stats-table tbody tr[data-upc]:hover,
.stats-table tbody tr.is-on {
  background: rgb(0 122 255 / 0.1);
}

.stats-request-form {
  display: grid;
  gap: 0.75rem;
}

.stats-request textarea {
  min-height: 5.5rem;
  resize: vertical;
}

@media (max-width: 960px) {
  .stats-filter-row {
    grid-template-columns: 1fr 1fr;
  }

  .stats-track,
  .stats-field-btn {
    grid-column: 1 / -1;
  }

  .stats-field-btn .stats-btn-label {
    display: none;
  }

  .stats-field-btn .btn {
    width: 100%;
  }

  .stats-grid-2 {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 639px) {
  .stats-filter-row {
    grid-template-columns: 1fr;
  }

  .stats-track,
  .stats-field-btn {
    grid-column: auto;
  }

  .stats-panel {
    padding: 1rem;
    border-radius: 0.75rem;
  }

  .stats-date-shell {
    min-height: 2.75rem;
    padding-left: 0.85rem;
    padding-right: 0.7rem;
  }

  .stats-date-shell input[type="date"] {
    font-size: 1rem;
  }

  .st-hbar {
    grid-template-columns: 4.5rem minmax(0, 1fr);
  }
}

.rel-wiz {
  display: grid;
  gap: 1rem;
  max-width: 52rem;
}

.rel-wiz-head {
  position: sticky;
  top: 0.5rem;
  z-index: 4;
  padding: 1rem 1.1rem 1.05rem;
  border-radius: 1.125rem;
}

.rel-wiz-count {
  margin: 0 0 0.75rem;
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--foreground);
}

.rel-wiz-count b {
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  color: var(--primary);
}

.rel-wiz-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.rel-wiz-dot {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  max-width: 100%;
  border: 0.5px solid rgb(255 255 255 / 0.5);
  background: rgb(255 255 255 / 0.28);
  color: var(--muted-fg);
  border-radius: 999px;
  padding: 0.28rem 0.65rem 0.28rem 0.28rem;
  font: inherit;
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1.2;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, opacity 0.15s ease;
}

html.dark .rel-wiz-dot {
  background: rgb(44 48 62 / 0.5);
  border-color: rgb(200 215 255 / 0.14);
}

.rel-wiz-dot em {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 999px;
  font-style: normal;
  font-variant-numeric: tabular-nums;
  font-size: 0.6875rem;
  font-weight: 650;
  color: var(--foreground);
  background: rgb(255 255 255 / 0.35);
}

html.dark .rel-wiz-dot em {
  background: rgb(255 255 255 / 0.1);
}

.rel-wiz-dot span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 8.5rem;
}

.rel-wiz-dot:hover {
  color: var(--foreground);
  border-color: rgb(10 132 255 / 0.35);
}

.rel-wiz-dot.is-done {
  color: var(--foreground);
  opacity: 0.88;
}

.rel-wiz-dot.is-done em {
  background: rgb(10 132 255 / 0.18);
  color: var(--primary);
}

.rel-wiz-dot.is-on {
  color: var(--foreground);
  background: rgb(10 132 255 / 0.16);
  border-color: rgb(10 132 255 / 0.55);
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 0.2),
    0 0 0 1px rgb(10 132 255 / 0.18);
}

.rel-wiz-dot.is-on em {
  background: var(--primary);
  color: var(--primary-fg);
  box-shadow: 0 2px 8px rgb(0 122 255 / 0.35);
}

.rel-wiz-step h2 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}

.rel-wiz-step .hint {
  margin-top: 0;
  margin-bottom: 1rem;
}

.rel-wiz-copy {
  color: var(--muted-fg);
  font-size: 0.875rem;
  line-height: 1.5;
  margin: 0 0 1rem;
}

.rel-wiz-copy b {
  color: var(--foreground);
  font-weight: 600;
}

.rel-choice {
  display: grid;
  gap: 0.65rem;
}

@media (min-width: 640px) {
  .rel-choice {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  #pitch-choice.rel-choice {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.rel-choice-btn {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.25rem;
  text-align: left;
  min-height: 4.5rem;
  border: 0.5px solid rgb(255 255 255 / 0.55);
  background: rgb(255 255 255 / 0.28);
  color: var(--foreground);
  border-radius: 1rem;
  padding: 1rem 1.05rem;
  font: inherit;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease, transform 0.12s ease;
}

html.dark .rel-choice-btn {
  background: rgb(44 48 62 / 0.55);
  border-color: rgb(200 215 255 / 0.16);
  box-shadow: inset 0 1px 0 rgb(220 235 255 / 0.08);
}

.rel-choice-btn:hover {
  border-color: rgb(10 132 255 / 0.4);
}

.rel-choice-btn:active {
  transform: scale(0.985);
}

.rel-choice-btn.is-on {
  border-color: rgb(10 132 255 / 0.75);
  background: rgb(10 132 255 / 0.14);
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 0.18),
    0 0 0 1px rgb(10 132 255 / 0.28),
    0 8px 22px rgb(0 122 255 / 0.16);
}

.rel-choice-btn b {
  font-size: 1rem;
  font-weight: 650;
  letter-spacing: -0.01em;
}

.rel-choice-btn span {
  color: var(--muted-fg);
  font-size: 0.875rem;
  font-variant-numeric: tabular-nums;
}

.rel-choice-btn.is-on span {
  color: rgb(10 132 255 / 0.95);
}

html.dark .rel-choice-btn.is-on span {
  color: #64b5ff;
}

.rel-wiz-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  position: sticky;
  bottom: 0.75rem;
  z-index: 3;
  padding: 0.8rem;
  border-radius: 1.125rem;
}

.rel-wiz-bar .btn {
  min-width: 7.5rem;
}

.rel-wiz-bar .btn:disabled {
  opacity: 0.38;
  cursor: not-allowed;
  pointer-events: none;
}

@media (max-width: 639px) {
  .rel-wiz-dot span {
    max-width: 5.75rem;
  }

  .rel-wiz-bar {
    bottom: calc(0.5rem + env(safe-area-inset-bottom, 0px));
  }

  .rel-wiz-bar .btn {
    flex: 1 1 auto;
  }
}
