.password-control{display:flex;flex-wrap:wrap;align-items:stretch;width:100%;gap:0;margin-top:7px}
.password-control input{flex:1;min-width:0;width:0!important;margin:0!important}
.password-control .password-toggle{flex:none;min-width:64px;min-height:44px;margin:0;padding:8px;border:1px solid #496474;background:transparent;color:inherit;font:inherit;font-size:12px;cursor:pointer}
.caps-hint{flex-basis:100%;color:#c77718}
.auth-options{display:flex;align-items:center;flex-wrap:wrap;gap:16px;margin:12px 0}
.auth-options label{display:flex!important;align-items:center;gap:8px;min-width:0!important;font-size:14px}
.auth-options input[type=checkbox]{width:18px!important;height:18px;margin:0;flex:none}
.auth-options a,.account-dialog a{color:inherit;text-underline-offset:4px;line-height:2}
.account-actions{display:flex;flex-wrap:wrap;gap:16px;align-items:center}

/* Shared modal dismissal: the icon is small, its keyboard/touch target is not. */
.dialog-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.dialog-heading h2 { min-width: 0; margin: 0; font-size: 20px; line-height: 1.3; letter-spacing: .08em; }
.dialog-close { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 44px; width: 44px; height: 44px; min-height: 44px; padding: 0; border: 1px solid transparent; background: transparent; color: var(--text); cursor: pointer; }
.dialog-close svg { display: block; width: 20px; height: 20px; pointer-events: none; }
.dialog-close:hover { color: var(--text); border-color: var(--line-hi); background: rgba(85, 246, 255, .06); }
.dialog-close:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; color: var(--text); }
.dialog-close:active { background: rgba(85, 246, 255, .12); }
#exchange-pilot { box-sizing: border-box; margin: auto; overflow: auto; }
.exchange-pilot-content { line-height: 1.5; }
.exchange-pilot-content > h2 { margin-bottom: 8px; }
