/* Public pages do not load Bootstrap. These rules implement the approved phone
   cards only; desktop wrappers use display:contents to preserve the original flow. */
.account-mobile-heading, .account-mobile-titles, .account-desktop-eyebrow { display: contents; }
.account-mobile-only, .account-mobile-mark, .account-mobile-design .provider-label-short { display: none; }

@media (max-width:767.98px) {
    .account-mobile-design .account-layout {
        display:block; border:0; border-radius:0; background:transparent; box-shadow:none;
    }
    .account-mobile-design .account-signin {
        padding:20px; background:#fff; border:1px solid var(--line);
        border-top:3px solid #b29a62; border-radius:0; box-shadow:none;
    }
    .account-mobile-design .account-desktop-only,
    .account-mobile-design .account-desktop-eyebrow,
    .account-mobile-design:not(.account-mobile-home) .account-welcome { display:none; }
    .account-mobile-design .account-mobile-only { display:block; }
    .account-mobile-design .account-mobile-heading {
        display:grid; grid-template-columns:48px minmax(0,1fr); align-items:stretch;
        gap:12px; margin-bottom:12px;
    }
    .account-mobile-design .account-mobile-titles {
        display:flex; flex-direction:column; justify-content:center; gap:2px; min-height:48px;
    }
    .account-mobile-design .account-mobile-mark {
        display:grid; place-items:center; width:48px; min-height:48px; align-self:stretch;
        background:#f4eddf; color:#8d6e31; border-radius:4px;
    }
    .account-mobile-mark > .icon { width:28px; height:28px; }
    .account-mobile-heading .account-eyebrow {
        margin:0; font-size:10px; line-height:1.2; letter-spacing:.1em; text-transform:uppercase;
    }
    .account-mobile-heading h1 { margin:0; font-size:27px; line-height:1.2; letter-spacing:-.025em; }
    .account-mobile-design .account-intro,
    .account-mobile-design .account-flow > p:not(.account-eyebrow) {
        margin:0 0 20px; font-size:15px; line-height:1.45; color:#526074;
    }
    /* Recovery options reuse the account buttons; only phone spacing changes. */
    .account-mobile-design .account-recovery-step { margin:24px 0 8px; font-size:17px; line-height:1.4; }
    .account-mobile-heading + .account-recovery-step { margin-top:4px; }
    #content .account-mobile-design .account-recovery-copy { margin:0 0 12px; }
    #content .account-mobile-design .account-recovery-action { width:100%; }
    .account-mobile-design .account-form { margin:0; }
    .account-mobile-design .account-form label { margin-bottom:7px; font-size:14px; }
    .account-mobile-design .account-form input:not([type=hidden]) {
        height:48px; min-height:48px; padding:10px 12px; border-color:#8795a9; font-size:16px;
    }
    .account-mobile-design .account-password-label { align-items:center; gap:8px; margin-top:8px; min-height:44px; }
    .account-mobile-design .account-password-label label { margin:0; }
    .account-mobile-design .account-password-label a { display:flex; align-items:center; min-height:44px; font-size:13px; font-weight:700; }
    #content .account-mobile-design .account-actions { display:grid; grid-template-columns:minmax(0,1fr) 88px; gap:8px; margin-top:16px; }
    /* Match the shared important mobile button sizing without changing desktop. */
    #content .account-mobile-design .account-actions > .button {
        min-width:0; width:100%; min-height:48px; padding:10px 8px !important;
        font-size:14px !important; line-height:1.35; letter-spacing:0; text-transform:none;
        justify-content:center; gap:6px; white-space:nowrap; box-shadow:none;
    }
    #content .account-mobile-design .account-actions > .button > .icon { width:17px; height:17px; flex:0 0 17px; }
    .account-mobile-design .account-actions:has(.account-clear[hidden]) { grid-template-columns:minmax(0,1fr); }
    .account-mobile-design .account-divider.account-mobile-only { display:flex; margin:18px 0 12px; gap:12px; font-size:12px; }
    #content .account-mobile-design .account-signin [data-passkey-sign-in] {
        background:#fff; color:var(--navy); border-color:#b7c2d0; text-transform:none;
    }
    #content .account-mobile-design .account-signin [data-passkey-sign-in]:is(:hover,:focus-visible) { background:#f3f4f7; color:var(--navy); border-color:var(--navy); }
    /* Face ID offered first (account.css): the one filled button above the password form. */
    #content .account-mobile-design .account-signin .is-promoted [data-passkey-sign-in],
    #content .account-mobile-design .account-signin .is-promoted [data-passkey-sign-in]:is(:hover,:focus-visible) { background:var(--navy); color:#fff; border-color:var(--navy); font-size:16px; }
    .account-mobile-design .account-passkey-section.is-promoted .account-password-divider { margin:18px 0 12px; gap:12px; font-size:12px; }
    .account-mobile-design .account-passkey-status { font-size:13px; }
    .account-mobile-design .account-action-biometric { background:transparent; }
    .account-mobile-design .external-signins { grid-template-columns:repeat(3,minmax(0,1fr)); gap:8px; margin-top:8px; }
    #content .account-mobile-design .external-signins button { min-height:46px; gap:6px; padding:8px 4px !important; font-size:12px !important; text-transform:none; box-shadow:none; }
    .account-mobile-design .external-signins .provider-mark,
    .account-mobile-design .external-signins .provider-mark svg { width:17px; height:17px; flex:0 0 17px; }
    /* Retain the full accessible provider action while displaying a compact label. */
    .account-mobile-design .provider-label-full { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap; }
    .account-mobile-design .provider-label-short { display:inline; }
    #content .account-mobile-help { margin:10px 0 0; padding:0; border:0; background:transparent; }
    #content .account-mobile-help summary { display:flex; align-items:center; gap:9px; min-height:44px; padding:0; background:transparent; color:#35445b; font-size:13px; list-style:none; }
    .account-mobile-help summary::-webkit-details-marker { display:none; }
    #content .account-mobile-help summary::after { display:none; }
    .account-mobile-help summary > .icon { width:14px; height:14px; color:#8d6e31; }
    .account-mobile-help summary > .icon:last-child { margin-left:auto; width:12px; }
    .account-mobile-help[open] summary > .icon:last-child { transform:rotate(90deg); }
    .account-mobile-help p { margin:6px 0 0; font-size:13px; line-height:1.6; color:#526074; }
    .account-mobile-help p a { display:inline-flex; align-items:center; min-height:44px; }
    .account-mobile-design .account-mobile-welcome {
        display:flex; gap:12px; padding:16px; margin-top:12px; border:1px solid #d9d4c8;
        background:#f2eee5; color:var(--navy);
    }
    .account-mobile-welcome h2 { margin:0 0 3px; font-size:var(--section-heading-size); line-height:1.4; }
    .account-mobile-welcome p { margin:0; font-size:13px; line-height:1.4; color:#526074; }
    .account-mobile-welcome a { display:inline-flex; align-items:center; gap:8px; min-height:44px; font-size:13px; font-weight:700; color:var(--navy); }
    .account-mobile-welcome a > .icon { width:13px; height:13px; }
    /* Shared mobile action treatment matches Sign In; secondary navigation matches Clear. */
    #content .account-mobile-design .account-mobile-button {
        display:inline-flex; align-items:center; justify-content:center; gap:8px;
        max-width:100%; min-height:48px; margin:0;
        padding:10px 14px !important; border:1px solid var(--navy); border-radius:4px;
        background:var(--navy); color:#fff; font-size:14px !important; font-weight:700; line-height:1.35;
        text-transform:none; letter-spacing:0; text-decoration:none; box-shadow:none;
    }
    #content .account-mobile-design .account-mobile-button > .icon { width:17px; height:17px; flex:0 0 17px; }
    #content .account-mobile-design .account-mobile-button-secondary { background:#fff; color:var(--navy); border-color:#a9b2c0; }
    #content .account-mobile-welcome .account-mobile-button { margin-top:12px; }
    .account-mobile-welcome > div { min-width:0; }
    .account-mobile-welcome-symbol { padding-top:2px; color:#8d6e31; }
    .account-mobile-welcome-symbol > .icon { width:22px; height:22px; }
    .account-mobile-privacy { display:flex; gap:8px; margin:16px 0 10px; padding:12px; background:#f7f5ef; color:#5b6573; font-size:13px; line-height:1.5; }
    .account-mobile-privacy > .icon { width:14px; height:14px; flex:0 0 14px; margin-top:3px; color:#8d6e31; }
    #content .account-mobile-design .account-mobile-back { display:flex; width:100%; }
    .account-mobile-design .account-action-list { gap:0; }
    .account-action-group h2 { margin:20px 0 8px; font-size:11px; letter-spacing:.08em; color:#7f642e; }
    .account-action-group:first-child h2 { margin-top:0; }
    .account-mobile-design .account-action { min-height:70px; gap:10px; padding:12px 0; border:0; border-top:1px solid #e3e7ec; border-radius:0; background:transparent; }
    .account-mobile-design .account-action-icon { flex:0 0 32px; width:32px; height:32px; border-radius:4px; background:#f4f5f7; color:#8d6e31; }
    .account-mobile-design .account-action-icon > .icon { width:18px; height:18px; }
    .account-mobile-design .account-action-text strong { font-size:14px; line-height:1.4; }
    .account-mobile-design .account-action-text > span { font-size:12px; line-height:1.5; }
    .account-mobile-design .account-action-arrow > .icon { width:12px; height:12px; }
    .account-mobile-home .account-welcome { display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:center; gap:10px; margin-top:12px; padding:16px; border:1px solid #d9d4c8; border-radius:0; background:#f2eee5; color:var(--navy); }
    .account-mobile-home .account-welcome-content { display:grid; grid-template-columns:36px minmax(0,1fr); column-gap:10px; min-width:0; flex:1; }
    .account-mobile-home .account-avatar { grid-column:1; grid-row:1 / span 3; align-self:center; width:36px; height:36px; margin:0; border:0; background:var(--navy); color:#fff; font-size:12px; }
    .account-mobile-home .account-welcome .account-eyebrow,
    .account-mobile-home .account-signup > h3,
    .account-mobile-home .account-signup > p { display:none; }
    .account-mobile-home .account-welcome h2 { grid-column:2; margin:0 0 3px; font-size:14px; line-height:1.4; letter-spacing:normal; }
    .account-mobile-home .account-welcome p:not(.account-eyebrow) { grid-column:2; margin:0; font-size:12px; line-height:1.4; color:#526074; }
    .account-mobile-home .account-signup { border:0; padding:0; }
    #content .account-mobile-home .account-signup .account-signup-link { width:auto; margin:0; white-space:nowrap; }
    @media(max-width:359.98px) {
        .account-mobile-home .account-welcome { grid-template-columns:minmax(0,1fr); }
        .account-mobile-home .account-signup { margin-left:46px; }
    }
    #content .account-mobile-design :is(a,button):is(:hover,:active) { box-shadow:none !important; transform:none !important; }
}
