/* Shared visual pass for the production workspaces.
   The goal is a dense, human-designed audio tool: solid surfaces, restrained motion,
   and one functional accent instead of ornamental "AI" effects. */

body.mastering-reference {
  --bg-color: #f7f7fa;
  --bg: #f7f7fa;
  --sidebar-bg: #fff;
  --surface: #ffffff;
  --surface-2: #f5f2fa;
  --surface-hover: #f1edf7;
  --panel: #ffffff;
  --card: #ffffff;
  --text-main: #201b2d;
  --text: #201b2d;
  --text-muted: #6e667c;
  --muted: #6e667c;
  --border-light: #e4e0ea;
  --border: #e4e0ea;
  --border-strong: #e4e0ea;
  --accent: #7145c6;
  --accent-hover: #5d32af;
  --ai-gradient: #7145c6;
  background: #f7f7fa !important;
  color: #201b2d;
  font-family: Inter, "Helvetica Neue", Arial, sans-serif;
}

body.mastering-reference::before,
body.mastering-reference::after {
  display: none !important;
  content: none !important;
}

body.mastering-reference *,
body.mastering-reference *::before,
body.mastering-reference *::after {
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

body.mastering-reference .sidebar {
  background: #fff !important;
  border-color: #ffffff !important;
  box-shadow: none !important;
}

body.mastering-reference .main,
body.mastering-reference .main-content,
body.mastering-reference .main-scroll,
body.mastering-reference .shell {
  background: #f7f7fa !important;
}

body.mastering-reference .nav a,
body.mastering-reference .nav button,
body.mastering-reference .nav-item,
body.mastering-reference .cat-btn {
  border-radius: 999px !important;
  box-shadow: none !important;
}

body.mastering-reference .nav a.active,
body.mastering-reference .nav-item.active,
body.mastering-reference .cat-btn.active {
  background: #f5f2fa !important;
  color: #201b2d !important;
}

body.mastering-reference .nav a.active svg,
body.mastering-reference .nav-item.active svg,
body.mastering-reference .cat-btn.active {
  color: #7145c6 !important;
}

body.mastering-reference .panel,
body.mastering-reference .card,
body.mastering-reference .post-card,
body.mastering-reference .forum-sidebar,
body.mastering-reference .toolbar,
body.mastering-reference .modal-content,
body.mastering-reference .reference-card,
body.mastering-reference .style-card,
body.mastering-reference .bus-card,
body.mastering-reference .stem-card,
body.mastering-reference .upload-zone,
body.mastering-reference .drop-zone,
body.mastering-reference .export-box,
body.mastering-reference .result-card,
body.mastering-reference .thread-feedback-brief,
body.mastering-reference .workspace-row {
  background: #ffffff !important;
  background-image: none !important;
  border-color: #e4e0ea !important;
  border-radius: 8px !important;
  box-shadow: none !important;
}

body.mastering-reference h1,
body.mastering-reference h2,
body.mastering-reference h3,
body.mastering-reference .page-header h1,
body.mastering-reference .header h1 {
  font-family: Inter, "Helvetica Neue", Arial, sans-serif !important;
  letter-spacing: -.025em !important;
}

body.mastering-reference .page-header h1,
body.mastering-reference .header h1 {
  font-size: clamp(1.75rem, 4vw, 2.5rem) !important;
  line-height: 1.08 !important;
}

body.mastering-reference .btn,
body.mastering-reference button,
body.mastering-reference input,
body.mastering-reference select,
body.mastering-reference textarea {
  font-family: inherit;
}

body.mastering-reference .btn,
body.mastering-reference .text-input,
body.mastering-reference .apple-select,
body.mastering-reference .select {
  border-radius: 6px !important;
  box-shadow: none !important;
}

body.mastering-reference .btn.primary,
body.mastering-reference .accent-btn,
body.mastering-reference button.primary {
  background: #7145c6 !important;
  background-image: none !important;
  border-color: #7145c6 !important;
  color: #ffffff !important;
  box-shadow: none !important;
}

body.mastering-reference .btn.primary:hover,
body.mastering-reference .accent-btn:hover,
body.mastering-reference button.primary:hover {
  background: #5d32af !important;
  border-color: #5d32af !important;
  transform: none !important;
}

body.mastering-reference .premium-field-label {
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  padding: 2px 7px;
  border: 1px solid #397c50;
  border-radius: 999px;
  color: #7ee2a1;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}

body.mastering-reference .premium-field-help {
  display: block;
  margin-top: 8px;
  color: #6e667c;
  font-size: 12px;
  line-height: 1.45;
}

body.mastering-reference .premium-locked {
  opacity: .68;
}

body.mastering-reference .premium-locked :disabled {
  cursor: not-allowed;
}

.page-community .premium-community-tools {
  display: grid;
  gap: 8px;
  margin: -12px 0 20px;
}

.page-community .premium-community-tools .btn {
  width: 100%;
  justify-content: flex-start;
}

.page-community .modal-title-row,
.page-community .workspace-row,
.page-community .workspace-row-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.page-community .modal-title-row {
  margin-bottom: 20px;
}

.page-community .modal-title-row h2 {
  margin: 8px 0 0;
  font-size: 24px;
}

.page-community .community-workspace-items {
  display: grid;
  gap: 10px;
}

.page-community .workspace-row {
  width: 100%;
  padding: 14px;
  color: inherit;
  text-align: left;
}

.page-community .workspace-row h3,
.page-community .workspace-row p {
  margin: 6px 0 0;
}

.page-community .workspace-row p,
.page-community .workspace-empty {
  color: #6e667c;
  font-size: 13px;
}

.page-community .workspace-row-button {
  cursor: pointer;
}

.page-community .thread-feedback-brief {
  margin: 0 0 24px;
  padding: 16px;
  line-height: 1.55;
}

.page-community .thread-feedback-brief p,
.page-community .thread-feedback-brief ol {
  margin: 8px 0 0 20px;
}

.page-community .premium-thread-action,
.page-community .premium-digest-control {
  min-height: 40px;
}

.page-community .premium-digest-control {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #6e667c;
  font-size: 12px;
}

.page-community .accepted-comment {
  border-left: 3px solid #7145c6 !important;
}

.page-community .accept-answer {
  margin-top: 10px;
  min-height: 32px;
  padding: 6px 10px;
  font-size: 11px;
}

.page-community .danger {
  color: #f3727f !important;
}

.page-setup-linktree .topbar,
.page-setup-linktree .savebar,
.page-setup-linktree .phone,
.page-setup-linktree .theme-swatch,
.page-setup-linktree .preview-avatar,
.page-setup-linktree .link-row,
.page-setup-linktree .card {
  background: #ffffff !important;
  background-image: none !important;
  border-color: #e4e0ea !important;
  box-shadow: none !important;
}

.page-setup-linktree .page-head h1 {
  font-size: clamp(1.9rem, 5vw, 2.75rem) !important;
  line-height: 1.05 !important;
  letter-spacing: -.035em !important;
}

.page-setup-linktree .brand-mark,
.page-setup-linktree .button.primary {
  background: #7145c6 !important;
  background-image: none !important;
  box-shadow: none !important;
}

.page-setup-linktree input:disabled,
.page-setup-linktree select:disabled {
  cursor: not-allowed;
  opacity: .55;
}

@media (prefers-reduced-motion: reduce) {
  body.mastering-reference *,
  body.mastering-reference *::before,
  body.mastering-reference *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

@media (max-width: 760px) {
  .page-community .workspace-row,
  .page-community .modal-title-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .page-community .workspace-row-actions {
    width: 100%;
  }

  .page-community .workspace-row-actions .btn {
    flex: 1;
  }
}
