/* Personal profile, scoped to its xajax view. */
.mh-profile-page{padding-block:1.5rem 3rem}.mh-profile-heading{margin-bottom:1.5rem}
.mh-profile-heading h1{margin:.45rem 0}.mh-profile-heading p{max-width:68ch;color:var(--bs-secondary-color,#566272)}
.mh-profile-cards{display:grid;grid-template-columns:minmax(240px,1fr) minmax(320px,1.6fr);gap:1.25rem;margin-bottom:1.5rem}
.mh-profile-cards>.mh2-card{padding:1.35rem}.mh-profile-cards h2{font-size:1.2rem;margin-bottom:1.3rem}
.mh-profile-identity dl{display:grid;gap:.35rem;overflow-wrap:anywhere}.mh-profile-identity dt{font-size:.85rem;color:var(--bs-secondary-color,#64748b)}
.mh-profile-identity dd{margin:0 0 .85rem;font-weight:600}.mh-profile-preferences form{display:grid;gap:1rem}
.mh-profile-preferences label{display:grid;gap:.35rem}.mh-profile-options{display:grid;grid-template-columns:1fr 1fr;gap:1rem}
.mh-profile-preferences .mh-profile-checkbox{display:flex;align-items:center;gap:.65rem}.mh-profile-checkbox input{inline-size:1.15rem;block-size:1.15rem}
.mh-profile-back{display:inline-flex;gap:.4rem;align-items:center}
@media(max-width:760px){.mh-profile-cards,.mh-profile-options{grid-template-columns:1fr}.mh-profile-page{padding-block:1rem 2rem}}

/* R11: administrator-only read-only diagnostics in profile workspace. */
.mh-security-tests{margin-top:20px}
.mh-security-test-buttons{display:flex;flex-wrap:wrap;gap:10px;margin:15px 0}
.mh-security-test-results{padding:12px 14px;background:#f7faf8;border:1px solid #dce8df;border-radius:12px;min-height:65px}
.mh-security-test-report h3{font-size:1rem;margin:0 0 12px}
.mh-security-test-report ul{list-style:none;margin:0;padding:0;display:grid;gap:9px}
.mh-security-test-report li{display:flex;align-items:flex-start;flex-wrap:wrap;gap:8px;overflow-wrap:anywhere}
.mh-security-state{display:inline-block;padding:2px 8px;border-radius:8px;font-size:.75rem;white-space:nowrap}
.mh-security-pass{background:#e4f3e7;color:#246a36}
.mh-security-fail{background:#fce6e4;color:#a12320}
.mh-security-warning{background:#fff1d8;color:#815500}
.mh-security-detail{color:#59695d;font-size:.85rem}


/* R17E profile: keep professional and family entitlements in separate, accessible panels. */
.mh-profile-coverage-intro{margin-bottom:1.15rem}
.mh-profile-coverage-panels{display:grid;gap:1.25rem;grid-template-columns:minmax(0,1fr)}
.mh-profile-coverage-panel{min-width:0;padding:1.25rem 1.35rem;background:var(--bs-tertiary-bg,#f8faf8);border:1px solid #dbe7df;border-radius:14px}
.mh-profile-coverage-header{border-bottom:1px solid #dbe7df;padding-bottom:.65rem;margin-bottom:1rem}
.mh-profile-coverage-header h3{display:flex;align-items:center;gap:.55rem;font-size:1.15rem;font-weight:700;margin:0;color:#24483e}
.mh-profile-coverage-header h3 i{color:#4d8266;font-size:1.2rem}
.mh-profile-coverage-stats{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.85rem 1.2rem;margin:1.1rem 0 1.25rem}
.mh-profile-coverage-stats>div{min-width:0;border:1px solid #e3ebe5;border-radius:10px;padding:.75rem .9rem;background:var(--bs-body-bg,#fff)}
.mh-profile-coverage-stats dt{font-size:.85rem;color:var(--bs-secondary-color,#64748b);margin-bottom:.2rem;font-weight:500}
.mh-profile-coverage-stats dd{font-size:1.12rem;font-weight:700;margin:0;color:#24483e}
.mh-profile-coverage-pricing{margin-top:1.15rem}
.mh-profile-coverage-pricing .mh-subscription-tiers{margin-bottom:.8rem}
.mh-profile-professional-topup,.mh-profile-coverage-checkout{border-top:1px solid #dbe7df;padding-top:1.15rem;margin-top:1.25rem}
.mh-profile-professional-topup h4{font-size:1.03rem;font-weight:700;color:#24483e;margin-bottom:.75rem}
.mh-profile-professional-topup .mh2-form,.mh-profile-coverage-checkout{max-width:660px}
.mh-profile-family-item{padding:.9rem 0;border-bottom:1px solid #e1eae4;overflow-wrap:anywhere}
.mh-profile-family-item:last-of-type{border-bottom:0}
.mh-profile-family-item .alert{margin-bottom:0}
.mh-profile-family-price{margin-top:1rem}
@media(max-width:600px){.mh-profile-coverage-panel{padding:1rem}.mh-profile-coverage-stats{grid-template-columns:1fr 1fr;gap:.6rem}.mh-profile-coverage-stats>div{padding:.65rem}.mh-profile-coverage-header h3{font-size:1.08rem}}
@media(max-width:420px){.mh-profile-coverage-stats{grid-template-columns:1fr}}

/* R17E: per-order purchase/refund movement ledger. */
.mh-profile-payment-history{border-top:1px solid #dbe7df;margin-top:1.2rem;padding-top:1.1rem}
.mh-profile-payment-history h4{font-size:1.03rem;font-weight:700;color:#24483e}
.mh-profile-payment-order{background:var(--bs-body-bg,#fff);border:1px solid #dbe7df;border-radius:10px;margin:1rem 0;overflow:hidden}
.mh-profile-payment-movement{display:flex;justify-content:space-between;gap:1rem;padding:.9rem 1rem;align-items:flex-start}
.mh-profile-payment-movement+.mh-profile-payment-movement{border-top:1px solid #e5ebe6}
.mh-profile-payment-refund{padding-left:1.5rem;background:var(--bs-tertiary-bg,#fafcfb)}
.mh-profile-payment-refund.is-pending{color:var(--bs-secondary-color,#64748b)}
.mh-profile-payment-amount{white-space:nowrap;text-align:right;font-variant-numeric:tabular-nums}
.mh-profile-payment-amount small{font-size:.73rem;white-space:normal;max-width:170px}
.mh-profile-payment-summary{border-top:1px solid #dbe7df;padding:.7rem 1rem;display:flex;justify-content:space-between;gap:.6rem 1.3rem;flex-wrap:wrap}
@media(max-width:500px){.mh-profile-payment-movement{flex-wrap:wrap}.mh-profile-payment-amount{text-align:left}}
