.qlive-dashboard,
.qlive-dashboard-notice {
  --qlive-primary: #665fc2;
  --qlive-primary-dark: #594db4;
  --qlive-accent: #fb26fc;
  --qlive-text: #171717;
  --qlive-muted: #737373;
  --qlive-border: #e5e5e5;
  --qlive-subtle: #f8f7ff;
  box-sizing: border-box;
  font-family: Inter, Arial, sans-serif;
}

.qlive-dashboard *,
.qlive-dashboard *::before,
.qlive-dashboard *::after {
  box-sizing: inherit;
}

.qlive-dashboard {
  background:
    radial-gradient(
      circle at 92% 8%,
      rgba(251, 38, 252, 0.08),
      transparent 28%
    ),
    linear-gradient(180deg, #fff 0%, var(--qlive-subtle) 100%);
  border: 1px solid rgba(102, 95, 194, 0.14);
  border-radius: 20px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  color: var(--qlive-text);
  margin: 48px auto;
  max-width: 1180px;
  overflow: hidden;
  padding: 48px;
}

.qlive-dashboard__header,
.qlive-dashboard__actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.qlive-dashboard__header {
  border-bottom: 1px solid rgba(102, 95, 194, 0.14);
  padding-bottom: 32px;
}

.qlive-dashboard__header h2,
.qlive-dashboard--locked h2 {
  color: var(--qlive-text);
  font-family: Poppins, Arial, sans-serif;
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin: 4px 0 8px;
}

.qlive-dashboard__header p {
  margin: 0;
}

.qlive-dashboard__eyebrow,
.qlive-dashboard__card h3 {
  color: var(--qlive-primary);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1.3;
}

.qlive-dashboard__eyebrow {
  text-transform: uppercase;
}

.qlive-dashboard__status {
  background: #eefbf3;
  border: 1px solid rgba(34, 197, 94, 0.32);
  border-radius: 999px;
  color: #16783a;
  font-size: 14px;
  font-weight: 600;
  padding: 8px 16px;
}

.qlive-dashboard__status::before {
  background: #22c55e;
  border-radius: 50%;
  content: "";
  display: inline-block;
  height: 8px;
  margin-right: 8px;
  width: 8px;
}

.qlive-dashboard__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  margin: 40px 0;
}

.qlive-dashboard__card {
  background: #fff;
  border: 1px solid var(--qlive-border);
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
  min-height: 156px;
  padding: 32px;
  position: relative;
  transition:
    box-shadow 0.2s ease,
    transform 0.2s ease;
}

.qlive-dashboard__card::before {
  background: linear-gradient(
    135deg,
    var(--qlive-primary) 0%,
    var(--qlive-accent) 100%
  );
  border-radius: 4px;
  content: "";
  height: 4px;
  left: 32px;
  position: absolute;
  top: 0;
  width: 48px;
}

.qlive-dashboard__card:hover {
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

.qlive-dashboard__card h3 {
  margin: 8px 0 16px;
}

.qlive-dashboard__card p {
  color: #404040;
  font-size: 16px;
  line-height: 1.55;
  margin: 0;
}

.qlive-dashboard__actions {
  justify-content: flex-start;
}

.qlive-dashboard__actions a {
  background: var(--qlive-primary);
  border: 2px solid var(--qlive-primary);
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.3;
  padding: 14px 24px;
  text-decoration: none;
  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.qlive-dashboard__actions a:hover,
.qlive-dashboard__actions a:focus-visible {
  background: var(--qlive-primary-dark);
  border-color: var(--qlive-primary-dark);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
  color: #fff;
}

.qlive-dashboard__actions a:last-child {
  background: #fff;
  color: var(--qlive-primary);
}

.qlive-dashboard__actions a:last-child:hover,
.qlive-dashboard__actions a:last-child:focus-visible {
  background: var(--qlive-subtle);
  color: var(--qlive-primary-dark);
}

.qlive-dashboard__notice,
.qlive-dashboard-notice {
  background: var(--qlive-subtle);
  border: 1px solid rgba(102, 95, 194, 0.18);
  border-left: 4px solid var(--qlive-primary);
  border-radius: 12px;
  color: #525252;
  font-size: 14px;
  line-height: 1.55;
  margin-top: 32px;
  padding: 16px 20px;
}

.qlive-dashboard--locked {
  max-width: 760px;
}

.qlive-dashboard--locked p {
  color: var(--qlive-muted);
  font-size: 16px;
  line-height: 1.55;
}

.qlive-dashboard--locked .qlive-dashboard__actions {
  margin-top: 32px;
}

@media (max-width: 900px) {
  .qlive-dashboard {
    margin: 40px 24px;
    padding: 40px;
  }

  .qlive-dashboard__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .qlive-dashboard {
    border-radius: 16px;
    margin: 24px 20px;
    padding: 24px;
  }

  .qlive-dashboard__header,
  .qlive-dashboard__actions {
    align-items: flex-start;
    flex-direction: column;
  }

  .qlive-dashboard__grid {
    grid-template-columns: 1fr;
    margin: 32px 0;
  }

  .qlive-dashboard__card {
    min-height: 0;
    padding: 24px;
  }

  .qlive-dashboard__actions a {
    text-align: center;
    width: 100%;
  }
}

/* QUA-105: read-only UMP subscription catalogue. */
.qlive-dashboard-subscriptions {
  padding: var(--bb-rl-space-400, 32px);
}

.qlive-dashboard-subscriptions__header {
  max-width: 760px;
}

.qlive-dashboard-subscriptions__header h2 {
  color: var(--qlive-text);
  font-family: Poppins, Arial, sans-serif;
  font-size: clamp(26px, 3vw, 36px);
  line-height: 1.18;
  margin: 6px 0 10px;
}

.qlive-dashboard-subscriptions__header p,
.qlive-dashboard-subscriptions__summary,
.qlive-dashboard-subscriptions__features,
.qlive-dashboard-subscriptions__empty {
  color: var(--qlive-muted);
}

.qlive-dashboard-subscriptions__notice {
  background: color-mix(in srgb, var(--qlive-primary) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--qlive-primary) 45%, var(--qlive-border));
  border-radius: var(--qlive-control-radius);
  color: var(--qlive-text);
  margin: var(--bb-rl-space-300, 24px) 0 0;
  padding: 12px 14px;
}

.qlive-dashboard-subscriptions__grid {
  display: grid;
  gap: var(--bb-rl-space-300, 20px);
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: var(--bb-rl-space-300, 24px);
}

.qlive-dashboard-subscriptions__card {
  background: var(--qlive-surface-secondary);
  border: 1px solid var(--qlive-border);
  border-radius: var(--qlive-radius);
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 26px;
}

.qlive-dashboard-subscriptions__card.is-current {
  border-color: var(--qlive-primary);
  box-shadow: inset 0 2px 0 var(--qlive-primary);
}

.qlive-dashboard-subscriptions__card-header {
  align-items: flex-start;
  display: flex;
  gap: 12px;
  justify-content: space-between;
}

.qlive-dashboard-subscriptions__card h3 {
  color: var(--qlive-text);
  font-family: Poppins, Arial, sans-serif;
  font-size: 20px;
  line-height: 1.35;
  margin: 0;
}

.qlive-dashboard-subscriptions__current {
  background: color-mix(in srgb, #56c785 14%, transparent);
  border: 1px solid color-mix(in srgb, #56c785 50%, transparent);
  border-radius: var(--bb-rl-radius-full, 99px);
  color: #8bd3a8;
  flex: 0 0 auto;
  font-size: 11px;
  font-weight: 600;
  padding: 5px 8px;
}

.qlive-dashboard-subscriptions__price {
  align-items: baseline;
  display: flex;
  gap: 7px;
  margin-top: 22px;
}

.qlive-dashboard-subscriptions__price strong {
  color: var(--qlive-text);
  font-size: 34px;
  font-weight: 600;
}

.qlive-dashboard-subscriptions__price span {
  color: var(--qlive-muted);
  font-size: 13px;
}

.qlive-dashboard-subscriptions__summary {
  line-height: 1.6;
  margin: 20px 0 0;
}

.qlive-dashboard-subscriptions__features-heading {
  border-top: 1px solid var(--qlive-border);
  color: var(--qlive-text);
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-top: 22px;
  padding-top: 18px;
}

.qlive-dashboard-subscriptions__features {
  display: grid;
  gap: 10px;
  list-style: none;
  margin: 12px 0 28px;
  padding: 0;
}

.qlive-dashboard-subscriptions__features li {
  line-height: 1.5;
  padding-left: 20px;
  position: relative;
}

.qlive-dashboard-subscriptions__features li::before {
  color: #8bd3a8;
  content: "✓";
  left: 0;
  position: absolute;
  top: 0;
}

.qlive-dashboard-subscriptions__action {
  background: transparent;
  border: 1px solid var(--qlive-border);
  border-radius: var(--qlive-control-radius);
  color: var(--qlive-muted);
  cursor: not-allowed;
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-top: auto;
  padding: 10px 12px;
  text-align: center;
}

.qlive-dashboard-subscriptions__action.is-current {
  background: var(--qlive-primary);
  border-color: var(--qlive-primary);
  color: #fff;
}

.qlive-dashboard-subscriptions__empty {
  background: var(--qlive-surface-secondary);
  border: 1px solid var(--qlive-border);
  border-radius: var(--qlive-radius);
  margin-top: var(--bb-rl-space-300, 24px);
  padding: var(--bb-rl-space-300, 24px);
}

.qlive-dashboard-subscriptions__empty p {
  margin: 0;
}

@media (max-width: 1100px) {
  .qlive-dashboard-subscriptions__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .qlive-dashboard-subscriptions {
    padding: var(--bb-rl-space-200, 16px);
  }

  .qlive-dashboard-subscriptions__grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .qlive-dashboard__card,
  .qlive-dashboard__actions a {
    transition: none;
  }
}

/* Phase 2: internal dashboard shell and view navigation. */
.qlive-dashboard-shell {
  --qlive-primary: #665fc2;
  --qlive-primary-dark: #594db4;
  --qlive-text: #171717;
  --qlive-muted: #737373;
  --qlive-border: #e5e5e5;
  --qlive-subtle: #f8f7ff;
  box-sizing: border-box;
  font-family: Inter, Arial, sans-serif;
  margin: 48px auto;
  max-width: 1180px;
}

.qlive-dashboard-shell *,
.qlive-dashboard-shell *::before,
.qlive-dashboard-shell *::after {
  box-sizing: inherit;
}

.qlive-dashboard-shell > .qlive-dashboard {
  margin: 24px 0 0;
}

.qlive-dashboard-nav {
  align-items: center;
  border-bottom: 1px solid rgba(102, 95, 194, 0.14);
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 0 0 16px;
  scrollbar-width: thin;
}

.qlive-dashboard-nav__link {
  border-radius: 999px;
  color: var(--qlive-muted);
  flex: 0 0 auto;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
  padding: 9px 14px;
  text-decoration: none;
  transition:
    background 0.2s ease,
    color 0.2s ease;
}

.qlive-dashboard-nav__link:hover,
.qlive-dashboard-nav__link:focus-visible {
  background: var(--qlive-subtle);
  color: var(--qlive-primary-dark);
}

.qlive-dashboard-nav__link.is-active {
  background: var(--qlive-primary);
  color: #fff;
}

.qlive-dashboard-view {
  background: #fff;
  border: 1px solid rgba(102, 95, 194, 0.14);
  border-radius: 20px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  color: var(--qlive-text);
  margin-top: 24px;
  padding: 48px;
}

.qlive-dashboard-view h2 {
  color: var(--qlive-text);
  font-family: Poppins, Arial, sans-serif;
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin: 0 0 12px;
}

.qlive-dashboard-view p {
  color: var(--qlive-muted);
  font-size: 16px;
  line-height: 1.55;
  margin: 0;
}

@media (max-width: 900px) {
  .qlive-dashboard-shell {
    margin: 40px 24px;
  }

  .qlive-dashboard-shell > .qlive-dashboard {
    margin: 24px 0 0;
  }

  .qlive-dashboard-view {
    padding: 40px;
  }
}

@media (max-width: 560px) {
  .qlive-dashboard-shell {
    margin: 24px 20px;
  }

  .qlive-dashboard-shell > .qlive-dashboard {
    margin: 24px 0 0;
  }

  .qlive-dashboard-view {
    border-radius: 16px;
    padding: 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .qlive-dashboard-nav__link {
    transition: none;
  }
}

/* Phase 2B: My Account view. */
.qlive-dashboard-account__header {
  align-items: flex-start;
  display: flex;
  gap: 24px;
  justify-content: space-between;
  margin-bottom: 32px;
}

.qlive-dashboard-account__header h2 {
  margin-bottom: 8px;
}

.qlive-dashboard-account__eyebrow {
  color: var(--qlive-primary);
  font-size: 13px !important;
  font-weight: 700;
  letter-spacing: 0.06em;
  margin-bottom: 6px !important;
  text-transform: uppercase;
}

.qlive-dashboard-account__status {
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  padding: 8px 14px;
}

.qlive-dashboard-account__status.is-active {
  background: #eefbf3;
  border: 1px solid rgba(34, 197, 94, 0.32);
  color: #16783a;
}

.qlive-dashboard-account__status.is-inactive {
  background: #fafafa;
  border: 1px solid var(--qlive-border);
  color: #737373;
}

.qlive-dashboard-account__grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.qlive-dashboard-account__field {
  background: var(--qlive-subtle);
  border: 1px solid rgba(102, 95, 194, 0.12);
  border-radius: 14px;
  padding: 20px;
}

.qlive-dashboard-account__field span,
.qlive-dashboard-account__membership dt {
  color: var(--qlive-muted);
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
}

.qlive-dashboard-account__field strong,
.qlive-dashboard-account__membership strong {
  color: var(--qlive-text);
  font-size: 16px;
  font-weight: 700;
}

.qlive-dashboard-account__memberships {
  border-top: 1px solid rgba(102, 95, 194, 0.14);
  margin-top: 32px;
  padding-top: 32px;
}

.qlive-dashboard-account__section-heading h3 {
  color: var(--qlive-text);
  font-family: Poppins, Arial, sans-serif;
  font-size: 22px;
  margin: 0 0 6px;
}

.qlive-dashboard-account__section-heading p {
  margin-bottom: 20px;
}

.qlive-dashboard-account__membership-list {
  display: grid;
  gap: 16px;
}

.qlive-dashboard-account__membership {
  border: 1px solid var(--qlive-border);
  border-radius: 14px;
  padding: 20px;
}

.qlive-dashboard-account__membership dl {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 18px 0 0;
}

.qlive-dashboard-account__membership dl div,
.qlive-dashboard-account__membership dd,
.qlive-dashboard-account__membership dt {
  margin: 0;
}

.qlive-dashboard-account__membership dd {
  color: var(--qlive-text);
  font-size: 14px;
}

.qlive-dashboard-account__empty {
  background: var(--qlive-subtle);
  border-radius: 12px;
  padding: 16px 18px;
}

.qlive-dashboard-account__actions {
  margin-top: 32px;
}

.qlive-dashboard-account__actions a {
  background: var(--qlive-primary);
  border-radius: 12px;
  color: #fff;
  display: inline-block;
  font-size: 15px;
  font-weight: 700;
  padding: 12px 18px;
  text-decoration: none;
}

.qlive-dashboard-account__actions a:hover,
.qlive-dashboard-account__actions a:focus-visible {
  background: var(--qlive-primary-dark);
  color: #fff;
}

@media (max-width: 700px) {
  .qlive-dashboard-account__header {
    flex-direction: column;
  }

  .qlive-dashboard-account__grid,
  .qlive-dashboard-account__membership dl {
    grid-template-columns: 1fr;
  }
}

/* Phase 2B.1: dark account view and edit form. */
.qlive-dashboard-view.qlive-dashboard-account {
  --qlive-account-bg: #202020;
  --qlive-account-panel: #292929;
  --qlive-account-border: rgba(255, 255, 255, 0.09);
  --qlive-account-text: #f5f5f5;
  --qlive-account-muted: #a3a3a3;
  background: var(--qlive-account-bg);
  border-color: var(--qlive-account-border);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.22);
  color: var(--qlive-account-text);
}

.qlive-dashboard-account h2,
.qlive-dashboard-account h3,
.qlive-dashboard-account__field strong,
.qlive-dashboard-account__membership strong,
.qlive-dashboard-account__membership dd {
  color: var(--qlive-account-text);
}

.qlive-dashboard-account p,
.qlive-dashboard-account__field span,
.qlive-dashboard-account__membership dt,
.qlive-dashboard-account__form label span {
  color: var(--qlive-account-muted);
}

.qlive-dashboard-account__field,
.qlive-dashboard-account__membership,
.qlive-dashboard-account__form,
.qlive-dashboard-account__empty {
  background: var(--qlive-account-panel);
  border: 1px solid var(--qlive-account-border);
}

.qlive-dashboard-account__memberships {
  border-top-color: var(--qlive-account-border);
}

.qlive-dashboard-account__header-actions {
  align-items: center;
  display: flex;
  gap: 12px;
}

.qlive-dashboard-account__edit-link {
  border: 1px solid var(--qlive-account-border);
  border-radius: 10px;
  color: #d4d4d4;
  font-size: 14px;
  font-weight: 700;
  padding: 8px 12px;
  text-decoration: none;
}

.qlive-dashboard-account__edit-link:hover,
.qlive-dashboard-account__edit-link:focus-visible {
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
}

.qlive-dashboard-account__status.is-active {
  background: rgba(34, 197, 94, 0.1);
  border-color: rgba(34, 197, 94, 0.32);
  color: #86efac;
}

.qlive-dashboard-account__status.is-inactive {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--qlive-account-border);
  color: var(--qlive-account-muted);
}

.qlive-dashboard-account__form {
  border-radius: 14px;
  margin-top: 24px;
  padding: 24px;
}

.qlive-dashboard-account__form h3 {
  font-family: Poppins, Arial, sans-serif;
  font-size: 20px;
  margin: 0 0 6px;
}

.qlive-dashboard-account__form > p {
  margin-bottom: 20px;
}

.qlive-dashboard-account__form-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.qlive-dashboard-account__form label span {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 7px;
}

.qlive-dashboard-account__form input {
  background: #181818;
  border: 1px solid var(--qlive-account-border);
  border-radius: 10px;
  color: var(--qlive-account-text);
  font: inherit;
  min-height: 44px;
  padding: 10px 12px;
  width: 100%;
}

.qlive-dashboard-account__form input:focus {
  border-color: #665fc2;
  box-shadow: 0 0 0 3px rgba(102, 95, 194, 0.18);
  outline: none;
}

.qlive-dashboard-account__form-actions {
  align-items: center;
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 20px;
}

.qlive-dashboard-account__form-actions a,
.qlive-dashboard-account__form-actions button {
  border-radius: 10px;
  font: inherit;
  font-weight: 700;
  padding: 10px 16px;
}

.qlive-dashboard-account__form-actions a {
  color: #d4d4d4;
  text-decoration: none;
}

.qlive-dashboard-account__form-actions button {
  background: #665fc2;
  border: 0;
  color: #fff;
  cursor: pointer;
}

.qlive-dashboard-account__form-actions button:hover,
.qlive-dashboard-account__form-actions button:focus-visible {
  background: #594db4;
}

.qlive-dashboard-account__notice {
  border-radius: 10px;
  margin: 0 0 24px !important;
  padding: 12px 14px;
}

.qlive-dashboard-account__notice.is-success {
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.25);
  color: #bbf7d0;
}

.qlive-dashboard-account__notice.is-error {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.25);
  color: #fecaca;
}

@media (max-width: 700px) {
  .qlive-dashboard-account__header-actions,
  .qlive-dashboard-account__form-actions {
    align-items: stretch;
    flex-direction: column;
    width: 100%;
  }

  .qlive-dashboard-account__form-grid {
    grid-template-columns: 1fr;
  }

  .qlive-dashboard-account__edit-link,
  .qlive-dashboard-account__form-actions a,
  .qlive-dashboard-account__form-actions button {
    text-align: center;
    width: 100%;
  }
}

/* Phase 2B.2: dark My Account, UMP profile fields and password management. */
.qlive-dashboard-shell .qlive-dashboard-view.qlive-dashboard-account {
  --qlive-text: #f5f5f5;
  --qlive-muted: #a3a3a3;
  --qlive-border: rgba(255, 255, 255, 0.09);
  --qlive-subtle: #262626;
  background: #242425;
  border-color: var(--qlive-border);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18);
  color: var(--qlive-text);
}

.qlive-dashboard-shell .qlive-dashboard-account h2,
.qlive-dashboard-shell .qlive-dashboard-account h3,
.qlive-dashboard-shell .qlive-dashboard-account strong,
.qlive-dashboard-shell .qlive-dashboard-account dd {
  color: var(--qlive-text);
}

.qlive-dashboard-shell .qlive-dashboard-account p,
.qlive-dashboard-shell .qlive-dashboard-account__field span,
.qlive-dashboard-shell .qlive-dashboard-account__membership dt,
.qlive-dashboard-shell .qlive-dashboard-account__form label span,
.qlive-dashboard-account__readonly-grid span {
  color: var(--qlive-muted);
}

.qlive-dashboard-account__header-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.qlive-dashboard-account__edit,
.qlive-dashboard-account__form-actions a,
.qlive-dashboard-account__form-actions button,
.qlive-dashboard-account__actions a {
  border-radius: 10px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
  padding: 10px 14px;
  text-decoration: none;
}

.qlive-dashboard-account__edit,
.qlive-dashboard-account__form-actions a {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #e5e5e5;
}

.qlive-dashboard-account__edit:hover,
.qlive-dashboard-account__edit:focus-visible,
.qlive-dashboard-account__form-actions a:hover,
.qlive-dashboard-account__form-actions a:focus-visible {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}

.qlive-dashboard-account__section + .qlive-dashboard-account__memberships,
.qlive-dashboard-account__memberships,
.qlive-dashboard-account__security {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  margin-top: 32px;
  padding-top: 32px;
}

.qlive-dashboard-shell .qlive-dashboard-account__field,
.qlive-dashboard-shell .qlive-dashboard-account__membership,
.qlive-dashboard-shell .qlive-dashboard-account__empty,
.qlive-dashboard-account__form,
.qlive-dashboard-account__readonly-grid > div {
  background: #262626;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.qlive-dashboard-account__grid--details {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.qlive-dashboard-account__membership-title {
  align-items: center;
  display: flex;
  gap: 16px;
  justify-content: space-between;
}

.qlive-dashboard-account__membership-title span {
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.24);
  border-radius: 999px;
  color: #86efac;
  font-size: 12px;
  font-weight: 700;
  padding: 5px 9px;
}

.qlive-dashboard-account__form {
  border-radius: 14px;
  padding: 20px;
}

.qlive-dashboard-account__readonly-grid,
.qlive-dashboard-account__form-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.qlive-dashboard-account__readonly-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 16px;
}

.qlive-dashboard-account__readonly-grid > div {
  border-radius: 12px;
  padding: 14px 16px;
}

.qlive-dashboard-account__readonly-grid span,
.qlive-dashboard-account__readonly-grid strong,
.qlive-dashboard-account__form label span {
  display: block;
}

.qlive-dashboard-account__readonly-grid span,
.qlive-dashboard-account__form label span {
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 7px;
}

.qlive-dashboard-account__form input,
.qlive-dashboard-account__form textarea {
  background: #1b1b1b;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  color: #f5f5f5;
  font: inherit;
  outline: none;
  padding: 11px 12px;
  width: 100%;
}

.qlive-dashboard-account__form input:focus,
.qlive-dashboard-account__form textarea:focus {
  border-color: #665fc2;
  box-shadow: 0 0 0 3px rgba(102, 95, 194, 0.18);
}

.qlive-dashboard-account__form-actions {
  align-items: center;
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 18px;
}

.qlive-dashboard-account__form-actions button,
.qlive-dashboard-account__actions a {
  background: #665fc2;
  border: 1px solid #665fc2;
  color: #fff;
  cursor: pointer;
}

.qlive-dashboard-account__form-actions button:hover,
.qlive-dashboard-account__form-actions button:focus-visible,
.qlive-dashboard-account__actions a:hover,
.qlive-dashboard-account__actions a:focus-visible {
  background: #594db4;
  border-color: #594db4;
  color: #fff;
}

.qlive-dashboard-account__notice {
  border-radius: 10px;
  margin: 0 0 20px;
  padding: 12px 14px;
}

.qlive-dashboard-account__notice.is-success {
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.24);
  color: #bbf7d0 !important;
}

.qlive-dashboard-account__notice.is-error {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.24);
  color: #fecaca !important;
}

.qlive-dashboard-account__security .qlive-dashboard-account__form {
  margin-top: 18px;
}

.qlive-dashboard-account__form-grid--password {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (max-width: 900px) {
  .qlive-dashboard-account__readonly-grid,
  .qlive-dashboard-account__form-grid--password {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .qlive-dashboard-account__header,
  .qlive-dashboard-account__membership-title {
    align-items: flex-start;
    flex-direction: column;
  }

  .qlive-dashboard-account__header-actions {
    justify-content: flex-start;
  }

  .qlive-dashboard-account__form-grid,
  .qlive-dashboard-account__grid--details,
  .qlive-dashboard-account__membership dl {
    grid-template-columns: 1fr;
  }
}

/* Phase 2C: dark Overview view. */
.qlive-dashboard-shell .qlive-dashboard-view.qlive-dashboard-overview {
  --qlive-overview-bg: #242425;
  --qlive-overview-panel: #2b2b2d;
  --qlive-overview-panel-soft: #262627;
  --qlive-overview-border: rgba(255, 255, 255, 0.08);
  --qlive-overview-text: #f5f5f5;
  --qlive-overview-muted: #a3a3a3;
  background: var(--qlive-overview-bg);
  border-color: var(--qlive-overview-border);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18);
  color: var(--qlive-overview-text);
}

.qlive-dashboard-overview__header {
  align-items: flex-start;
  display: flex;
  gap: 24px;
  justify-content: space-between;
  margin-bottom: 28px;
}

.qlive-dashboard-overview__header h2,
.qlive-dashboard-overview__quick h3 {
  color: var(--qlive-overview-text);
}

.qlive-dashboard-overview__header h2 {
  margin-bottom: 8px;
}

.qlive-dashboard-overview__eyebrow,
.qlive-dashboard-overview__label {
  color: var(--qlive-primary);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.qlive-dashboard-overview__eyebrow {
  margin-bottom: 6px !important;
}

.qlive-dashboard-overview__member-id,
.qlive-dashboard-overview__membership p,
.qlive-dashboard-overview__card p,
.qlive-dashboard-overview__quick p {
  color: var(--qlive-overview-muted) !important;
}

.qlive-dashboard-overview__status {
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.24);
  border-radius: 999px;
  color: #86efac;
  font-size: 14px;
  font-weight: 700;
  padding: 8px 14px;
}

.qlive-dashboard-overview__membership {
  align-items: center;
  background: var(--qlive-overview-panel-soft);
  border: 1px solid var(--qlive-overview-border);
  border-radius: 14px;
  display: flex;
  gap: 24px;
  justify-content: space-between;
  padding: 20px;
}

.qlive-dashboard-overview__membership strong,
.qlive-dashboard-overview__card strong {
  color: var(--qlive-overview-text);
  display: block;
  font-family: Poppins, Arial, sans-serif;
  font-size: 19px;
  font-weight: 600;
  margin-top: 7px;
}

.qlive-dashboard-overview__membership p {
  font-size: 14px;
  margin-top: 5px;
}

.qlive-dashboard-overview__membership a,
.qlive-dashboard-overview__card a,
.qlive-dashboard-overview__quick-links a {
  border-radius: 10px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.qlive-dashboard-overview__membership a {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #e5e5e5;
  flex: 0 0 auto;
  padding: 10px 14px;
}

.qlive-dashboard-overview__membership a:hover,
.qlive-dashboard-overview__membership a:focus-visible {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}

.qlive-dashboard-overview__grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 16px;
}

.qlive-dashboard-overview__card {
  background: var(--qlive-overview-panel);
  border: 1px solid var(--qlive-overview-border);
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  min-height: 220px;
  padding: 20px;
}

.qlive-dashboard-overview__card-heading {
  margin-bottom: 14px;
}

.qlive-dashboard-overview__card p {
  font-size: 14px;
  margin-bottom: 20px;
}

.qlive-dashboard-overview__card a {
  color: #c7c3ff;
  margin-top: auto;
  width: fit-content;
}

.qlive-dashboard-overview__card a:hover,
.qlive-dashboard-overview__card a:focus-visible {
  color: #fff;
}

.qlive-dashboard-overview__quick {
  align-items: center;
  border-top: 1px solid var(--qlive-overview-border);
  display: flex;
  gap: 24px;
  justify-content: space-between;
  margin-top: 32px;
  padding-top: 28px;
}

.qlive-dashboard-overview__quick h3 {
  font-family: Poppins, Arial, sans-serif;
  font-size: 20px;
  margin: 0 0 5px;
}

.qlive-dashboard-overview__quick p {
  font-size: 14px;
}

.qlive-dashboard-overview__quick-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.qlive-dashboard-overview__quick-links a {
  background: #665fc2;
  border: 1px solid #665fc2;
  color: #fff;
  padding: 10px 14px;
}

.qlive-dashboard-overview__quick-links a:last-child {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.12);
  color: #e5e5e5;
}

.qlive-dashboard-overview__quick-links a:hover,
.qlive-dashboard-overview__quick-links a:focus-visible {
  background: #594db4;
  border-color: #594db4;
  color: #fff;
}

.qlive-dashboard-overview__quick-links a:last-child:hover,
.qlive-dashboard-overview__quick-links a:last-child:focus-visible {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.16);
}

@media (max-width: 760px) {
  .qlive-dashboard-overview__header,
  .qlive-dashboard-overview__membership,
  .qlive-dashboard-overview__quick {
    align-items: flex-start;
    flex-direction: column;
  }

  .qlive-dashboard-overview__grid {
    grid-template-columns: 1fr;
  }

  .qlive-dashboard-overview__quick-links {
    justify-content: flex-start;
    width: 100%;
  }
}

@media (max-width: 560px) {
  .qlive-dashboard-overview__membership a,
  .qlive-dashboard-overview__quick-links,
  .qlive-dashboard-overview__quick-links a {
    text-align: center;
    width: 100%;
  }

  .qlive-dashboard-overview__card {
    min-height: 0;
  }
}

/* Phase 2D: visual parity with BuddyBoss ReadyLaunch. */
.qlive-dashboard-shell {
  --qlive-primary: var(--bb-rl-primary-color, #665fc2);
  --qlive-primary-dark: var(--bb-rl-primary-hover-color, #594db4);
  --qlive-text: var(--bb-rl-text-color, #f5f5f5);
  --qlive-muted: var(--bb-rl-text-secondary-color, #a3a3a3);
  --qlive-border: var(--bb-rl-border-secondary-color, #3d3d3d);
  --qlive-surface: var(--bb-rl-background-color, #242425);
  --qlive-surface-secondary: var(--bb-rl-background-secondary-color, #2f2f2f);
  --qlive-radius: var(--bb-rl-radius-lg, 12px);
  --qlive-control-radius: var(--bb-rl-radius-base, 8px);
}

.qlive-dashboard-view,
.qlive-dashboard-shell .qlive-dashboard-view.qlive-dashboard-overview,
.qlive-dashboard-shell .qlive-dashboard-view.qlive-dashboard-account,
.qlive-dashboard-shell > .qlive-dashboard {
  background: var(--qlive-surface);
  border: 1px solid var(--qlive-border);
  border-radius: var(--qlive-radius);
  box-shadow: none;
}

.qlive-dashboard-overview__membership,
.qlive-dashboard-overview__card,
.qlive-dashboard-account__field,
.qlive-dashboard-account__membership,
.qlive-dashboard-account__form,
.qlive-dashboard-account__empty,
.qlive-dashboard-account__readonly-grid > div {
  background: var(--qlive-surface-secondary);
  border: 1px solid var(--qlive-border);
  border-radius: var(--qlive-radius);
  box-shadow: none;
}

.qlive-dashboard-nav {
  border-bottom-color: var(--qlive-border);
}

.qlive-dashboard-nav__link {
  border-radius: var(--qlive-control-radius);
  color: var(--qlive-muted);
  font-weight: 500;
}

.qlive-dashboard-nav__link:hover,
.qlive-dashboard-nav__link:focus-visible {
  background: var(--qlive-surface-secondary);
  color: var(--qlive-text);
}

.qlive-dashboard-nav__link.is-active {
  background: var(--qlive-primary);
  color: #fff;
}

.qlive-dashboard-overview__membership a,
.qlive-dashboard-overview__quick-links a,
.qlive-dashboard-account__edit,
.qlive-dashboard-account__form-actions a,
.qlive-dashboard-account__form-actions button,
.qlive-dashboard-account__actions a,
.qlive-dashboard__actions a {
  border-radius: var(--qlive-control-radius);
  box-shadow: none;
  font-size: 14px;
  font-weight: 500;
  padding: 8px 12px;
}

.qlive-dashboard-overview__membership a,
.qlive-dashboard-account__edit,
.qlive-dashboard-account__form-actions a {
  background: transparent;
  border: 1px solid var(--qlive-border);
  color: var(--qlive-text);
}

.qlive-dashboard-overview__membership a:hover,
.qlive-dashboard-overview__membership a:focus-visible,
.qlive-dashboard-account__edit:hover,
.qlive-dashboard-account__edit:focus-visible,
.qlive-dashboard-account__form-actions a:hover,
.qlive-dashboard-account__form-actions a:focus-visible {
  background: var(--qlive-surface-secondary);
  border-color: var(--qlive-border);
  color: var(--qlive-text);
}

.qlive-dashboard-account__form input,
.qlive-dashboard-account__form textarea {
  background: var(--qlive-surface);
  border: 1px solid var(--qlive-border);
  border-radius: var(--qlive-control-radius);
  box-shadow: none;
  color: var(--qlive-text);
}

.qlive-dashboard-account__form input:focus,
.qlive-dashboard-account__form textarea:focus {
  border-color: var(--qlive-primary);
  box-shadow: none;
}

.qlive-dashboard-overview__status,
.qlive-dashboard-account__status {
  border-radius: var(--bb-rl-radius-full, 99px);
  box-shadow: none;
}

.qlive-dashboard-overview__quick,
.qlive-dashboard-account__section + .qlive-dashboard-account__memberships,
.qlive-dashboard-account__memberships,
.qlive-dashboard-account__security {
  border-color: var(--qlive-border);
}

/* QUA-100: native ReadyLaunch forum activity layout. */
.qlive-dashboard-forum-activity__section
  + .qlive-dashboard-forum-activity__section {
  margin-top: var(--bb-rl-space-400, 32px);
}

.qlive-dashboard-forum-activity__section h3 {
  color: var(--qlive-text);
  font-family: inherit;
  font-size: 18px;
  font-weight: 600;
  margin: 0;
}

.qlive-dashboard-forum-activity__empty {
  background: var(--qlive-surface-secondary);
  border: 1px solid var(--qlive-border);
  border-radius: var(--qlive-radius);
  margin-top: var(--bb-rl-space-200, 16px);
  padding: var(--bb-rl-space-200, 16px);
}

.qlive-dashboard-forum-activity__empty p {
  color: var(--qlive-muted);
  margin: 0;
}

.qlive-dashboard-view .qlive-dashboard-forum-activity__view-all {
  margin: var(--bb-rl-space-200, 24px) 0 0;
}

/* QUA-94: latest Trading Report. */
.qlive-dashboard-trading-report__metrics {
  display: grid;
  gap: var(--bb-rl-space-200, 16px);
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: var(--bb-rl-space-300, 24px);
}

.qlive-dashboard-trading-report__metrics article,
.qlive-dashboard-trading-report__video,
.qlive-dashboard-trading-report__body,
.qlive-dashboard-trading-report__empty {
  background: var(--qlive-surface-secondary);
  border: 1px solid var(--qlive-border);
  border-radius: var(--qlive-radius);
}

.qlive-dashboard-trading-report__metrics article {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
  padding: var(--bb-rl-space-200, 16px);
}

.qlive-dashboard-trading-report__metrics span,
.qlive-dashboard-trading-report__section-heading > span {
  color: var(--qlive-muted);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.qlive-dashboard-trading-report__metrics strong {
  color: var(--qlive-text);
  font-size: 20px;
  font-weight: 600;
  overflow-wrap: anywhere;
}

.qlive-dashboard-trading-report__metrics strong.is-active {
  color: #8bd3a8;
}

.qlive-dashboard-trading-report__metrics strong.is-inactive {
  color: var(--qlive-muted);
}

.qlive-dashboard-trading-report__video,
.qlive-dashboard-trading-report__body {
  margin-top: var(--bb-rl-space-300, 24px);
  padding: var(--bb-rl-space-300, 24px);
}

.qlive-dashboard-trading-report__section-heading {
  margin-bottom: var(--bb-rl-space-200, 16px);
}

.qlive-dashboard-trading-report__section-heading h3 {
  color: var(--qlive-text);
  font-family: inherit;
  font-size: 20px;
  font-weight: 600;
  margin: 4px 0 0;
}

.qlive-dashboard-trading-report__video-frame {
  aspect-ratio: 16 / 9;
  background: #111;
  border-radius: var(--qlive-control-radius);
  overflow: hidden;
}

.qlive-dashboard-trading-report__video-frame iframe {
  border: 0;
  display: block;
  height: 100%;
  width: 100%;
}

.qlive-dashboard-trading-report__body details,
.qlive-dashboard-trading-report__body summary {
  color: var(--qlive-text);
}

.qlive-dashboard-trading-report__body summary {
  cursor: pointer;
  list-style: none;
}

.qlive-dashboard-trading-report__body summary::-webkit-details-marker {
  display: none;
}

.qlive-dashboard-trading-report__preview {
  color: var(--qlive-muted);
  display: block;
  font-size: 15px;
  font-weight: 400;
  letter-spacing: normal;
  line-height: 1.7;
  text-transform: none;
}

.qlive-dashboard-trading-report__toggle {
  color: #c7c3ff;
  display: inline-block;
  font-size: 14px;
  font-weight: 600;
  margin-top: 14px;
  text-transform: none;
}

.qlive-dashboard-trading-report__toggle .is-open,
.qlive-dashboard-trading-report__body details[open] .qlive-dashboard-trading-report__preview,
.qlive-dashboard-trading-report__body details[open] .qlive-dashboard-trading-report__toggle .is-closed {
  display: none;
}

.qlive-dashboard-trading-report__body details[open] .qlive-dashboard-trading-report__toggle .is-open {
  display: inline;
}

.qlive-dashboard-trading-report__content {
  border-top: 1px solid var(--qlive-border);
  color: var(--qlive-text);
  line-height: 1.75;
  margin-top: var(--bb-rl-space-200, 16px);
  padding-top: var(--bb-rl-space-200, 16px);
}

.qlive-dashboard-trading-report__content > :last-child,
.qlive-dashboard-trading-report__empty p {
  margin-bottom: 0;
}

.qlive-dashboard-trading-report__empty {
  margin-top: var(--bb-rl-space-300, 24px);
  padding: var(--bb-rl-space-300, 24px);
}

@media (max-width: 900px) {
  .qlive-dashboard-trading-report__metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .qlive-dashboard-trading-report__metrics {
    grid-template-columns: 1fr;
  }

  .qlive-dashboard-trading-report__video,
  .qlive-dashboard-trading-report__body {
    padding: var(--bb-rl-space-200, 16px);
  }
}
/* QUA-108: Dashboard label/status cleanup. */

/* Repeated product eyebrows add no information inside the native dashboard. */
.qlive-dashboard-overview__eyebrow,
.qlive-dashboard-account__eyebrow,
.qlive-dashboard__eyebrow {
  display: none !important;
}

/* Inactive access is a blocking state and should read clearly as such. */
.qlive-dashboard-account__status.is-inactive {
  background: rgba(239, 68, 68, 0.10) !important;
  border-color: rgba(239, 68, 68, 0.32) !important;
  color: #fca5a5 !important;
}
/* QUA-108: native dashboard navigation card. */

/*
 * The primary Q-Live navigation is a first-class surface, not a loose row
 * between cards. Use the same ReadyLaunch surface/border language as the
 * surrounding native dashboard panels.
 */
.qlive-dashboard-shell > .qlive-dashboard-nav {
  align-items: center;
  background: var(--qlive-surface);
  border: 1px solid var(--qlive-border);
  border-radius: var(--qlive-radius);
  box-shadow: none;
  display: flex;
  gap: 4px;
  min-height: 54px;
  overflow-x: auto;
  padding: 8px;
  scrollbar-width: thin;
}

/* Remove the old underline treatment now that the nav owns a card surface. */
.qlive-dashboard-shell > .qlive-dashboard-nav::after {
  display: none;
}

.qlive-dashboard-shell > .qlive-dashboard-nav .qlive-dashboard-nav__link {
  align-items: center;
  background: transparent;
  border: 1px solid transparent;
  border-radius: var(--qlive-control-radius);
  color: var(--qlive-muted);
  display: inline-flex;
  flex: 0 0 auto;
  font-size: 14px;
  font-weight: 600;
  justify-content: center;
  line-height: 1.3;
  min-height: 36px;
  padding: 8px 13px;
  text-decoration: none;
  transition:
    background 0.16s ease,
    border-color 0.16s ease,
    color 0.16s ease;
}

.qlive-dashboard-shell > .qlive-dashboard-nav .qlive-dashboard-nav__link:hover,
.qlive-dashboard-shell > .qlive-dashboard-nav .qlive-dashboard-nav__link:focus-visible {
  background: var(--qlive-surface-secondary);
  border-color: var(--qlive-border);
  color: var(--qlive-text);
}

.qlive-dashboard-shell > .qlive-dashboard-nav .qlive-dashboard-nav__link.is-active {
  background: var(--qlive-primary);
  border-color: var(--qlive-primary);
  color: #fff;
}

/* The content card belongs to the same group, but should still breathe. */
.qlive-dashboard-shell > .qlive-dashboard-nav + .qlive-dashboard-view,
.qlive-dashboard-shell > .qlive-dashboard-nav + .qlive-dashboard {
  margin-top: 16px;
}
/* QUA-108: balanced dashboard navigation spacing. */

/*
 * BuddyBoss member header -> navigation and navigation -> native content
 * should use the same vertical rhythm.
 */
.qlive-dashboard-shell {
  margin-top: 16px;
}

.qlive-dashboard-shell > .qlive-dashboard-nav + .qlive-dashboard-view,
.qlive-dashboard-shell > .qlive-dashboard-nav + .qlive-dashboard {
  margin-top: 16px;
}
/* QUA-95: Dashboard theme migration v1. */

/*
 * Compatibility aliases for historical Dashboard CSS. ReadyLaunch remains the
 * Light/Dark source of truth; these aliases let existing Dashboard selectors
 * consume the shared Q-Live theme without a parallel palette.
 */
.qlive-dashboard-shell {
  --qlive-primary: var(--qlive-accent);
  --qlive-primary-dark: var(--qlive-accent-hover);
  --qlive-muted: var(--qlive-text-muted);
  --qlive-subtle: var(--qlive-surface-subtle);
  --qlive-surface-secondary: var(--qlive-surface-subtle);
  --qlive-radius: var(--qlive-radius-lg);
  --qlive-control-radius: var(--qlive-radius-sm);
  font-family: var(--qlive-font-body);
}

/* Brand typography without changing Dashboard markup. */
.qlive-dashboard-shell :is(h1, h2, h3, h4, h5, h6) {
  font-family: var(--qlive-font-heading);
}

/*
 * The old Overview block carried a permanent dark palette. Map its local
 * variables onto the shared semantic theme so Light Mode is actually light.
 */
.qlive-dashboard-shell .qlive-dashboard-view.qlive-dashboard-overview {
  --qlive-overview-bg: var(--qlive-surface);
  --qlive-overview-panel: var(--qlive-surface-subtle);
  --qlive-overview-panel-soft: var(--qlive-surface-subtle);
  --qlive-overview-border: var(--qlive-border);
  --qlive-overview-text: var(--qlive-text);
  --qlive-overview-muted: var(--qlive-text-muted);
}

/*
 * My Account historically redefined the shared text/border variables with
 * dark-only values. Reset those compatibility variables from ReadyLaunch,
 * then map the account-local palette to the shared Q-Live surfaces.
 */
.qlive-dashboard-shell .qlive-dashboard-view.qlive-dashboard-account {
  --qlive-text: var(--bb-rl-text-color, #242425);
  --qlive-muted: var(--bb-rl-text-secondary-color, #555556);
  --qlive-border: var(--bb-rl-border-secondary-color, #e7e7e7);
  --qlive-subtle: var(--bb-rl-background-secondary-color, #f6f6f6);
  --qlive-account-bg: var(--qlive-surface);
  --qlive-account-panel: var(--qlive-surface-subtle);
  --qlive-account-border: var(--qlive-border);
  --qlive-account-text: var(--qlive-text);
  --qlive-account-muted: var(--qlive-text-muted);
  background: var(--qlive-surface);
  color: var(--qlive-text);
}

/* Lime uses the dark on-accent foreground in both themes for contrast. */
.qlive-dashboard-shell
  > .qlive-dashboard-nav
  .qlive-dashboard-nav__link.is-active,
.qlive-dashboard-overview__quick-links a:not(:last-child),
.qlive-dashboard-account__form-actions button,
.qlive-dashboard__actions a:first-child {
  background: var(--qlive-accent);
  border-color: var(--qlive-accent);
  color: var(--qlive-on-accent);
}

.qlive-dashboard-overview__quick-links a:not(:last-child):hover,
.qlive-dashboard-overview__quick-links a:not(:last-child):focus-visible,
.qlive-dashboard-account__form-actions button:hover,
.qlive-dashboard-account__form-actions button:focus-visible,
.qlive-dashboard__actions a:first-child:hover,
.qlive-dashboard__actions a:first-child:focus-visible {
  background: var(--qlive-accent-hover);
  border-color: var(--qlive-accent-hover);
  color: var(--qlive-on-accent);
}

/* Secondary actions stay neutral and theme-aware. */
.qlive-dashboard-overview__quick-links a:last-child,
.qlive-dashboard__actions a:last-child {
  background: transparent;
  border-color: var(--qlive-border);
  color: var(--qlive-text);
}

.qlive-dashboard-overview__quick-links a:last-child:hover,
.qlive-dashboard-overview__quick-links a:last-child:focus-visible,
.qlive-dashboard__actions a:last-child:hover,
.qlive-dashboard__actions a:last-child:focus-visible {
  background: var(--qlive-surface-hover);
  border-color: var(--qlive-border-strong);
  color: var(--qlive-text);
}

/* Text links inherit the Q-Live brand contrast appropriate to each theme. */
.qlive-dashboard-overview__card a,
.qlive-dashboard-trading-report__toggle {
  color: var(--qlive-accent-text);
}

.qlive-dashboard-overview__card a:hover,
.qlive-dashboard-overview__card a:focus-visible,
.qlive-dashboard-trading-report__toggle:hover,
.qlive-dashboard-trading-report__toggle:focus-visible {
  color: var(--qlive-text);
}

/* Theme-aware account and access states. */
.qlive-dashboard-overview__status,
.qlive-dashboard-account__status.is-active {
  background: var(--qlive-success-soft);
  border-color: var(--qlive-success-border);
  color: var(--qlive-success-text);
}

.qlive-dashboard-account__status.is-inactive {
  background: var(--qlive-danger-soft) !important;
  border-color: var(--qlive-danger-border) !important;
  color: var(--qlive-danger-text) !important;
}

/* Shared focus treatment for the first migrated Dashboard surfaces. */
.qlive-dashboard-shell a:focus-visible,
.qlive-dashboard-shell button:focus-visible,
.qlive-dashboard-shell input:focus-visible,
.qlive-dashboard-shell textarea:focus-visible,
.qlive-dashboard-shell select:focus-visible {
  outline: none;
  box-shadow: var(--qlive-focus-ring);
}
