/* ==========================================================================
   My Profile (app_my_profile.php) - feature-specific styling.
   Relies on the shared vocabulary in assets/general/general.css.
   ========================================================================== */

/* My Profile is entirely forms / settings / gates (no list or dashboard view),
   so it sits in the NARROW width tier (1100px, app-wide standard 2026-07-15) —
   also honoring the original intent to keep the profile + account-rail columns
   balanced and deliberate instead of sprawling at the full 1500px shell width
   (form fields top out at 520px regardless). */
.mp-page { padding-bottom: 48px; max-width: 1100px; }

/* Forgot-password "when is my email registered" help block */
.mp-remind-help { margin-top: 20px; }
.mp-remind-help .section-body { padding: 18px 22px 20px; }
.mp-remind-help .section-body p {
    margin: 0 0 14px;
    color: #4a4f5a;
    line-height: 1.6;
}
.mp-remind-help .section-body ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.mp-remind-help .section-body li {
    position: relative;
    padding-left: 26px;
    color: #1a1a2e;
    line-height: 1.5;
}
.mp-remind-help .section-body li::before {
    content: "";
    position: absolute;
    left: 7px;
    top: 8px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--navy);
}

/* ---- Cards ---- */
.card {
    background: #fff;
    border: 1px solid #d5d5d5;
    border-radius: 8px;
    padding: 20px 24px;
}
.mp-card { margin-bottom: 20px; }

/* Indent bullet lists inside info blocks (global reset zeroes ul padding,
   which otherwise puts markers flush against the block border). */
.mp-card .section-info-block ul {
    margin: 8px 0 2px;
    padding-left: 22px;
}
.mp-card .section-info-block li {
    margin-bottom: 6px;
    line-height: 1.6;
}
.mp-card .section-info-block li:last-child { margin-bottom: 0; }
.mp-card-title {
    font-size: 16px;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0 0 16px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

/* ---- Profile + account rail (two-column layout) ----
   Left: the profile card (primary). Right: one unified Account & Settings rail
   holding every account shortcut. Explicit wrappers (.mp-main / .mp-rail) so
   the columns are deliberate — the old .mp-grid let 5 sibling cards auto-flow,
   which scattered the shortcut panels around the tall profile card. */
.mp-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(300px, 340px);
    gap: 20px;
    align-items: start;
}
.mp-main { min-width: 0; }
.mp-rail { min-width: 0; }
@media (max-width: 860px) {
    .mp-layout { grid-template-columns: 1fr; }
}

/* ---- Identity header (photo + name) above the profile tabs ---- */
.mp-id-head {
    display: flex;
    align-items: center;
    gap: 16px;
    padding-bottom: 16px;
    margin-bottom: 16px;
    border-bottom: 1px solid #eee;
}
.mp-avatar {
    position: relative;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    background: #eef2fb;
    border: 1px solid #d8dee6;
    display: flex;
    align-items: center;
    justify-content: center;
}
.mp-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.mp-avatar-initials {
    font-size: 22px;
    font-weight: 700;
    color: var(--navy);
    letter-spacing: 1px;
    user-select: none;
}
.mp-id-info { min-width: 0; flex: 1 1 auto; }
.mp-id-name {
    font-size: 17px;
    font-weight: 700;
    color: #1a1a2e;
    line-height: 1.3;
}
.mp-id-meta {
    font-size: 13px;
    color: #667;
    margin-top: 2px;
}
.mp-id-email { color: #8a8a96; }
.mp-id-editbtn { flex-shrink: 0; white-space: nowrap; }
@media (max-width: 520px) {
    .mp-id-head { flex-wrap: wrap; }
    .mp-id-editbtn { width: 100%; justify-content: center; }
}

/* ---- Profile tabs (shared .contact-tab vocabulary) ---- */
.mp-tabs .contact-tab-bar {
    overflow-x: auto;          /* 4 tabs stay reachable on narrow screens */
    overflow-y: hidden;        /* the tabs' -2px bottom margin must not spawn a vertical scrollbar */
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
}
.mp-tabs .contact-tab-bar::-webkit-scrollbar { height: 6px; }
.mp-tabs .contact-tab-bar::-webkit-scrollbar-thumb {
    background: #d5d9e0;
    border-radius: 3px;
}
.mp-tabs .contact-tab { white-space: nowrap; flex-shrink: 0; }
.mp-tab-note {
    font-size: 12.5px;
    line-height: 1.55;
    color: #8a8a96;
    background: #fafbfc;
    border: 1px solid #eef0f3;
    border-radius: 6px;
    padding: 10px 12px;
    margin: 0 0 14px;
}
.mp-tab-note strong { color: #5a5a68; }

/* ---- Profile photo controls (edit mode) ---- */
.mp-photo-controls {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}
.mp-photo-pick { cursor: pointer; }
.mp-photo-remove { color: #c0392b; }

/* ---- Company fields dimmed while "Same As My Office Address" ---- */
.mp-company-dimmed { opacity: 0.55; }

/* ---- Required-fields note beside the save actions ---- */
.mp-req-note {
    font-size: 12px;
    color: #8a8a96;
    margin-left: auto;
    align-self: center;
}

/* ---- Authenticator wizard steps ---- */
.mp-step {
    padding: 18px 0;
    border-bottom: 1px solid #eef0f3;
}
.mp-step:last-child { border-bottom: none; }
.mp-step-head {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 10px;
}
.mp-step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--navy);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    flex-shrink: 0;
}
.mp-step-body { font-size: 13px; color: #333; line-height: 1.6; }
.mp-step-body p { margin: 0 0 8px; }
.mp-step-body a { color: var(--navy); }
.mp-step--confirm .mp-step-head { color: #1a1a2e; }

/* ---- QR + App Key ---- */
.mp-qr-wrap {
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
    margin: 12px 0 14px;
}
.mp-qr {
    width: 200px;
    height: 200px;
    border: 1px solid #e2e5ea;
    border-radius: 6px;
    background: #fff;
    padding: 6px;
}
.mp-appkey { min-width: 0; }
.mp-appkey-label {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #778;
    margin-bottom: 6px;
}
.mp-appkey-value {
    display: inline-block;
    font-family: "Courier New", monospace;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 2px;
    color: #1a1a2e;
    background: #f5f7fa;
    border: 1px solid #e2e5ea;
    border-radius: 5px;
    padding: 8px 14px;
    word-break: break-all;
}

/* ---- Secret Q/A important callout + acknowledgement ---- */
.callout-banner-text {
    font-size: 13px;
    line-height: 1.6;
    color: #5a4a1a;
    margin-top: 6px;
}
.mp-ack {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 13px;
    line-height: 1.5;
    color: #333;
    cursor: pointer;
    background: #fafbfc;
    border: 1px solid #e2e5ea;
    border-radius: 6px;
    padding: 12px 14px;
    max-width: 620px;
}
.mp-ack input[type="checkbox"] {
    width: 17px;
    height: 17px;
    margin-top: 1px;
    flex-shrink: 0;
    cursor: pointer;
}
.mp-ack.mp-ack-error {
    border-color: #dc2626;
    background: #fef2f2;
}

/* ---- Verification failure tips ---- */
.mp-error-tips {
    margin: 10px 0 0;
    padding-left: 18px;
    font-size: 12.5px;
    line-height: 1.55;
}
.mp-error-tips li { margin-bottom: 5px; }
.mp-error-tips li:last-child { margin-bottom: 0; }

/* ---- Confirmation code input ---- */
.mp-code-field {
    display: flex;
    align-items: center;
    gap: 12px;
}
.mp-code-input {
    font-family: "Courier New", monospace;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 6px;
    text-align: center;
    max-width: 180px;
}
.mp-code-input:disabled {
    background: #f0fdf4;
    border-color: #a3d5b3;
    color: #15803d;
}
.mp-verify-status {
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
}
.mp-verify-checking { color: #888; }
.mp-verify-ok { color: #16a34a; }
.mp-verify-err { color: #c0392b; }

/* ---- Security card: settings list ---- */
.mp-setting {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 16px 0;
    border-top: 1px solid #eef0f3;
}
.mp-setting:first-of-type {
    border-top: none;
    padding-top: 2px;
}
.mp-setting-info { min-width: 0; flex: 1 1 auto; }
.mp-setting-title {
    font-size: 14px;
    font-weight: 600;
    color: #1a1a2e;
    margin-bottom: 3px;
}
.mp-setting-meta {
    font-size: 13px;
    color: #555;
    margin-bottom: 5px;
}
.mp-setting-meta strong { color: var(--navy); font-weight: 600; }
.mp-setting-desc {
    font-size: 12.5px;
    line-height: 1.55;
    color: #8a8a96;
    margin: 0;
}
.mp-setting-btn {
    flex-shrink: 0;
    min-width: 148px;
    justify-content: center;
    text-align: center;
    white-space: nowrap;
}
@media (max-width: 520px) {
    .mp-setting {
        flex-direction: column;
        align-items: stretch;
    }
    .mp-setting-btn { width: 100%; }
}

/* ==========================================================================
   Account & Settings rail (profile page) — the single home for every account
   shortcut. Echoes the user-dropdown nav idiom (.dropdown-ico / .dropdown-chev
   in general.css) so it reads as native chrome. Additive: the .mp-setting rows
   above are left in place because mfa_view.php still uses them.
   ========================================================================== */
.mp-rail-card { padding: 16px 16px 18px; }
.mp-rail-title {
    display: flex;
    align-items: center;
    gap: 8px;
}
.mp-rail-title svg { color: var(--navy); flex-shrink: 0; }

/* Grouped sections; a divider appears only BETWEEN present groups, so gated
   groups dropping out never leave an orphaned rule. */
.mp-rail-group + .mp-rail-group {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #eef0f3;
}
.mp-rail-group-label {           /* echoes .dropdown-head-eyebrow */
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .8px;
    color: #8a909a;
    margin: 0 0 6px;
    padding: 0 10px;
}

/* Nav row: the whole row is the link (mirrors .dropdown-menu li a). */
.mp-nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px;
    border-radius: 10px;
    color: #1a1a2e;
    text-decoration: none;
    transition: background .15s;
}
.mp-nav-item + .mp-nav-item { margin-top: 2px; }
.mp-nav-item:hover { background: #f2f6fb; }
.mp-nav-item:focus-visible { outline: 2px solid var(--navy); outline-offset: 1px; }
.mp-nav-ico {                    /* echoes .dropdown-ico, sized up for 2-line rows */
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: #f0f4ff;
    color: var(--navy);
}
.mp-nav-ico svg { width: 18px; height: 18px; }
.mp-nav-body { flex: 1 1 auto; min-width: 0; }   /* min-width:0 => titles wrap, no h-scroll */
.mp-nav-title {
    display: block;
    font-size: 13.5px;
    font-weight: 600;
    color: #1a1a2e;
    line-height: 1.35;
}
.mp-nav-desc {
    display: block;
    font-size: 12px;
    color: #8a8a96;
    line-height: 1.5;
    margin-top: 2px;
}
.mp-nav-chev {                   /* echoes .dropdown-chev */
    flex-shrink: 0;
    display: inline-flex;
    align-self: center;
    color: #c2c8cf;
    transition: color .15s, transform .15s;
}
.mp-nav-chev svg { width: 16px; height: 16px; }
.mp-nav-item:hover .mp-nav-chev { color: var(--navy); transform: translateX(2px); }

/* ---- Security highlight: MFA posture at a glance (also the Manage-MFA link) ---- */
.mp-secure {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    margin-bottom: 6px;
    border-radius: 10px;
    text-decoration: none;
    border: 1px solid #dbe6f3;
    background: #f4f8fd;          /* email method (on) = neutral navy tint */
    transition: border-color .15s, background .15s;
}
.mp-secure:hover { background: #eef4fb; border-color: #c7d8ee; }
.mp-secure:focus-visible { outline: 2px solid var(--navy); outline-offset: 1px; }
.mp-secure:hover .mp-nav-chev { color: var(--navy); transform: translateX(2px); }
.mp-secure-shield {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e7edf7;
    color: var(--navy);
}
.mp-secure-shield svg { width: 20px; height: 20px; }
.mp-secure-body { flex: 1 1 auto; min-width: 0; }
.mp-secure-title {
    display: block;
    font-size: 13.5px;
    font-weight: 700;
    color: #1a1a2e;
    line-height: 1.3;
}
.mp-secure-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 3px;
    font-size: 12px;
    font-weight: 600;
    color: var(--navy);
}
.mp-secure-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    flex-shrink: 0;
    background: #16a34a;         /* green = protected */
    box-shadow: 0 0 0 2px rgba(22, 163, 74, .18);
}
/* Method-aware tone: Authenticator App (strongest) shifts the strip to green. */
.mp-secure--strong { background: #eef8f1; border-color: #cfe9d8; }
.mp-secure--strong:hover { background: #e6f4ea; border-color: #bfe3cc; }
.mp-secure--strong .mp-secure-shield { background: #dcf3e4; color: #15803d; }
.mp-secure--strong .mp-secure-status { color: #15803d; }
/* Defensive "not configured" state (every user normally has a method). */
.mp-secure--off { background: #fdf6e6; border-color: #f2e2b8; }
.mp-secure--off:hover { background: #fbefd6; border-color: #ecd79a; }
.mp-secure--off .mp-secure-shield { background: #faedcc; color: #8a6d1a; }
.mp-secure--off .mp-secure-status { color: #8a6d1a; }
.mp-secure--off .mp-secure-dot {
    background: #f39c12;
    box-shadow: 0 0 0 2px rgba(243, 156, 18, .18);
}

@media (max-width: 520px) {
    .mp-nav-ico { width: 34px; height: 34px; }
    .mp-nav-item { gap: 10px; }
}

/* ---- Password requirements checklist ---- */
.pwd-reqs-wrap { margin-top: 8px; }
.pwd-reqs {
    list-style: none;
    margin: 6px 0 0;
    padding: 0;
}
.pwd-req {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    line-height: 1.75;
    color: #888;
    transition: color 0.15s ease;
}
.pwd-req-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    font-size: 12px;
    line-height: 1;
}
.pwd-req.unmet .pwd-req-icon::before { content: '\25CB'; color: #b6b6c0; }
.pwd-req.met .pwd-req-icon::before { content: '\2713'; color: #16a34a; }
.pwd-req.met { color: #16a34a; }

/* ---- Confirm-password match indicator ---- */
.mp-match {
    font-size: 13px;
    font-weight: 600;
    margin: 6px 0 0;
    min-height: 18px;
}
.mp-match-ok { color: #16a34a; }
.mp-match-err { color: #c0392b; }

/* ---- Show/hide password eye toggle (mirrors login.css) ---- */
/* The wrap MUST cap to the input's own max-width: .form-field tops out at
   520px (general.css) inside the wider .page-narrow (1100px) column. Without
   this cap the absolutely-positioned toggle anchors to the full-width wrap and
   floats far to the right of the field on desktop. box-sizing:border-box is
   global, so the input's padding-right does not overflow the cap. */
.mp-password-wrap { position: relative; max-width: 520px; }
.mp-password-wrap .form-field { padding-right: 44px; }
.mp-password-toggle {
    position: absolute;
    top: 50%;
    right: 8px;
    transform: translateY(-50%);
    background: none;
    border: none;
    padding: 4px;
    cursor: pointer;
    color: #888;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.mp-password-toggle:hover,
.mp-password-toggle.is-showing { color: var(--navy); }

/* ---- Password-changed success modal ---- */
.mp-success-modal {
    width: 420px;
    max-width: 94vw;
}
.mp-success-body {
    padding: 32px 28px 26px;
    text-align: center;
}
.mp-success-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: #e7f8ee;
    color: #16a34a;
    margin-bottom: 16px;
    animation: mpSuccessPop .25s ease;
}
@keyframes mpSuccessPop {
    from { transform: scale(0.7); opacity: 0; }
    to   { transform: scale(1); opacity: 1; }
}
.mp-success-title {
    font-size: 19px;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0 0 8px;
}
.mp-success-text {
    font-size: 14px;
    line-height: 1.6;
    color: #555;
    margin: 0 auto 20px;
    max-width: 320px;
}
.mp-success-btn {
    min-width: 200px;
}
.mp-success-note {
    font-size: 12px;
    color: #999;
    margin: 14px 0 0;
}

/* ---- 2FA challenge (page=authentication) ---- */
.mp-logout-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #ccc;
    text-decoration: none;
    border: 1px solid rgba(255,255,255,.15);
    border-radius: 4px;
    padding: 7px 14px;
}
.mp-logout-link:hover { background: rgba(255,255,255,.08); color: #fff; }
.mp-logout-link svg { opacity: .7; }

/* Code field: comfortably fits the longer numeric email code (e.g. 220327959)
   while keeping the tighter 6-digit look for Authenticator codes. */
.mp-authn-field { max-width: 360px; }
.mp-code-input--long {
    max-width: 320px;
    width: 100%;
    letter-spacing: 4px;
    font-size: 22px;
    padding-left: 14px;
    padding-right: 14px;
}

/* Collapsible email-delivery help below the card. */
.mp-authn-help { margin-top: 4px; }
.mp-authn-help-body {
    font-size: 13.5px;
    line-height: 1.65;
    color: #2b2b3a;
}
.mp-authn-help-body p { margin: 0 0 12px; }
.mp-authn-help-body p:last-child { margin-bottom: 0; }
.mp-authn-help-body strong { color: #1a1a2e; }
.mp-authn-maillist {
    list-style: none;
    margin: 8px 0 14px;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 6px 8px;
}
.mp-authn-maillist code {
    font-family: "Courier New", monospace;
    font-size: 13px;
    font-weight: 700;
    color: var(--navy);
    background: #eef2fb;
    border: 1px solid #c9d6f0;
    border-radius: 4px;
    padding: 4px 9px;
}

/* ---- Login code display ---- */
.mp-code-row {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 6px;
}
.mp-login-code {
    font-family: "Courier New", monospace;
    font-size: 26px;
    font-weight: 700;
    letter-spacing: 6px;
    color: #16a34a;
    min-height: 32px;
}

/* ---- 2FA challenge (page=authentication): focused, centered gate ---- */
/* Embedded (?embed=1) — the challenge hosted in another screen's modal iframe
   (the wire-request wizard's create-template modal). Joins the general.css
   fluid-page list (body.login-body / body.ep-embedded / .wt-embed-body): the
   1200px desktop floor would force a horizontal scrollbar inside the 1100px
   frame. No topbar is rendered, so nothing reserves its 56px either. */
body.mp-authn-embed { min-width: 0; background: #fff; justify-content: center; }
/* The host modal is sized for the tall add wizard, so the short challenge would
   sit against the top with a screen of dead space under it. Drop the wrap's
   flex:1 (general.css) and let the body centre it instead. */
body.mp-authn-embed .mp-authn-page { flex: 0 0 auto; padding-top: 4px; padding-bottom: 24px; }
.mp-authn-page {
    max-width: 1100px;
}
.mp-authn-page .page-header {
    text-align: center;
}
/* Center the code field block, its label, input and help text. */
.mp-authn-page .mp-authn-field {
    max-width: 100%;
    text-align: center;
}
.mp-authn-page .mp-authn-field .form-label {
    text-align: center;
}
.mp-authn-page .mp-code-input {
    max-width: 200px;
    margin-left: auto;
    margin-right: auto;
}
.mp-authn-page .mp-code-input--long {
    max-width: 280px;
}
.mp-authn-page .form-help-text {
    text-align: center;
}
/* Center the "trust this location" acknowledgement as a tidy block. */
.mp-authn-page .mp-ack {
    justify-content: center;
    text-align: left;
    max-width: 340px;
    margin-left: auto;
    margin-right: auto;
}
/* Center the Authenticate action; full-width on small screens. */
.mp-authn-page .save-actions {
    justify-content: center;
}
.mp-authn-page .save-actions .btn-primary {
    min-width: 200px;
    justify-content: center;
}
@media (max-width: 768px) {
    .mp-authn-page .save-actions {
        flex-direction: column;
    }
    .mp-authn-page .save-actions .btn-primary {
        width: 100%;
    }
}

/* ---- Website Terms / User Agreement gate (page=useragreement) ---- */
.mp-page-wide { max-width: 1100px; }
.mp-agreement-page .page-header { text-align: center; }
/* Trusted admin-authored Message_HTML; give it readable, scrollable bounds. */
.mp-agreement-content {
    max-height: 60vh;
    overflow-y: auto;
    padding: 4px 4px 20px;
    margin-bottom: 20px;
    border-bottom: 1px solid #e5e7eb;
    line-height: 1.6;
    word-wrap: break-word;
}
.mp-agreement-content img { max-width: 100%; height: auto; }
.mp-agreement-content table { max-width: 100%; }
.mp-agreement-page .save-actions { justify-content: center; }
.mp-agreement-page .save-actions .btn-primary {
    min-width: 240px;
    justify-content: center;
}
@media (max-width: 768px) {
    .mp-agreement-page .save-actions { flex-direction: column; }
    .mp-agreement-page .save-actions .btn-primary { width: 100%; }
}

/* (The Landing Page picker's .mp-landing-* block stood here until 2026-09-04.
   The preference was retired with its route, its module and its endpoint — a
   client user lands on the Launch Pad. Nothing else used these rules.) */

/* ── The save button that has nothing to save ────────────────────────────
   MFA Settings ships its Save disabled, because on load the form is showing the
   answer already on file (ticket 868kyunnn ask 7). The note says WHY it is
   inert; a disabled button with no explanation reads as a broken one. */
.mp-nochange {
    font-size: 12px;
    color: var(--text-muted);
}
/* `hidden` is a UA display:none, and anything that gives an element its own
   display wins over it — a display companion is the standing fix in this tree. */
.mp-nochange[hidden] { display: none; }

/* ── The hub's dialog bodies ─────────────────────────────────────────────
   Every settings form reachable from the My Profile rail is ALSO served as a
   `&fragment=1` body inside one AppRecordDialog (MyProfile.initHub). The dialog
   already supplies a title bar and its own padding, so a body must not repeat
   the page's outer spacing — everything else about the markup is identical to
   the page, which is the point of serving it from the same file. */
.mp-dlg .modal-body > .card:last-child,
.mp-dlg .modal-body > .app-panel:last-child,
.mp-dlg .modal-body > form:last-child > .card:last-child { margin-bottom: 0; }
.mp-dlg .modal-body > .save-success-bar { margin-bottom: 16px; }
/* A dialog is narrower than the page, so the profile card's identity strip and
   its Edit button no longer need to share a line with a long name. */
.mp-dlg .mp-id-head { flex-wrap: wrap; }