/* RP3 additions retain the existing Navy / Cream / Gold Step 3 components. */
.app [data-screen="3"] .rp3-access{display:flex;flex-wrap:wrap;align-items:center;gap:8px 16px;margin:12px 0 18px;color:var(--navy);font-size:.9rem}
.app [data-screen="3"] .rp3-access p{margin:0;flex:1 1 240px;overflow-wrap:anywhere}
.app [data-screen="3"] .rp3-access button{min-height:44px;white-space:normal}
.app [data-screen="3"] .rp3-selection{width:100%;min-width:0;margin:0 0 20px;padding:20px;border:1px solid #dfc88c;border-radius:18px;background:#fffaf0;color:var(--navy)}
.app [data-screen="3"] .rp3-selection[hidden]{display:none!important}
.app [data-screen="3"] .rp3-selection h3{margin:0 0 8px;font-size:1.1rem}
.app [data-screen="3"] .rp3-selection p{margin:8px 0;line-height:1.6;overflow-wrap:anywhere}
.app [data-screen="3"] .rp3-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:14px 0}
.app [data-screen="3"] .rp3-option{display:flex;align-items:flex-start;gap:10px;min-width:0;min-height:48px;padding:12px;border:1px solid #d5e1eb;border-radius:12px;background:#fff;cursor:pointer}
.app [data-screen="3"] .rp3-option input{flex:none;width:20px;height:20px;margin:2px 0;accent-color:#07549a}
.app [data-screen="3"] .rp3-option span{min-width:0;overflow-wrap:anywhere;font-size:.9rem}
.app [data-screen="3"] .rp3-option:focus-within{outline:3px solid #c99a35;outline-offset:2px}
.app [data-screen="3"] .rp3-option:has(input:checked){border-color:#c99a35;background:#fff7e3}
.app [data-screen="3"] #step3CreateNotice{margin:8px 0;color:#6a5525;line-height:1.5}
#step3SelectionConfirm{width:min(500px,calc(100vw - 32px));max-height:calc(100dvh - 40px);overflow:auto;border:1px solid #dfc88c;border-radius:20px;padding:24px;background:#fffdf8;color:#07345b}
#step3SelectionConfirm::backdrop{background:rgba(7,52,91,.35)}
#step3SelectionConfirm h3{margin-top:0;font-size:1.2rem}
#step3SelectionConfirm p{line-height:1.65;overflow-wrap:anywhere}
#step3SelectionConfirm .rp3-confirm-actions{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:10px;margin-top:18px}
#step3SelectionConfirm button{min-height:44px;white-space:normal;max-width:100%}
.rp3-trial-copy{font-size:.88rem;line-height:1.65;overflow-wrap:anywhere;margin:12px 0;color:#526989}
@media(max-width:900px){.app [data-screen="3"] .rp3-options{grid-template-columns:minmax(0,1fr)}}
@media(max-width:640px){.app [data-screen="3"] .rp3-selection{padding:15px}.app [data-screen="3"] .rp3-access button{width:100%}#step3SelectionConfirm .rp3-confirm-actions{flex-direction:column}#step3SelectionConfirm button{width:100%}}

/* P245: retain automatic entitlement loading and show retry only on failure. */
.app [data-screen="3"] #step3RefreshAccess[hidden]{display:none!important}
.app [data-screen="3"] #step3TrialExpiry{display:none}
.app [data-screen="3"] .rp3-access p:has(#step3LockedCount:empty):has(#step3ConsumedSlots:empty){display:none}
.app [data-screen="3"] .rp3-access:has(#step3LockedCount:empty):has(#step3ConsumedSlots:empty):has(#step3RefreshAccess[hidden]){display:none}
@media(max-width:767px){
 .app [data-screen="3"] #step3Lead{display:none}
}

/* Step 3: collapse empty status rows; retain populated notices on every viewport. */
.app [data-screen="3"] .step3-form > :is(#step3CreateNotice,#step3SecureStatus):empty{display:none}
.app [data-screen="3"] .step3-form:has(> #step3CreateNotice:empty):has(> #step3SecureStatus:empty) > .step3-save{margin-top:26px}
/* P250: keep identifiers inside their grid track and expose full text on focus. */
.app [data-screen="3"] .step3-account-info{min-width:0}
@media(min-width:641px){.app [data-screen="3"] .step3-account-actions{max-width:170px;justify-content:flex-end}}
.app [data-screen="3"] .step3-account-info :is(strong,span){max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.app [data-screen="3"] .step3-account-info :is(strong,span):focus{white-space:normal;overflow-wrap:anywhere;outline:2px solid #285C85;outline-offset:2px;border-radius:2px}
.app [data-screen="3"] .step3-password-error{margin:0;padding:9px 12px;border-radius:8px;background:#fff0f0;color:#9b2525;font-size:.85rem;line-height:1.5}
.app [data-screen="3"] .step3-password-error[hidden]{display:none}
