/*
 * Shahdad AI — cascade normalization beta 5.2
 * This layer removes over-broad descendant color forcing and lets semantic
 * surfaces own their foreground color.
 */

body.deep-harmony-beta .modal {
  --text-soft: #4f686a;
  --text-mute: #4f686a;
  --frost: #4f686a;
  --gold: #684f18;
  --gold-soft: #684f18;
}

/* Override the broad v5.0 descendant rules. */
body.deep-harmony-beta .modal :is(h1, h2, h3, h4, h5, h6, strong, b),
body.deep-harmony-beta .modal :is(p, small, label) {
  color: inherit;
}

body.deep-harmony-beta .modal-head .ti,
body.deep-harmony-beta .modal :is(.section-title, .card-title) {
  color: #163d42;
}

body.deep-harmony-beta .modal-head .st,
body.deep-harmony-beta .modal .field label {
  color: #4f686a;
}

body.deep-harmony-beta .modal .btn.primary,
body.deep-harmony-beta .modal .btn.primary *,
body.deep-harmony-beta .modal :is(.auth-submit, .pricing-cta:not(:disabled), .wc-primary-cta, .comm-btn.primary, .comm-compose-trigger, .pc-primary, .la-new),
body.deep-harmony-beta .modal :is(.auth-submit, .pricing-cta:not(:disabled), .wc-primary-cta, .comm-btn.primary, .comm-compose-trigger, .pc-primary, .la-new) * {
  color: #fff;
}

body.deep-harmony-beta .modal .btn.gold,
body.deep-harmony-beta .modal .btn.gold * {
  color: #684f18;
  border-color: rgba(104, 79, 24, .22);
  background: #f6e8bd;
}

body.deep-harmony-beta .modal :is(button, input, select, textarea):disabled {
  color: #5c7375;
  border-color: rgba(79, 104, 106, .2);
  background: #edf1ee;
  opacity: 1;
  box-shadow: none;
}

/* Restore secondary hierarchy only on confirmed light module surfaces. */
body.deep-harmony-beta .auth-center :is(.auth-field > label, .auth-check, .auth-stepper > div, .auth-mobile-return, .auth-trust-lead, .auth-benefit-copy span, .auth-field-hint, .auth-legal),
body.deep-harmony-beta .pf-shell :is(p, small, label, .pf-field > span, .pf-stepper > div),
body.deep-harmony-beta .pricing-center :is(p, small, .pricing-price > span, .pricing-section-head > small, .pricing-footnote),
body.deep-harmony-beta .wallet-center :is(p, small, label, legend, th),
body.deep-harmony-beta .comm-hub :is(p, small, label, .comm-row-copy > span, .comm-row-time, .comm-detail-body, .comm-letter-address, .comm-actor, .comm-empty, .comm-detail-empty),
body.deep-harmony-beta .pc-shell :is(p, small, label, .pc-day, .pc-card p, .pc-meta span),
body.deep-harmony-beta .legal-agent :is(p, small, label, .la-request),
body.deep-harmony-beta .lv-directory :is(p, small, label, .lv-meta),
body.deep-harmony-beta .legal-calculator :is(p, small, label, .calc-hint, .legal-output),
body.deep-harmony-beta .eco :is(p, small, .eco-l-desc, .ec-desc) {
  color: #4f686a;
}

body.deep-harmony-beta .smart-lawyer :is(p, small, label),
body.deep-harmony-beta .smart-lawyer-gate :is(p, small, label) {
  color: #4f686a;
}

body.deep-harmony-beta .sl-message-body p,
body.deep-harmony-beta .sl-message.user .sl-message-body p {
  color: inherit;
}

body.deep-harmony-beta .pf-completion strong,
body.deep-harmony-beta .pf-completion small,
body.deep-harmony-beta .pf-timeline > div > i {
  color: inherit;
}

body.deep-harmony-beta :is(.pf-status, .wc-status, .comm-toast, .auth-notice, .pc-toast, .la-card header em) *,
body.deep-harmony-beta :is(.pf-status, .wc-status, .comm-toast, .auth-notice, .pc-toast, .la-card header em) :is(strong, b, p, small, span) {
  color: inherit;
}

body.deep-harmony-beta .modal :is(input, textarea)::placeholder {
  color: #4f686a;
  opacity: 1;
}
