/* MRM User Account System — Architecture v1.0 */
.mrm-account-page{background:#0b1018;color:#f4f2ed}
.mrm-account-wrap{padding:72px 0 110px}
.mrm-account-shell{max-width:1180px;margin:0 auto}
.mrm-account-dashboard-intro{display:flex;justify-content:space-between;align-items:flex-end;gap:30px;padding:30px 0 34px;border-bottom:1px solid rgba(229,180,60,.18);margin-bottom:24px}
.mrm-account-eyebrow{display:block;color:#e5b43c;font-size:10px;letter-spacing:.16em;text-transform:uppercase;margin-bottom:9px}
.mrm-account-dashboard-intro h2,.mrm-account-panel h2{margin:0 0 10px;font-size:clamp(24px,3vw,38px);line-height:1.45;color:#f4f2ed}
.mrm-account-dashboard-intro p,.mrm-account-panel p{margin:0;color:#929cab;font-size:14px;line-height:2}
.mrm-account-primary{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:0 20px;background:#e5b43c;color:#17120a;text-decoration:none;border-radius:8px;font-size:13px;font-weight:700;white-space:nowrap}
.mrm-account-primary:hover{color:#17120a;filter:brightness(1.06)}
.mrm-account-cards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin:0 0 28px}
.mrm-account-card{display:flex;flex-direction:column;gap:8px;padding:22px;background:#111925;border:1px solid #263446;border-radius:12px;text-decoration:none;transition:border-color .2s ease,transform .2s ease,background .2s ease}
.mrm-account-card:hover{color:inherit;border-color:#e5b43c;background:#141f2d;transform:translateY(-2px)}
.mrm-account-card__eyebrow{font-size:10px;color:#e5b43c;letter-spacing:.12em}
.mrm-account-card strong{font-size:18px;color:#f4f2ed}
.mrm-account-card>span:last-child{font-size:12px;line-height:1.9;color:#8994a3}
.mrm-account-panel{padding:28px;background:#111925;border:1px solid #263446;border-radius:12px}
.mrm-account-empty{display:flex;flex-direction:column;gap:7px;margin-top:24px;padding:20px;border:1px dashed #334256;border-radius:10px}
.mrm-account-empty strong{font-size:14px;color:#f4f2ed}
.mrm-account-empty span{font-size:12px;line-height:1.9;color:#8994a3}
/* WooCommerce account reset */
.woocommerce-account .woocommerce{display:grid;grid-template-columns:250px minmax(0,1fr);gap:20px;align-items:start}
.woocommerce-account .woocommerce-MyAccount-navigation{float:none;width:auto;margin:0}
.woocommerce-account .woocommerce-MyAccount-navigation ul{list-style:none;margin:0;padding:10px;background:#111925;border:1px solid #263446;border-radius:12px}
.woocommerce-account .woocommerce-MyAccount-navigation li{margin:0;border:0}
.woocommerce-account .woocommerce-MyAccount-navigation li a{display:block;padding:12px 13px;color:#9ba6b3;text-decoration:none;border-radius:8px;font-size:13px}
.woocommerce-account .woocommerce-MyAccount-navigation li.is-active a,.woocommerce-account .woocommerce-MyAccount-navigation li a:hover{background:#192535;color:#e5b43c}
.woocommerce-account .woocommerce-MyAccount-content{float:none;width:auto;margin:0;min-width:0}
.woocommerce-account .woocommerce-MyAccount-content a{color:#e5b43c}
.woocommerce-account .woocommerce-MyAccount-content .woocommerce-info,.woocommerce-account .woocommerce-MyAccount-content .woocommerce-message{background:#111925;border-top-color:#e5b43c;color:#c2cad4}
.woocommerce-account .woocommerce-form-login,.woocommerce-account .woocommerce-form-register{background:#111925;border:1px solid #263446;border-radius:12px;padding:28px;margin:0}
.woocommerce-account .woocommerce form .form-row label{color:#aeb7c2;font-size:13px}
.woocommerce-account .woocommerce form .form-row input.input-text{height:45px;background:#0c141f;border:1px solid #2b394a;color:#f4f2ed;border-radius:8px}
.woocommerce-account .woocommerce form .form-row input.input-text:focus{border-color:#e5b43c;outline:none;box-shadow:none}
.woocommerce-account .woocommerce button.button,.woocommerce-account .woocommerce a.button{background:#e5b43c;color:#17120a;border-radius:8px;font-size:13px;padding:11px 18px}
.woocommerce-account .woocommerce table.shop_table{border-color:#263446;color:#d6dbe2;background:#111925;border-radius:10px;overflow:hidden}
.woocommerce-account .woocommerce table.shop_table th,.woocommerce-account .woocommerce table.shop_table td{border-color:#263446}
.woocommerce-account .woocommerce .woocommerce-Address{background:#111925;border:1px solid #263446;border-radius:12px;padding:20px}
.mrm-account-dashboard-intro .mrm-account-primary{width:140px;min-width:140px;}
@media(max-width:900px){.woocommerce-account .woocommerce{grid-template-columns:1fr}.mrm-account-dashboard-intro{align-items:flex-start;flex-direction:column}.mrm-account-primary{width:100%}}
@media(max-width:640px){.mrm-account-wrap{padding:48px 0 80px}.mrm-account-cards{grid-template-columns:1fr}.mrm-account-dashboard-intro h2,.mrm-account-panel h2{font-size:26px}.woocommerce-account .woocommerce-MyAccount-navigation ul{display:grid;grid-template-columns:1fr 1fr;gap:5px}.woocommerce-account .woocommerce-MyAccount-navigation li a{font-size:12px}}
@media(max-width:480px){.woocommerce-account .woocommerce-MyAccount-navigation ul{grid-template-columns:1fr}}


/* Step 9.28 — Account Dashboard / Profile Completion */
.mrm-account-completion {
    display: grid;
    grid-template-columns: minmax(0, 1.7fr) minmax(180px, .7fr) auto;
    gap: 24px;
    align-items: center;
    margin: 0 0 28px;
    padding: 24px;
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 18px;
    background: rgba(255, 255, 255, .025);
}
.mrm-account-completion h2 { margin: 6px 0 8px; }
.mrm-account-completion p { margin: 0; opacity: .72; }
.mrm-account-completion__meta { min-width: 0; }
.mrm-account-completion__bar { height: 6px; overflow: hidden; border-radius: 999px; background: rgba(255,255,255,.08); margin-bottom: 9px; }
.mrm-account-completion__bar span { display: block; height: 100%; border-radius: inherit; background: #c9a45c; }
.mrm-account-completion__meta strong { font-size: .85rem; opacity: .85; }
.mrm-account-secondary { display: inline-flex; align-items: center; justify-content: center; white-space: nowrap; padding: 11px 18px; border: 1px solid rgba(201,164,92,.55); border-radius: 10px; color: #c9a45c; text-decoration: none; }
@media (max-width: 900px) {
    .mrm-account-completion { grid-template-columns: 1fr; gap: 16px; }
    .mrm-account-secondary { width: 100%; }
}


/* Step 9.28.2 — Standalone user area + responsive system */
html, body.mrm-user-page { margin:0; padding:0; min-height:100%; background:#0b1018; }
body.mrm-user-page { color:#f4f2ed; overflow-x:hidden; }
body.mrm-user-page #wpadminbar { display:none !important; }
.mrm-user-page *, .mrm-user-page *::before, .mrm-user-page *::after { box-sizing:border-box; }
.mrm-account-page-template .mrm-account-page { min-height:100vh; }
.mrm-account-wrap { width:100%; }
.mrm-account-shell { width:min(1180px, calc(100% - 40px)); }
.woocommerce-account .woocommerce { width:100%; }
.woocommerce-account .woocommerce-MyAccount-navigation, .woocommerce-account .woocommerce-MyAccount-content { min-width:0; }
@media (max-width:1199px){.mrm-account-shell{width:min(1180px,calc(100% - 36px))}.mrm-account-wrap{padding-top:56px}.woocommerce-account .woocommerce{grid-template-columns:220px minmax(0,1fr)}}
@media (max-width:991px){.mrm-account-shell{width:min(1180px,calc(100% - 36px))}.mrm-account-wrap{padding:44px 0 76px}.woocommerce-account .woocommerce{grid-template-columns:1fr}.woocommerce-account .woocommerce-MyAccount-navigation ul{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}.mrm-account-dashboard-intro{flex-direction:column;align-items:stretch}.mrm-account-primary,.mrm-account-secondary{width:100%}.mrm-account-completion{grid-template-columns:1fr}}
@media (max-width:767px){.mrm-account-shell{width:min(1180px,calc(100% - 36px))}.mrm-account-wrap{padding:32px 0 56px}.mrm-account-cards{grid-template-columns:1fr}.woocommerce-account .woocommerce-MyAccount-navigation ul{grid-template-columns:repeat(2,minmax(0,1fr))}.mrm-account-dashboard-intro{padding:18px 0 24px;margin-bottom:18px}.mrm-account-card,.mrm-account-panel,.mrm-account-completion{padding:18px}.woocommerce-account .woocommerce-MyAccount-content .woocommerce-form-login,.woocommerce-account .woocommerce-MyAccount-content .woocommerce-form-register{padding:20px 16px}.woocommerce-account .woocommerce table.shop_table{display:block;overflow-x:auto;white-space:nowrap}}
@media (max-width:479px){.mrm-account-shell{width:min(1180px,calc(100% - 36px))}.mrm-account-wrap{padding:24px 0 44px}.woocommerce-account .woocommerce-MyAccount-navigation ul{grid-template-columns:1fr}.mrm-account-dashboard-intro h2,.mrm-account-panel h2{font-size:24px}.mrm-account-card strong{font-size:16px}}

/* Step 9.28.3 — Account guest state + defensive responsive layout */
/* The account grid is for authenticated dashboard pages only. WooCommerce's
   logged-out state contains two auth forms and must remain a single full-width block. */
body.woocommerce-account:not(.logged-in) .woocommerce {
    display: block;
    width: 100%;
    max-width: 100%;
}
body.woocommerce-account:not(.logged-in) .woocommerce .u-columns,
body.woocommerce-account:not(.logged-in) .woocommerce .u-columns.col2-set {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    width: 100%;
    margin: 0;
}
body.woocommerce-account:not(.logged-in) .woocommerce .u-column1,
body.woocommerce-account:not(.logged-in) .woocommerce .u-column2 {
    float: none;
    width: 100%;
    margin: 0;
}

/* Authenticated account dashboard */
body.woocommerce-account.logged-in .woocommerce {
    display: grid;
    grid-template-columns: minmax(220px, 250px) minmax(0, 1fr);
    gap: 24px;
    width: 100%;
    max-width: 100%;
    align-items: start;
}
body.woocommerce-account.logged-in .woocommerce-MyAccount-navigation,
body.woocommerce-account.logged-in .woocommerce-MyAccount-content {
    width: auto;
    float: none;
    min-width: 0;
    margin: 0;
}

@media (max-width: 991px) {
    body.woocommerce-account.logged-in .woocommerce {
        grid-template-columns: 1fr;
        gap: 18px;
    }
    body.woocommerce-account:not(.logged-in) .woocommerce .u-columns,
    body.woocommerce-account:not(.logged-in) .woocommerce .u-columns.col2-set {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767px) {
    .mrm-account-shell { width: calc(100% - 28px); }
    body.woocommerce-account.logged-in .woocommerce {
        gap: 14px;
    }
    body.woocommerce-account.logged-in .woocommerce-MyAccount-navigation ul {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    body.woocommerce-account:not(.logged-in) .woocommerce .u-columns,
    body.woocommerce-account:not(.logged-in) .woocommerce .u-columns.col2-set {
        gap: 14px;
    }
}

@media (max-width: 479px) {
    .mrm-account-shell { width: calc(100% - 20px); }
    body.woocommerce-account.logged-in .woocommerce-MyAccount-navigation ul {
        grid-template-columns: 1fr;
    }
}


/* Step 9.29 — Dedicated MRM dashboard */
.mrm-dashboard{width:100%;display:flex;flex-direction:column;gap:24px}
.mrm-dashboard__hero{display:flex;align-items:flex-end;justify-content:space-between;gap:28px;padding:34px 0 30px;border-bottom:1px solid rgba(229,180,60,.18)}
.mrm-dashboard__hero-copy{min-width:0}
.mrm-dashboard__hero h1{margin:0 0 10px;color:#f4f2ed;font-size:clamp(28px,4vw,46px);line-height:1.35;font-weight:700}
.mrm-dashboard__hero p{max-width:720px;margin:0;color:#929cab;font-size:14px;line-height:2.1}
.mrm-dashboard__logout{flex:0 0 auto;display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:0 20px;border:1px solid #38475a;border-radius:9px;color:#d5dbe3;text-decoration:none;font-size:13px;white-space:nowrap}
.mrm-dashboard__logout:hover{border-color:#e5b43c;color:#e5b43c}
.mrm-dashboard__completion{display:grid;grid-template-columns:minmax(0,1.55fr) minmax(220px,.8fr) auto;align-items:center;gap:24px;padding:24px;border:1px solid #263446;border-radius:14px;background:#111925}
.mrm-dashboard__completion h2{margin:4px 0 7px;color:#f4f2ed;font-size:20px;line-height:1.5}
.mrm-dashboard__completion p{margin:0;color:#8994a3;font-size:13px;line-height:1.9}
.mrm-dashboard__progress{height:7px;border-radius:999px;background:#253244;overflow:hidden;margin-bottom:9px}
.mrm-dashboard__progress span{display:block;height:100%;border-radius:inherit;background:#e5b43c}
.mrm-dashboard__progress-wrap strong{font-size:12px;color:#c7ced7}
.mrm-dashboard__secondary{display:inline-flex;align-items:center;justify-content:center;min-height:42px;padding:0 18px;border:1px solid rgba(229,180,60,.55);border-radius:9px;color:#e5b43c;text-decoration:none;font-size:12px;font-weight:700;white-space:nowrap}
.mrm-dashboard__grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}
.mrm-dashboard-card{position:relative;min-height:190px;display:flex;flex-direction:column;align-items:flex-start;justify-content:flex-end;gap:8px;padding:22px;background:#111925;border:1px solid #263446;border-radius:14px;text-decoration:none;overflow:hidden;transition:.2s ease}
.mrm-dashboard-card:hover{transform:translateY(-3px);border-color:#e5b43c;background:#141f2d}
.mrm-dashboard-card__number{position:absolute;top:18px;right:20px;color:#e5b43c;font-size:10px;letter-spacing:.14em}
.mrm-dashboard-card strong{color:#f4f2ed;font-size:18px;line-height:1.5}
.mrm-dashboard-card>span:not(.mrm-dashboard-card__number){color:#8994a3;font-size:12px;line-height:1.9}
.mrm-dashboard-card b{position:absolute;bottom:20px;left:20px;color:#e5b43c;font-size:18px;font-weight:400;transition:transform .2s ease}
.mrm-dashboard-card:hover b{transform:translateX(-4px)}
.mrm-dashboard__account-info{display:grid;grid-template-columns:minmax(220px,.7fr) minmax(0,1.3fr);gap:28px;padding:24px;background:#111925;border:1px solid #263446;border-radius:14px}
.mrm-dashboard__account-info h2{margin:4px 0 0;color:#f4f2ed;font-size:20px}
.mrm-dashboard__account-info dl{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:0}
.mrm-dashboard__account-info dl>div{padding:14px;border:1px solid #263446;border-radius:10px;background:#0d1520;min-width:0}
.mrm-dashboard__account-info dt{margin-bottom:5px;color:#8994a3;font-size:11px}
.mrm-dashboard__account-info dd{margin:0;color:#e2e6eb;font-size:13px;overflow-wrap:anywhere}
@media(max-width:1100px){.mrm-dashboard__grid{grid-template-columns:repeat(2,minmax(0,1fr))}.mrm-dashboard__completion{grid-template-columns:1fr 1fr}.mrm-dashboard__secondary{grid-column:1/-1;width:max-content}}
@media(max-width:767px){.mrm-account-shell{width:calc(100% - 28px)}.mrm-dashboard{gap:16px}.mrm-dashboard__hero{align-items:stretch;flex-direction:column;padding:20px 0 22px}.mrm-dashboard__hero h1{font-size:30px}.mrm-dashboard__logout,.mrm-dashboard__secondary{width:100%}.mrm-dashboard__completion{grid-template-columns:1fr;padding:18px;gap:16px}.mrm-dashboard__secondary{grid-column:auto}.mrm-dashboard__grid{grid-template-columns:1fr}.mrm-dashboard-card{min-height:155px;padding:18px}.mrm-dashboard__account-info{grid-template-columns:1fr;padding:18px}.mrm-dashboard__account-info dl{grid-template-columns:1fr}}
@media(max-width:479px){.mrm-account-shell{width:calc(100% - 20px)}.mrm-dashboard__hero h1{font-size:26px}.mrm-dashboard__hero p{font-size:13px}.mrm-dashboard-card strong{font-size:16px}}


/* Step 9.29.2 — Force the canonical /account/ dashboard route to use the MRM dashboard only. */
body.mrm-account-dashboard-route .mrm-account-shell {
    width: min(1180px, calc(100% - 40px));
    margin-inline: auto;
}
body.mrm-account-dashboard-route .mrm-dashboard {
    width: 100%;
    max-width: 1180px;
    margin-inline: auto;
}
body.mrm-account-dashboard-route .woocommerce,
body.mrm-account-dashboard-route .woocommerce-MyAccount-navigation,
body.mrm-account-dashboard-route .woocommerce-MyAccount-content {
    display: block;
    width: 100%;
    float: none;
}
@media (max-width: 767px) {
    body.mrm-account-dashboard-route .mrm-account-shell { width: calc(100% - 28px); }
}
@media (max-width: 479px) {
    body.mrm-account-dashboard-route .mrm-account-shell { width: calc(100% - 20px); }
}


/* Step 9.30 — Custom MRM profile */
body.mrm-profile-route .mrm-account-shell{width:min(980px,calc(100% - 40px));margin-inline:auto}
.mrm-profile{display:flex;flex-direction:column;gap:18px;padding:34px 0 72px;color:#f4f2ed}
.mrm-profile__header{display:flex;align-items:flex-end;justify-content:space-between;gap:24px;padding:0 0 28px;border-bottom:1px solid rgba(229,180,60,.18)}
.mrm-profile__header h1{margin:7px 0 9px;font-size:clamp(28px,4vw,42px);line-height:1.35;color:#f4f2ed}
.mrm-profile__header p{margin:0;max-width:690px;color:#929cab;font-size:13px;line-height:2}
.mrm-profile__back{display:block;width:max-content;margin-bottom:12px;color:#e5b43c;text-decoration:none;font-size:12px}
.mrm-profile__back:hover{text-decoration:underline}
.mrm-profile__logout{display:inline-flex;align-items:center;justify-content:center;min-height:42px;padding:0 18px;border:1px solid #38475a;border-radius:9px;color:#d5dbe3;text-decoration:none;font-size:12px;white-space:nowrap}
.mrm-profile__logout:hover{border-color:#e5b43c;color:#e5b43c}
.mrm-profile__notice{padding:14px 16px;border-radius:10px;font-size:13px;line-height:1.8}
.mrm-profile__notice--success{border:1px solid rgba(90,190,130,.35);background:rgba(50,130,85,.12);color:#bce7ca}
.mrm-profile__notice--error{border:1px solid rgba(220,100,100,.35);background:rgba(150,50,50,.12);color:#f0b9b9}
.mrm-profile__completion{display:grid;grid-template-columns:150px minmax(180px,1fr) minmax(220px,.8fr);align-items:center;gap:22px;padding:20px 22px;border:1px solid #263446;border-radius:14px;background:#111925}
.mrm-profile__completion>div:first-child{display:flex;flex-direction:column;gap:3px}
.mrm-profile__completion strong{font-size:26px;color:#f4f2ed}
.mrm-profile__completion p{margin:0;color:#8994a3;font-size:12px;line-height:1.9}
.mrm-profile__progress{height:8px;border-radius:999px;background:#253244;overflow:hidden}
.mrm-profile__progress span{display:block;height:100%;border-radius:inherit;background:#e5b43c}
.mrm-profile__form{padding:24px;border:1px solid #263446;border-radius:14px;background:#111925}
.mrm-profile__form-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:20px;padding-bottom:20px;margin-bottom:20px;border-bottom:1px solid #263446}
.mrm-profile__form-heading h2{margin:5px 0 0;font-size:20px;color:#f4f2ed}
.mrm-profile__required{color:#737f8f;font-size:11px}
.mrm-profile__fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}
.mrm-profile__fields label{display:flex;flex-direction:column;gap:8px;min-width:0}
.mrm-profile__fields label>span{color:#cdd3db;font-size:12px}
.mrm-profile__fields input{width:100%;height:48px;padding:0 14px;border:1px solid #304055;border-radius:9px;background:#0d1520;color:#f4f2ed;font:inherit;font-size:13px;outline:none;transition:border-color .2s ease,box-shadow .2s ease}
.mrm-profile__fields input:focus{border-color:#e5b43c;box-shadow:0 0 0 3px rgba(229,180,60,.09)}
.mrm-profile__fields input[readonly]{color:#8f9aa8;background:#0b121c;cursor:not-allowed}
.mrm-profile__fields small{margin-top:-2px;color:#687485;font-size:10px;line-height:1.7}
.mrm-profile__actions{display:flex;align-items:center;gap:12px;margin-top:24px;padding-top:20px;border-top:1px solid #263446}
.mrm-profile__actions button{min-height:46px;padding:0 24px;border:1px solid #e5b43c;border-radius:9px;background:#e5b43c;color:#111722;font:inherit;font-size:12px;font-weight:700;cursor:pointer}
.mrm-profile__actions button:hover{filter:brightness(1.05)}
.mrm-profile__actions a{display:inline-flex;align-items:center;justify-content:center;min-height:46px;padding:0 20px;border:1px solid #38475a;border-radius:9px;color:#cdd3db;text-decoration:none;font-size:12px}
.mrm-profile__actions a:hover{border-color:#e5b43c;color:#e5b43c}
@media(max-width:767px){body.mrm-profile-route .mrm-account-shell{width:calc(100% - 28px)}.mrm-profile{padding:24px 0 52px}.mrm-profile__header{align-items:stretch;flex-direction:column;padding-bottom:22px}.mrm-profile__logout{width:100%}.mrm-profile__completion{grid-template-columns:1fr;gap:13px;padding:18px}.mrm-profile__form{padding:18px}.mrm-profile__form-heading{align-items:flex-start;flex-direction:column}.mrm-profile__fields{grid-template-columns:1fr}.mrm-profile__actions{flex-direction:column}.mrm-profile__actions button,.mrm-profile__actions a{width:100%}}
@media(max-width:479px){body.mrm-profile-route .mrm-account-shell{width:calc(100% - 20px)}.mrm-profile__header h1{font-size:27px}.mrm-profile__header p{font-size:12px}}

/* Step 9.31 — Custom MRM account security */
body.mrm-security-route .mrm-account-shell{width:min(1080px,calc(100% - 40px));margin-inline:auto}
.mrm-security{display:flex;flex-direction:column;gap:18px;padding:34px 0 72px;color:#f4f2ed}
.mrm-security__header{display:flex;align-items:flex-end;justify-content:space-between;gap:24px;padding:0 0 28px;border-bottom:1px solid rgba(229,180,60,.18)}
.mrm-security__header h1{margin:7px 0 9px;font-size:clamp(28px,4vw,42px);line-height:1.35;color:#f4f2ed}
.mrm-security__header p{margin:0;max-width:700px;color:#929cab;font-size:13px;line-height:2}
.mrm-security__back{display:block;width:max-content;margin-bottom:12px;color:#e5b43c;text-decoration:none;font-size:12px}
.mrm-security__back:hover{text-decoration:underline}
.mrm-security__logout{display:inline-flex;align-items:center;justify-content:center;min-height:42px;padding:0 18px;border:1px solid #38475a;border-radius:9px;color:#d5dbe3;text-decoration:none;font-size:12px;white-space:nowrap}
.mrm-security__logout:hover{border-color:#e5b43c;color:#e5b43c}
.mrm-security__notice{padding:14px 16px;border-radius:10px;font-size:13px;line-height:1.8}
.mrm-security__notice--success{border:1px solid rgba(90,190,130,.35);background:rgba(50,130,85,.12);color:#bce7ca}
.mrm-security__notice--error{border:1px solid rgba(220,100,100,.35);background:rgba(150,50,50,.12);color:#f0b9b9}
.mrm-security__layout{display:grid;grid-template-columns:minmax(240px,.72fr) minmax(0,1.28fr);gap:18px;align-items:start}
.mrm-security__side,.mrm-security__form{border:1px solid #263446;border-radius:14px;background:#111925}
.mrm-security__side{padding:24px;min-height:100%}
.mrm-security__side h2{margin:6px 0 9px;color:#f4f2ed;font-size:20px;line-height:1.5}
.mrm-security__side p{margin:0 0 22px;color:#8994a3;font-size:12px;line-height:2}
.mrm-security__side a{color:#e5b43c;text-decoration:none;font-size:12px}
.mrm-security__side a:hover{text-decoration:underline}
.mrm-security__form{padding:24px}
.mrm-security__form-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:20px;padding-bottom:20px;margin-bottom:20px;border-bottom:1px solid #263446}
.mrm-security__form-heading h2{margin:5px 0 0;color:#f4f2ed;font-size:20px}
.mrm-security__form-heading>span{color:#737f8f;font-size:11px}
.mrm-security__fields{display:flex;flex-direction:column;gap:18px}
.mrm-security__fields label{display:flex;flex-direction:column;gap:8px}
.mrm-security__fields label>span{color:#cdd3db;font-size:12px}
.mrm-security__fields input{width:100%;height:48px;padding:0 14px;border:1px solid #304055;border-radius:9px;background:#0d1520;color:#f4f2ed;font:inherit;font-size:13px;outline:none;transition:border-color .2s ease,box-shadow .2s ease;box-sizing:border-box}
.mrm-security__fields input:focus{border-color:#e5b43c;box-shadow:0 0 0 3px rgba(229,180,60,.09)}
.mrm-security__fields small{margin-top:-2px;color:#687485;font-size:10px;line-height:1.7}
.mrm-security__actions{display:flex;align-items:center;gap:12px;margin-top:24px;padding-top:20px;border-top:1px solid #263446}
.mrm-security__actions button{min-height:46px;padding:0 24px;border:1px solid #e5b43c;border-radius:9px;background:#e5b43c;color:#111722;font:inherit;font-size:12px;font-weight:700;cursor:pointer}
.mrm-security__actions button:hover{filter:brightness(1.05)}
.mrm-security__actions a{display:inline-flex;align-items:center;justify-content:center;min-height:46px;padding:0 20px;border:1px solid #38475a;border-radius:9px;color:#cdd3db;text-decoration:none;font-size:12px}
.mrm-security__actions a:hover{border-color:#e5b43c;color:#e5b43c}
@media(max-width:767px){body.mrm-security-route .mrm-account-shell{width:calc(100% - 28px)}.mrm-security{padding:24px 0 52px}.mrm-security__header{align-items:stretch;flex-direction:column;padding-bottom:22px}.mrm-security__logout{width:100%}.mrm-security__layout{grid-template-columns:1fr}.mrm-security__side,.mrm-security__form{padding:18px}.mrm-security__form-heading{align-items:flex-start;flex-direction:column}.mrm-security__actions{flex-direction:column}.mrm-security__actions button,.mrm-security__actions a{width:100%}}
@media(max-width:479px){body.mrm-security-route .mrm-account-shell{width:calc(100% - 20px)}.mrm-security__header h1{font-size:27px}.mrm-security__header p{font-size:12px}}

/* Step 9.32 — Custom MRM account addresses */
body.mrm-address-route .mrm-account-shell{width:min(1080px,calc(100% - 40px));margin-inline:auto}
.mrm-address{display:flex;flex-direction:column;gap:18px;padding:34px 0 72px;color:#f4f2ed}
.mrm-address__header{display:flex;align-items:flex-end;justify-content:space-between;gap:24px;padding:0 0 28px;border-bottom:1px solid rgba(229,180,60,.18)}
.mrm-address__header h1{margin:7px 0 9px;font-size:clamp(28px,4vw,42px);line-height:1.35;color:#f4f2ed}
.mrm-address__header p{margin:0;max-width:720px;color:#929cab;font-size:13px;line-height:2}
.mrm-address__back{display:block;width:max-content;margin-bottom:12px;color:#e5b43c;text-decoration:none;font-size:12px}
.mrm-address__back:hover{text-decoration:underline}
.mrm-address__logout{display:inline-flex;align-items:center;justify-content:center;min-height:42px;padding:0 18px;border:1px solid #38475a;border-radius:9px;color:#d5dbe3;text-decoration:none;font-size:12px;white-space:nowrap}
.mrm-address__logout:hover{border-color:#e5b43c;color:#e5b43c}
.mrm-address__notice{padding:14px 16px;border-radius:10px;font-size:13px;line-height:1.8}
.mrm-address__notice--success{border:1px solid rgba(90,190,130,.35);background:rgba(50,130,85,.12);color:#bce7ca}
.mrm-address__notice--error{border:1px solid rgba(220,100,100,.35);background:rgba(150,50,50,.12);color:#f0b9b9}
.mrm-address__form{display:flex;flex-direction:column;gap:18px}
.mrm-address__section{padding:24px;border:1px solid #263446;border-radius:14px;background:#111925}
.mrm-address__section-heading{padding-bottom:20px;margin-bottom:20px;border-bottom:1px solid #263446}
.mrm-address__section-heading h2{margin:5px 0 7px;color:#f4f2ed;font-size:20px;line-height:1.5}
.mrm-address__section-heading p{margin:0;color:#8994a3;font-size:12px;line-height:1.9}
.mrm-address__fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}
.mrm-address__field{display:flex;flex-direction:column;gap:8px;min-width:0}
.mrm-address__field>span{color:#cdd3db;font-size:12px}
.mrm-address__field em{color:#e5b43c;font-style:normal}
.mrm-address__field input{width:100%;height:48px;padding:0 14px;border:1px solid #304055;border-radius:9px;background:#0d1520;color:#f4f2ed;font:inherit;font-size:13px;outline:none;transition:border-color .2s ease,box-shadow .2s ease;box-sizing:border-box}
.mrm-address__field input:focus{border-color:#e5b43c;box-shadow:0 0 0 3px rgba(229,180,60,.09)}
.mrm-address__actions{display:flex;align-items:center;gap:12px;padding-top:6px}
.mrm-address__actions button{min-height:46px;padding:0 24px;border:1px solid #e5b43c;border-radius:9px;background:#e5b43c;color:#111722;font:inherit;font-size:12px;font-weight:700;cursor:pointer}
.mrm-address__actions button:hover{filter:brightness(1.05)}
.mrm-address__actions a{display:inline-flex;align-items:center;justify-content:center;min-height:46px;padding:0 20px;border:1px solid #38475a;border-radius:9px;color:#cdd3db;text-decoration:none;font-size:12px}
.mrm-address__actions a:hover{border-color:#e5b43c;color:#e5b43c}
@media(max-width:767px){
 body.mrm-address-route .mrm-account-shell{width:calc(100% - 28px)}
 .mrm-address{padding:24px 0 52px}
 .mrm-address__header{align-items:stretch;flex-direction:column;padding-bottom:22px}
 .mrm-address__logout{width:100%}
 .mrm-address__section{padding:18px}
 .mrm-address__fields{grid-template-columns:1fr}
 .mrm-address__actions{flex-direction:column}
 .mrm-address__actions button,.mrm-address__actions a{width:100%}
}
@media(max-width:479px){
 body.mrm-address-route .mrm-account-shell{width:calc(100% - 20px)}
 .mrm-address__header h1{font-size:27px}
 .mrm-address__header p{font-size:12px}
}


/* Step 9.33.1 — Orders route color-system refinement */
.mrm-orders{max-width:1180px;margin:0 auto;padding:48px 24px 72px;color:#f4f2ed}
.mrm-orders__header{display:flex;align-items:flex-end;justify-content:space-between;gap:32px;margin-bottom:28px;padding-bottom:28px;border-bottom:1px solid rgba(229,180,60,.18)}
.mrm-orders__back{display:inline-flex;margin-bottom:18px;text-decoration:none;color:#e5b43c;font-weight:600}
.mrm-orders__back:hover{color:#f0c968}
.mrm-orders__header h1{margin:8px 0 10px;font-size:clamp(30px,4vw,48px);line-height:1.35;color:#f4f2ed}
.mrm-orders__header p{margin:0;max-width:680px;line-height:2;color:#929cab}
.mrm-orders__logout{display:inline-flex;align-items:center;justify-content:center;padding:12px 18px;border:1px solid #38475a;border-radius:9px;text-decoration:none;color:#d5dbe3;white-space:nowrap}
.mrm-orders__logout:hover{border-color:#e5b43c;color:#e5b43c}
.mrm-orders__quick-nav{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:24px}
.mrm-orders__quick-nav a{padding:10px 14px;border:1px solid #263446;border-radius:999px;text-decoration:none;color:#aeb7c2;background:#111925;transition:.2s ease}
.mrm-orders__quick-nav a:hover{border-color:#e5b43c;color:#e5b43c;background:#141f2d}
.mrm-orders__panel{background:#111925;border:1px solid #263446;border-radius:14px;overflow:hidden;box-shadow:0 12px 35px rgba(0,0,0,.16)}
.mrm-orders__panel-head{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:26px 28px;border-bottom:1px solid #263446}
.mrm-orders__panel-head h2{margin:7px 0 0;font-size:24px;color:#f4f2ed}
.mrm-orders__count{padding:8px 12px;border-radius:999px;background:rgba(229,180,60,.09);border:1px solid rgba(229,180,60,.2);color:#e5b43c;font-weight:700;white-space:nowrap}
.mrm-orders__list{display:grid}
.mrm-order-card{display:flex;align-items:center;justify-content:space-between;gap:24px;padding:22px 28px;border-bottom:1px solid #263446;background:#111925;transition:background .2s ease}
.mrm-order-card:hover{background:#141f2d}
.mrm-order-card:last-child{border-bottom:0}
.mrm-order-card__main,.mrm-order-card__meta{display:flex;align-items:center;gap:18px}
.mrm-order-card__main{color:#cdd3db}
.mrm-order-card__number{font-weight:800;min-width:72px;color:#e5b43c}
.mrm-order-card__main strong{font-weight:700;color:#f4f2ed}
.mrm-order-card__status{padding:7px 11px;border-radius:999px;background:rgba(229,180,60,.09);border:1px solid rgba(229,180,60,.18);color:#e5b43c;font-size:13px;font-weight:700;white-space:nowrap}
.mrm-order-card__status--completed{background:rgba(90,190,130,.10);border-color:rgba(90,190,130,.25);color:#bce7ca}
.mrm-order-card__status--processing{background:rgba(229,180,60,.10);border-color:rgba(229,180,60,.24);color:#e5b43c}
.mrm-order-card__status--cancelled,.mrm-order-card__status--failed,.mrm-order-card__status--refunded{background:rgba(220,100,100,.10);border-color:rgba(220,100,100,.24);color:#f0b9b9}
.mrm-order-card__meta a{text-decoration:none;color:#cdd3db;font-weight:700;white-space:nowrap}
.mrm-order-card__meta a:hover{color:#e5b43c}
.mrm-orders__empty{display:flex;align-items:center;gap:24px;padding:42px 28px;background:#111925}
.mrm-orders__empty-number{font-size:48px;font-weight:800;color:#e5b43c;opacity:.2}
.mrm-orders__empty strong{font-size:20px;color:#f4f2ed}
.mrm-orders__empty p{margin:8px 0 0;color:#8994a3;line-height:1.8}
@media(max-width:700px){
 .mrm-orders{padding:28px 16px 48px}
 .mrm-orders__header{align-items:flex-start;flex-direction:column;gap:18px}
 .mrm-orders__logout{width:100%}
 .mrm-orders__panel-head{align-items:flex-start;flex-direction:column;padding:22px 18px}
 .mrm-order-card{align-items:flex-start;flex-direction:column;padding:20px 18px;gap:14px}
 .mrm-order-card__main,.mrm-order-card__meta{width:100%;justify-content:space-between;gap:10px;flex-wrap:wrap}
 .mrm-orders__empty{align-items:flex-start;padding:34px 18px;gap:16px}
 .mrm-orders__empty-number{font-size:34px}
}


/* Step 9.34 — MRM Courses page */
.mrm-courses{max-width:1180px;margin:0 auto;padding:48px 24px 72px;color:#f4f2ed}
.mrm-courses__header{display:flex;align-items:flex-end;justify-content:space-between;gap:32px;margin-bottom:24px;padding-bottom:28px;border-bottom:1px solid rgba(229,180,60,.18)}
.mrm-courses__back{display:inline-flex;margin-bottom:18px;text-decoration:none;color:#e5b43c;font-weight:600}
.mrm-courses__back:hover{color:#f0c968}
.mrm-courses__header h1{margin:8px 0 10px;font-size:clamp(30px,4vw,48px);line-height:1.35;color:#f4f2ed}
.mrm-courses__header p{margin:0;max-width:700px;line-height:2;color:#929cab}
.mrm-courses__logout{display:inline-flex;align-items:center;justify-content:center;padding:12px 18px;border:1px solid #38475a;border-radius:9px;text-decoration:none;color:#d5dbe3;white-space:nowrap}
.mrm-courses__logout:hover{border-color:#e5b43c;color:#e5b43c}
.mrm-courses__quick-nav{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:24px}
.mrm-courses__quick-nav a{padding:10px 14px;border:1px solid #263446;border-radius:999px;text-decoration:none;color:#aeb7c2;background:#111925;transition:.2s ease}
.mrm-courses__quick-nav a:hover{border-color:#e5b43c;color:#e5b43c;background:#141f2d}
.mrm-courses__panel{background:#111925;border:1px solid #263446;border-radius:14px;overflow:hidden;box-shadow:0 12px 35px rgba(0,0,0,.16)}
.mrm-courses__panel-head{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:26px 28px;border-bottom:1px solid #263446}
.mrm-courses__panel-head h2{margin:7px 0 0;font-size:24px;color:#f4f2ed}
.mrm-courses__count{padding:8px 12px;border-radius:999px;background:rgba(229,180,60,.09);border:1px solid rgba(229,180,60,.2);color:#e5b43c;font-weight:700;white-space:nowrap}
.mrm-courses__empty{display:flex;align-items:center;gap:28px;padding:54px 40px;background:#111925}
.mrm-courses__empty-number{font-size:76px;line-height:1;font-weight:800;color:#e5b43c;opacity:.16}
.mrm-courses__empty-copy h3{margin:8px 0 8px;font-size:24px;color:#f4f2ed}
.mrm-courses__empty-copy p{margin:0;max-width:700px;color:#8994a3;line-height:2}
.mrm-courses__empty-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:24px}
.mrm-courses__primary,.mrm-courses__secondary{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:0 20px;border-radius:9px;text-decoration:none;font-size:13px;font-weight:700}
.mrm-courses__primary{background:#e5b43c;color:#111722;border:1px solid #e5b43c}
.mrm-courses__secondary{background:transparent;color:#cdd3db;border:1px solid #38475a}
.mrm-courses__primary:hover{filter:brightness(1.06)}
.mrm-courses__secondary:hover{border-color:#e5b43c;color:#e5b43c}
.mrm-courses__grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1px;background:#263446}
.mrm-course-card{padding:26px;background:#111925}
.mrm-course-card__top{display:flex;justify-content:space-between;color:#8f9aaa;font-size:11px;letter-spacing:.08em}
.mrm-course-card__top strong{color:#e5b43c;font-size:13px;letter-spacing:0}
.mrm-course-card h3{margin:20px 0;color:#f4f2ed;font-size:20px}
.mrm-course-card__progress{height:7px;border-radius:999px;background:#202c3c;overflow:hidden}
.mrm-course-card__progress span{display:block;height:100%;background:#e5b43c;border-radius:inherit}
.mrm-course-card>a{display:inline-flex;margin-top:18px;color:#e5b43c;text-decoration:none;font-weight:700;font-size:13px}
@media(max-width:700px){
 .mrm-courses{padding:28px 16px 48px}
 .mrm-courses__header{align-items:flex-start;flex-direction:column;gap:18px}
 .mrm-courses__logout{width:100%}
 .mrm-courses__panel-head{align-items:flex-start;flex-direction:column;padding:22px 18px}
 .mrm-courses__empty{align-items:flex-start;padding:36px 18px;gap:16px}
 .mrm-courses__empty-number{font-size:46px}
 .mrm-courses__empty-copy h3{font-size:20px}
 .mrm-courses__grid{grid-template-columns:1fr}
}


/* Step 9.36 — User Courses Download Access */
.mrm-courses-account{width:100%;display:flex;flex-direction:column;gap:24px}.mrm-courses-account__header{padding:10px 0 30px;border-bottom:1px solid rgba(229,180,60,.18)}.mrm-courses-account__back{display:inline-block;margin-bottom:22px;color:#929cab;text-decoration:none;font-size:12px}.mrm-courses-account__back:hover{color:#e5b43c}.mrm-courses-account__header h1{margin:0 0 10px;color:#f4f2ed;font-size:clamp(28px,4vw,46px);line-height:1.35}.mrm-courses-account__header p,.mrm-courses-account__intro p{margin:0;color:#929cab;font-size:14px;line-height:2}.mrm-courses-account__intro{padding:24px;background:#111925;border:1px solid #263446;border-radius:14px}.mrm-courses-account__intro h2{margin:4px 0 8px;color:#f4f2ed;font-size:22px}.mrm-course-downloads{display:grid;grid-template-columns:1fr;gap:14px}.mrm-course-download-card{display:flex;align-items:center;justify-content:space-between;gap:24px;padding:22px 24px;background:#111925;border:1px solid #263446;border-radius:14px;transition:.2s ease}.mrm-course-download-card:hover{border-color:#e5b43c;background:#141f2d}.mrm-course-download-card__content{min-width:0}.mrm-course-download-card__eyebrow{display:block;color:#e5b43c;font-size:9px;letter-spacing:.14em;margin-bottom:7px}.mrm-course-download-card h3{margin:0 0 5px;color:#f4f2ed;font-size:17px;line-height:1.7}.mrm-course-download-card p{margin:0;color:#929cab;font-size:12px;line-height:1.8;word-break:break-word}.mrm-course-download-card small{display:block;margin-top:8px;color:#6f7a89;font-size:11px}.mrm-course-download-card__button{flex:0 0 auto;display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:44px;padding:0 18px;background:#e5b43c;color:#17120a;text-decoration:none;border-radius:9px;font-size:12px;font-weight:700}.mrm-course-download-card__button:hover{color:#17120a;filter:brightness(1.06)}.mrm-courses-account__empty{padding:42px 28px;text-align:center;background:#111925;border:1px dashed #334256;border-radius:14px}.mrm-courses-account__empty h2{margin:5px 0 10px;color:#f4f2ed;font-size:22px}.mrm-courses-account__empty p{max-width:620px;margin:0 auto 22px;color:#929cab;font-size:13px;line-height:2}.mrm-courses-account__empty .mrm-account-primary{display:inline-flex}@media(max-width:640px){.mrm-course-download-card{align-items:stretch;flex-direction:column;padding:18px}.mrm-course-download-card__button{width:100%}.mrm-courses-account__empty{padding:32px 18px}}

/* Step 9.37 — Unified account navigation */
.mrm-account-global-nav{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 28px;padding:10px;border:1px solid #263446;border-radius:18px;background:#111925}
.mrm-account-global-nav__link{display:inline-flex;align-items:center;justify-content:center;min-height:40px;padding:9px 15px;border:1px solid transparent;border-radius:999px;text-decoration:none;color:#aeb7c2;background:transparent;transition:.2s ease;font-size:14px;line-height:1.2}
.mrm-account-global-nav__logo{display:inline-flex;align-items:center;justify-content:center;min-height:40px;padding:6px 12px;border:1px solid transparent;border-radius:999px;text-decoration:none;background:transparent;transition:.2s ease}.mrm-account-global-nav__logo img{display:block;max-width:150px;max-height:34px;width:auto;height:auto}.mrm-account-global-nav__logo:hover{border-color:transparent !important;border-width:0 !important;background:transparent}
.mrm-account-global-nav__link:hover{border-color:#e5b43c;color:#e5b43c;background:#141f2d}
.mrm-account-global-nav__link.is-active{border-color:#e5b43c;color:#e5b43c;background:#1d1e28;box-shadow:0 0 0 1px rgba(229,180,60,.08) inset}
@media (max-width:640px){.mrm-account-global-nav{gap:6px;padding:8px;margin-bottom:20px}.mrm-account-global-nav__link{flex:1 1 calc(50% - 6px);font-size:13px;padding:9px 10px}}


/* Step 9.48.1 — Commerce links inside MRM Account */
.mrm-dashboard-card--commerce small { font-size:.72em; opacity:.75; }
.mrm-dashboard-card--commerce { border-color: rgba(201,164,92,.45); }

/* Step 9.48.3 — Unified Account Shell / readability correction */
.mrm-account-shellbar{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:24px;width:100%;padding:16px 20px;margin:0 0 28px;background:#1D1E28;border:1px solid #353848;border-radius:16px;box-shadow:0 10px 30px rgba(0,0,0,.16);direction:rtl}
.mrm-account-shellbar__brand{color:#F4F2ED;text-decoration:none;font-size:13px;font-weight:800;letter-spacing:.08em;white-space:nowrap;direction:ltr}
.mrm-account-shellbar__brand:hover{color:#C9A45C}
.mrm-account-shellbar__title{display:flex;flex-direction:column;gap:3px;min-width:0}
.mrm-account-shellbar__title span{font-size:10px;color:#C9A45C;letter-spacing:.12em}
.mrm-account-shellbar__title strong{font-size:17px;line-height:1.5;color:#fff;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.mrm-account-shellbar__actions{display:flex;align-items:center;justify-content:flex-start;gap:8px;flex-wrap:wrap}
.mrm-account-shellbar__actions a{display:inline-flex;align-items:center;justify-content:center;min-height:38px;padding:0 13px;border-radius:9px;text-decoration:none;font-size:11px;font-weight:700;white-space:nowrap}
.mrm-account-shellbar__home{background:#C9A45C;color:#1D1E28!important;border:1px solid #C9A45C}
.mrm-account-shellbar__dashboard,.mrm-account-shellbar__logout{background:#262A36;color:#F4F2ED!important;border:1px solid #454B5B}
.mrm-account-shellbar__actions a:hover{filter:brightness(1.08)}
.mrm-account-shellbar--commerce{margin-bottom:20px}
body.mrm-user-page .mrm-account-shellbar + .mrm-dashboard__hero,
body.mrm-user-page .mrm-account-shellbar + .mrm-profile,
body.mrm-user-page .mrm-account-shellbar + .mrm-address,
body.mrm-user-page .mrm-account-shellbar + .mrm-orders,
body.mrm-user-page .mrm-account-shellbar + .mrm-security,
body.mrm-user-page .mrm-account-shellbar + .mrm-courses-account{margin-top:0}
@media(max-width:767px){.mrm-account-shellbar{grid-template-columns:1fr;gap:12px;padding:15px;margin-bottom:20px}.mrm-account-shellbar__title{order:1}.mrm-account-shellbar__brand{order:0}.mrm-account-shellbar__actions{order:2;display:grid;grid-template-columns:1fr 1fr;gap:7px}.mrm-account-shellbar__actions a{width:100%}.mrm-account-shellbar__home{grid-column:1/-1}.mrm-account-shellbar__title strong{font-size:16px}}

/* MRM Container Standardization — Account Pages
 * Canonical reference: global .container = min(1180px, calc(100% - 36px))
 */
.mrm-user-page .mrm-account-shell,
.mrm-account-page-template .mrm-account-shell,
body.mrm-profile-route .mrm-account-shell,
body.mrm-security-route .mrm-account-shell,
body.mrm-address-route .mrm-account-shell,
body.mrm-orders-route .mrm-account-shell,
body.mrm-courses-route .mrm-account-shell,
body.mrm-account-dashboard-route .mrm-account-shell {
  width: min(1180px, calc(100% - 36px)) !important;
  max-width: none !important;
  margin-inline: auto !important;
}

/* Step 9.48.16 — Profile photo */
.mrm-profile__photo{display:flex;align-items:center;gap:18px;padding:0 0 22px;margin-bottom:22px;border-bottom:1px solid #263446}
.mrm-profile__photo-preview{width:88px;height:88px;border-radius:50%;overflow:hidden;display:flex;align-items:center;justify-content:center;border:1px solid #304055;background:#0d1520;color:#737f8f;font-size:11px;flex:0 0 88px}
.mrm-profile__photo-preview img{display:block;width:100%;height:100%;object-fit:cover}
.mrm-profile__photo-copy{display:flex;flex-direction:column;gap:7px;min-width:0}
.mrm-profile__photo-copy label{color:#cdd3db;font-size:12px}
.mrm-profile__photo-copy input[type=file]{max-width:100%;color:#929cab;font:inherit;font-size:12px}
.mrm-profile__photo-copy small{color:#687485;font-size:10px;line-height:1.7}
@media (max-width:767px){.mrm-profile__photo{align-items:flex-start}.mrm-profile__photo-copy{flex:1}.mrm-profile__photo-copy input[type=file]{width:100%}}

/* Step 9.48.17 — corrected dashboard avatar and profile quick links */
.mrm-dashboard__account-info-head{display:flex;align-items:center;gap:16px;min-width:0}
.mrm-dashboard__account-avatar{width:64px;height:64px;flex:0 0 64px;border-radius:50%;overflow:hidden;display:flex;align-items:center;justify-content:center;border:1px solid #304055;background:#0d1520;color:#e5b43c;font-size:22px;font-weight:700}
.mrm-dashboard__account-avatar img{display:block;width:100%;height:100%;object-fit:cover}
.mrm-profile__quick-links{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin-top:20px}
.mrm-profile__quick-card{position:relative;display:flex;flex-direction:column;gap:8px;min-height:150px;padding:20px;border:1px solid #263446;border-radius:14px;background:#111925;text-decoration:none;transition:.2s ease}
.mrm-profile__quick-card:hover{border-color:#e5b43c;transform:translateY(-2px)}
.mrm-profile__quick-card strong{color:#f4f2ed;font-size:18px}
.mrm-profile__quick-card>span:not(.mrm-account-eyebrow){color:#8994a3;font-size:12px;line-height:1.8}
.mrm-profile__quick-card b{margin-top:auto;color:#e5b43c;font-size:18px}
@media(max-width:767px){.mrm-profile__quick-links{grid-template-columns:1fr}}

/* Profile intro: keep eyebrow, title and description on separate lines. */
.mrm-profile__dashboard-intro > div:first-child{display:block;min-width:0}
.mrm-profile__dashboard-intro .mrm-account-eyebrow{display:block;margin-bottom:9px}
.mrm-profile__dashboard-intro h2{display:block;margin-top:0}
.mrm-profile__dashboard-intro p{display:block}

/* Step 9.48.18 — Move dashboard user photo to the greeting row */
.mrm-account-dashboard-intro{align-items:center}
.mrm-account-dashboard-intro > div:first-child{display:flex;align-items:center;gap:16px;min-width:0}
.mrm-dashboard-greeting-avatar{width:64px;height:64px;flex:0 0 64px;border-radius:50%;overflow:hidden;display:flex;align-items:center;justify-content:center;border:1px solid #304055;background:#0d1520;color:#e5b43c;font-size:22px;font-weight:700}
.mrm-dashboard-greeting-avatar img{display:block;width:100%;height:100%;object-fit:cover}
@media(max-width:900px){.mrm-account-dashboard-intro > div:first-child{width:100%}}


/* Step 9.48.19 — Dashboard greeting photo sizing and inline greeting */
.mrm-account-dashboard-intro{align-items:center;justify-content:space-between;gap:30px}
.mrm-dashboard-greeting-group{display:flex;align-items:center;gap:20px;min-width:0;flex:1}
.mrm-dashboard-greeting-copy{min-width:0}
.mrm-dashboard-greeting-avatar{width:160px;height:160px;flex:0 0 160px}
.mrm-dashboard-greeting-avatar img{width:100%;height:100%;object-fit:cover}
@media(max-width:900px){
  .mrm-account-dashboard-intro{align-items:flex-start}
  .mrm-dashboard-greeting-group{width:100%;gap:16px}
  .mrm-dashboard-greeting-avatar{width:160px;height:160px;flex-basis:160px}
}
@media(max-width:640px){
  .mrm-dashboard-greeting-group{gap:12px}
  .mrm-dashboard-greeting-avatar{width:120px;height:120px;flex-basis:120px}
}
@media(max-width:479px){
  .mrm-dashboard-greeting-group{gap:10px}
  .mrm-dashboard-greeting-avatar{width:100px;height:100px;flex-basis:100px}
}


/* Step 9.48.19 FINAL — Dashboard greeting: avatar and greeting are explicitly inline */
.mrm-account-dashboard-intro .mrm-dashboard-greeting-group {
  display:flex !important;
  flex-direction:row !important;
  align-items:center !important;
  justify-content:flex-start !important;
  gap:24px !important;
  flex:1 1 auto !important;
  min-width:0 !important;
  width:auto !important;
  text-align:right !important;
}
.mrm-account-dashboard-intro .mrm-dashboard-greeting-avatar {
  width:160px !important;
  height:160px !important;
  min-width:160px !important;
  max-width:160px !important;
  flex:0 0 160px !important;
  border-radius:50% !important;
}
.mrm-account-dashboard-intro .mrm-dashboard-greeting-copy {
  flex:1 1 auto !important;
  min-width:0 !important;
  text-align:right !important;
}
@media (max-width:767px){
  .mrm-account-dashboard-intro .mrm-dashboard-greeting-group { gap:16px !important; }
  .mrm-account-dashboard-intro .mrm-dashboard-greeting-avatar { width:120px !important; height:120px !important; min-width:120px !important; max-width:120px !important; flex-basis:120px !important; }
}
@media (max-width:479px){
  .mrm-account-dashboard-intro .mrm-dashboard-greeting-group { gap:12px !important; }
  .mrm-account-dashboard-intro .mrm-dashboard-greeting-avatar { width:100px !important; height:100px !important; min-width:100px !important; max-width:100px !important; flex-basis:100px !important; }
}


/* Step 9.48.20 — Profile save refresh + MRM-styled profile photo controls */
.mrm-profile__photo-copy{align-items:flex-start}
.mrm-profile__photo-label{color:#f4f2ed;font-size:13px;font-weight:700;line-height:1.7}
.mrm-profile__photo-button{display:inline-flex;align-items:center;justify-content:center;min-height:42px;padding:0 18px;border:1px solid #e5b43c;border-radius:9px;background:#e5b43c;color:#111722;font-size:12px;font-weight:700;line-height:1;cursor:pointer;transition:filter .2s ease,transform .2s ease}
.mrm-profile__photo-button:hover{filter:brightness(1.05);transform:translateY(-1px)}
.mrm-profile__photo-input{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}
.mrm-profile__photo-preview{border-color:#38475a;background:#0b121c;color:#8994a3}
@media(max-width:767px){.mrm-profile__photo-copy{align-items:flex-start}.mrm-profile__photo-button{min-height:44px;padding:0 20px}}


/* Step 9.48.21 — Orders page aligned with Profile UX */
body.mrm-orders-route .mrm-orders{width:min(1180px,calc(100% - 36px));max-width:none;margin-inline:auto;padding:28px 0 72px}
body.mrm-orders-route .mrm-account-global-nav{margin-bottom:28px}
body.mrm-orders-route .mrm-orders__header{display:block;margin-bottom:28px;padding:0;border:0}
body.mrm-orders-route .mrm-orders__header h1{margin:7px 0 10px;font-size:clamp(28px,3.4vw,40px);line-height:1.35}
body.mrm-orders-route .mrm-orders__header p{margin:0;max-width:680px}
body.mrm-orders-route .mrm-orders__logout,body.mrm-orders-route .mrm-orders__back,body.mrm-orders-route .mrm-orders__quick-nav{display:none!important}
body.mrm-orders-route .mrm-orders__panel{border-radius:14px}
body.mrm-orders-route .mrm-orders__empty{flex-direction:column;align-items:flex-start}
body.mrm-orders-route .mrm-orders__shop{display:inline-flex;align-items:center;justify-content:center;margin-top:18px;padding:11px 18px;border-radius:9px;background:#e5b43c;color:#1d1e28;text-decoration:none;font-weight:700}
body.mrm-orders-route .mrm-orders__shop:hover{background:#f0c968;color:#1d1e28}
@media(max-width:767px){body.mrm-orders-route .mrm-orders{width:calc(100% - 36px);padding:20px 0 48px}body.mrm-orders-route .mrm-orders__header h1{font-size:30px}}

/* Profile intro final scope: override later dashboard greeting rules only on Profile. */
body.mrm-profile-route .mrm-profile__dashboard-intro > div:first-child {
    display: block !important;
    min-width: 0;
}
body.mrm-profile-route .mrm-profile__dashboard-intro .mrm-account-eyebrow,
body.mrm-profile-route .mrm-profile__dashboard-intro h2,
body.mrm-profile-route .mrm-profile__dashboard-intro p {
    display: block !important;
}

/* Step 9.35 — Align Security and Addresses with the shared Account page format. */
body.mrm-security-route .mrm-security,
body.mrm-address-route .mrm-address {
    width: min(1180px, calc(100% - 36px));
    max-width: none;
    margin-inline: auto;
    padding: 28px 0 72px;
}

body.mrm-security-route .mrm-security__header,
body.mrm-address-route .mrm-address__header {
    display: block;
    margin-bottom: 28px;
    padding: 0;
    border: 0;
}

body.mrm-security-route .mrm-security__header h1,
body.mrm-address-route .mrm-address__header h1 {
    margin: 7px 0 10px;
    font-size: clamp(28px, 3.4vw, 40px);
    line-height: 1.35;
}

body.mrm-security-route .mrm-security__header p,
body.mrm-address-route .mrm-address__header p {
    margin: 0;
    max-width: 700px;
}

body.mrm-security-route .mrm-security__back,
body.mrm-security-route .mrm-security__logout,
body.mrm-address-route .mrm-address__back,
body.mrm-address-route .mrm-address__logout {
    display: none !important;
}

@media (max-width: 767px) {
    body.mrm-security-route .mrm-security,
    body.mrm-address-route .mrm-address {
        width: calc(100% - 28px);
        padding: 24px 0 52px;
    }
}

@media (max-width: 479px) {
    body.mrm-security-route .mrm-security,
    body.mrm-address-route .mrm-address {
        width: calc(100% - 20px);
    }

    body.mrm-security-route .mrm-security__header h1,
    body.mrm-address-route .mrm-address__header h1 {
        font-size: 27px;
    }

    body.mrm-security-route .mrm-security__header p,
    body.mrm-address-route .mrm-address__header p {
        font-size: 12px;
    }
}

/* Step 9.49 — Canonical Account spacing/UI: Dashboard is the single visual reference. */
body.mrm-account-page-template .mrm-account-shell,
body.mrm-account-page-template .mrm-profile,
body.mrm-account-page-template .mrm-security,
body.mrm-account-page-template .mrm-address,
body.mrm-account-page-template .mrm-orders,
body.mrm-account-page-template .mrm-courses {
    box-sizing: border-box;
}

body.mrm-account-page-template .mrm-profile,
body.mrm-account-page-template .mrm-security,
body.mrm-account-page-template .mrm-address,
body.mrm-account-page-template .mrm-orders,
body.mrm-account-page-template .mrm-courses {
    width: 100%;
    max-width: none;
    margin-inline: 0;
    padding: 0 0 72px;
}

body.mrm-account-page-template .mrm-account-global-nav {
    width: 100%;
    box-sizing: border-box;
    margin: 0 0 28px;
    padding: 10px;
    gap: 8px;
    border: 1px solid #263446;
    border-radius: 18px;
    background: #111925;
}

body.mrm-account-page-template .mrm-account-global-nav__link {
    min-height: 40px;
    padding: 9px 15px;
    font-size: 14px;
    line-height: 1.2;
}

@media (max-width: 640px) {
    body.mrm-account-page-template .mrm-account-global-nav {
        gap: 6px;
        padding: 8px;
        margin-bottom: 20px;
    }
    body.mrm-account-page-template .mrm-account-global-nav__link {
        flex: 1 1 calc(50% - 6px);
        font-size: 13px;
        padding: 9px 10px;
    }
}
