.zs-artist-portal {
  width: min(1080px, 100%);
  margin: 0 auto;
  display: grid;
  gap: 16px;
  color: var(--ui-ink, #111827);
  overflow: hidden;
}

.zs-auth-screen {
  width: min(720px, 100%);
}

.zs-artist-hero,
.zs-dashboard-hero,
.zs-artist-panel,
.zs-plan-grid article {
  border: 1px solid var(--ui-line, #e5e7eb);
  border-radius: 12px;
  background: #fff;
}

.zs-artist-hero,
.zs-dashboard-hero {
  display: grid;
  gap: 10px;
  padding: clamp(18px, 4vw, 32px);
}

.zs-dashboard-hero {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
}

.zs-artist-hero span,
.zs-dashboard-hero span {
  color: var(--ui-red, #e11d48);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.zs-artist-hero h1,
.zs-dashboard-hero h1,
.zs-artist-panel h2,
.zs-plan-grid h2 {
  margin: 0;
  color: var(--ui-ink, #111827);
  line-height: 1.12;
  letter-spacing: 0;
}

.zs-artist-hero h1,
.zs-dashboard-hero h1 {
  font-size: clamp(28px, 4vw, 44px);
}

.zs-artist-panel h2,
.zs-plan-grid h2 {
  font-size: clamp(20px, 2.3vw, 28px);
}

.zs-artist-hero p,
.zs-dashboard-hero p,
.zs-artist-panel p,
.zs-plan-grid p,
.zs-auth-note {
  margin: 0;
  color: var(--ui-muted, #64748b);
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.zs-dashboard-actions,
.zs-dashboard-tabs,
.zs-creator-menu,
.zs-artist-posts nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.zs-dashboard-tabs {
  overflow-x: auto;
  padding: 2px 0;
  scrollbar-width: none;
}

.zs-dashboard-tabs::-webkit-scrollbar {
  display: none;
}

.zs-dashboard-tabs a,
.zs-creator-menu a,
.zs-artist-button,
.zs-artist-form button,
.login-submit input {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border: 1px solid var(--ui-line, #e5e7eb);
  border-radius: 8px;
  padding: 0 16px;
  background: #fff;
  color: var(--ui-ink, #111827);
  font-size: 13px;
  font-weight: 900;
  text-decoration: none;
  white-space: nowrap;
}

.zs-dashboard-tabs a.active,
.zs-creator-menu a:hover,
.zs-artist-button,
.zs-artist-form button,
.login-submit input {
  border-color: var(--ui-red, #e11d48);
  background: var(--ui-red, #e11d48);
  color: #fff !important;
}

.zs-artist-form button.ghost,
.zs-artist-button.ghost,
.zs-artist-button.ghost:visited {
  border-color: #111827 !important;
  background: #fff !important;
  color: #111827 !important;
}

.zs-artist-panel {
  display: grid;
  gap: 14px;
  padding: clamp(16px, 3vw, 24px);
}

.zs-locked-panel {
  border-color: rgba(225, 29, 72, .32);
  background: linear-gradient(180deg, #fff, #fff7f9);
}

.zs-locked-panel .zs-artist-button {
  justify-self: start;
}

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

.zs-stat-grid div,
.zs-plan-grid article {
  display: grid;
  gap: 6px;
  padding: 16px;
}

.zs-stat-grid div {
  border-radius: 10px;
  background: var(--ui-soft, #f8fafc);
}

.zs-stat-grid strong,
.zs-plan-grid strong {
  color: var(--ui-red, #e11d48);
  font-size: clamp(24px, 3vw, 38px);
  line-height: 1;
}

.zs-creator-menu {
  padding: 10px;
  border: 1px solid var(--ui-line, #e5e7eb);
  border-radius: 12px;
  background: #fff;
}

.zs-content-metric {
  display: grid;
  justify-items: center;
  min-width: 76px;
  padding: 8px 10px;
  border-radius: 8px;
  background: var(--ui-soft, #f8fafc);
}

.zs-content-metric b {
  color: var(--ui-ink, #111827);
  font-size: 17px;
  line-height: 1;
}

.zs-content-metric span {
  margin: 3px 0 0;
  color: var(--ui-muted, #64748b);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.zs-plan-grid {
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
}

.zs-plan-grid article.featured {
  border-color: var(--ui-red, #e11d48);
  box-shadow: 0 18px 55px -42px rgba(15, 23, 42, .7);
}

.zs-artist-form,
#loginform {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.zs-auth-form,
#loginform {
  grid-template-columns: 1fr;
}

.zs-artist-form label,
#loginform p {
  display: grid;
  gap: 6px;
  margin: 0;
  color: var(--ui-ink, #111827);
  font-size: 13px;
  font-weight: 800;
}

.zs-check {
  grid-template-columns: auto 1fr;
  align-items: center;
}

.zs-check input {
  width: 18px;
  height: 18px;
}

.zs-artist-form input,
.zs-artist-form select,
.zs-artist-form textarea,
#loginform input[type="text"],
#loginform input[type="password"] {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--ui-line, #e5e7eb);
  border-radius: 8px;
  padding: 10px 12px;
  background: #fff;
  color: var(--ui-ink, #111827);
}

.zs-password-field {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: stretch;
}

.zs-password-field input {
  border-radius: 8px 0 0 8px !important;
}

.zs-password-field button {
  min-height: 44px;
  border: 1px solid var(--ui-line, #e5e7eb);
  border-left: 0;
  border-radius: 0 8px 8px 0;
  padding: 0 12px;
  background: var(--ui-soft, #f8fafc);
  color: var(--ui-ink, #111827);
  font-size: 12px;
  font-weight: 900;
}

.zs-artist-form textarea {
  min-height: 130px;
  resize: vertical;
}

.zs-artist-form textarea,
.zs-artist-form label:has(textarea),
.zs-track-builder,
.zs-form-actions,
.zs-check {
  grid-column: 1 / -1;
}

.zs-form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.zs-track-builder {
  display: grid;
  gap: 10px;
}

.zs-track-builder h3 {
  margin: 4px 0 0;
  font-size: 16px;
}

.zs-track-row {
  display: grid;
  grid-template-columns: 34px minmax(140px, 1fr) minmax(140px, 1fr) minmax(140px, 1fr) minmax(140px, 1fr);
  gap: 8px;
  align-items: center;
}

.zs-track-row span {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--ui-soft, #f8fafc);
  font-weight: 900;
}

.zs-artist-posts {
  display: grid;
  gap: 8px;
}

.zs-artist-posts article {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 12px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--ui-line, #e5e7eb);
}

.zs-artist-posts strong {
  display: block;
  overflow-wrap: anywhere;
}

.zs-artist-posts span {
  display: block;
  margin-top: 4px;
  color: var(--ui-muted, #64748b);
  font-size: 12px;
  font-weight: 800;
}

.zs-artist-posts a,
.zs-auth-note a {
  color: var(--ui-red, #e11d48);
  font-size: 12px;
  font-weight: 900;
}

.zs-artist-error {
  margin: 0;
  color: #b91c1c !important;
  font-weight: 800;
}

.zs-artist-success {
  margin: 0;
  color: #047857 !important;
  font-weight: 800;
}

@media (max-width: 860px) {
  .zs-dashboard-hero,
  .zs-artist-posts article,
  .zs-plan-grid,
  .zs-stat-grid {
    grid-template-columns: 1fr;
  }

  .zs-dashboard-actions {
    justify-content: stretch;
  }

  .zs-creator-menu {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .zs-dashboard-actions a,
  .zs-artist-form button,
  .login-submit input {
    width: 100%;
  }

  .zs-track-row {
    grid-template-columns: 30px minmax(0, 1fr);
  }

  .zs-track-row input {
    grid-column: 2;
  }

  .zs-form-actions {
    display: grid;
  }
}

@media (max-width: 719px) {
  .zs-artist-portal {
    gap: 12px;
    width: 100%;
    max-width: 100%;
  }

  .page .article-header h1,
  .page-header h1 {
    max-width: 100%;
    font-size: 28px !important;
    line-height: 1.08 !important;
    overflow-wrap: anywhere;
  }

  .zs-artist-hero h1,
  .zs-dashboard-hero h1 {
    font-size: 25px;
    line-height: 1.12;
    overflow-wrap: anywhere;
  }

  .zs-artist-hero p,
  .zs-dashboard-hero p {
    font-size: 14px;
    line-height: 1.5;
  }

  .zs-artist-form,
  #loginform {
    grid-template-columns: 1fr;
  }

  .zs-artist-hero,
  .zs-dashboard-hero,
  .zs-artist-panel,
  .zs-plan-grid article {
    border-radius: 10px;
  }

  .zs-dashboard-tabs {
    flex-wrap: nowrap;
  }

  .zs-creator-menu a {
    min-height: 40px;
    padding: 0 10px;
    font-size: 12px;
  }

  .zs-content-metric {
    justify-items: start;
    min-width: 0;
  }
}
