.mfa-account-link { display: inline-block; box-sizing: border-box; max-width: 100%; min-height: 44px; padding: .65rem .25rem; line-height: 1.5; }
.mfa-panel { max-width: 46rem; margin: 2rem auto; padding: 1.5rem; color: #253029; background: #fff; border: 1px solid #b9b3a4; border-radius: 6px; overflow-wrap: anywhere; }
.mfa-panel h1 { margin: .5rem 0 1.25rem; font-size: clamp(2rem, 5vw, 3rem); line-height: 1.15; }
.mfa-panel h2 { margin: 0 0 .75rem; font-size: 1.45rem; line-height: 1.3; }
.mfa-panel p, .mfa-panel li { line-height: 1.6; }
.mfa-kicker { font-size: .75rem; font-weight: 700; letter-spacing: .12em; }
.mfa-small { font-size: .875rem; line-height: 1.6; color: #4c554d; }
.mfa-notice { padding: 1rem; margin: 1rem 0; border-left: 3px solid #666d3f; background: #f6f4e9; }
.mfa-error { color: #8b2525; border-color: #8b2525; background: #fff3ef; }
.mfa-setup { display: grid; grid-template-columns: minmax(0, 260px) minmax(0, 1fr); gap: 1.5rem; align-items: center; margin: 1.5rem 0; }
.mfa-qr { display: block; width: 260px; max-width: 100%; height: auto; padding: 0; background: #fff; }
.mfa-secret { display: block; max-width: 100%; padding: .75rem; border: 1px solid #b9b3a4; font-size: 1rem; letter-spacing: .08em; overflow-wrap: anywhere; user-select: all; }
.mfa-steps { padding-left: 1.5rem; }
.mfa-form { display: grid; gap: .65rem; max-width: 30rem; margin: 1.5rem 0; }
.mfa-form input:not([type=hidden]):not([type=checkbox]) { display: block; box-sizing: border-box; width: 100%; min-width: 0; border: 1px solid #89938a; border-radius: 4px; background: #fff; color: #253029; padding: .8rem; font: inherit; font-size: 16px; }
.mfa-form .mfa-code { max-width: 16rem; letter-spacing: .3em; font-size: 1.4rem; }
.mfa-form .mfa-small { margin: 0 0 .5rem; }
.mfa-checkbox { display: flex; align-items: flex-start; gap: .65rem; margin-top: .5rem; line-height: 1.6; }
.mfa-checkbox input { flex: 0 0 auto; margin: .35rem 0 0; width: 1.1rem; height: 1.1rem; }
.mfa-button { appearance: none; display: inline-block; justify-self: start; box-sizing: border-box; padding: .8rem 1rem; border: 1px solid #253c2e; border-radius: 4px; background: #253c2e; color: #fff; font: inherit; line-height: 1.5; text-decoration: none; text-align: left; white-space: normal; cursor: pointer; }
.mfa-button.mfa-secondary { background: #fff; color: #253c2e; }
.mfa-button:hover { background: #3a523f; color: #fff; }
.mfa-button:focus-visible, .mfa-text-button:focus-visible, .mfa-panel summary:focus-visible, .mfa-panel input:focus-visible, .mfa-panel a:focus-visible { outline: 3px solid #ad702d; outline-offset: 3px; }
.mfa-recovery { padding-top: 1rem; border-top: 1px solid #d8d5cc; }
.mfa-recovery summary { cursor: pointer; text-decoration: underline; text-underline-offset: .2em; }
.mfa-codes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .7rem 1rem; list-style: none; padding: 1rem; border: 1px solid #b9b3a4; border-radius: 4px; }
.mfa-codes code { font-size: 1.05rem; letter-spacing: .05em; user-select: all; }
.mfa-actions { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; }
.mfa-actions [hidden] { display: none; }
.mfa-section { padding: 1.5rem 0; border-top: 1px solid #d8d5cc; }
.mfa-devices { padding: 0; list-style: none; }
.mfa-devices li { display: flex; justify-content: space-between; gap: 1rem; align-items: center; padding: 1rem 0; border-top: 1px solid #e4e1d8; }
.mfa-devices p { margin: .3rem 0 0; }
.mfa-text-button { appearance: none; padding: .4rem 0; border: 0; background: none; color: #253c2e; font: inherit; text-decoration: underline; cursor: pointer; }
.mfa-footer { margin-top: 1.5rem; padding-top: 1rem; border-top: 1px solid #d8d5cc; }
@media (max-width: 600px) { .mfa-panel { margin: 1rem; padding: 1rem; } .mfa-setup { grid-template-columns: 1fr; } .mfa-codes { grid-template-columns: 1fr; } .mfa-devices li { align-items: flex-start; } }
