/* Signup terms share the mobile web colors and spacing in both themes. */
.term-row .signup-term-choice{display:flex!important;align-items:flex-start;gap:10px;flex:1;min-width:0;margin:0;cursor:pointer}
.signup-term-choice>span{min-width:0}.signup-term-choice strong{font-size:14px;line-height:1.45;overflow-wrap:anywhere}
.signup-term-choice small{font-size:12px;color:var(--muted)}.term-row .signup-term-view{flex:none;align-self:center;border:0;background:transparent;color:var(--accent);padding:8px 2px;font:inherit;font-size:12px;white-space:nowrap;cursor:pointer}
.signup-term-view:focus-visible{outline:2px solid var(--accent);outline-offset:2px;border-radius:6px}
.signup-terms-dialog{box-sizing:border-box;width:min(680px,calc(100vw - 28px));max-height:calc(100dvh - 32px);padding:0;border:1px solid var(--line);border-radius:18px;background:var(--panel);color:var(--text);box-shadow:var(--shadow);overflow:hidden}
.signup-terms-dialog::backdrop{background:rgba(0,0,0,.62);backdrop-filter:blur(4px)}
.signup-terms-dialog>header{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:16px 20px;border-bottom:1px solid var(--line)}
.signup-terms-dialog h2{font-size:18px;line-height:1.4;margin:0;overflow-wrap:anywhere}.signup-terms-dialog .modal-close-button{flex:none}
.signup-terms-body{box-sizing:border-box;padding:20px;max-height:calc(100dvh - 130px);overflow:auto;overscroll-behavior:contain}
.signup-terms-text{white-space:pre-wrap;overflow-wrap:anywhere;font-size:14px;line-height:1.6}
html:has(.signup-terms-dialog[open]){overflow:hidden}
@media(max-width:600px){.signup-terms-dialog>header{padding:14px 16px}.signup-terms-body{padding:16px}.signup-terms-dialog h2{font-size:16px}}

/* Compact signup choices with a separate gap before the final action. */
#welcome-terms-form .terms-list{gap:0;margin:12px 0 0}
#welcome-terms-form .term-row{align-items:center;min-height:48px;padding:0 16px}
#welcome-terms-form .signup-term-choice{align-items:center}
#welcome-terms-form .signup-term-choice input{margin-top:0}
#welcome-terms-form .signup-term-choice strong{line-height:1.3}
#welcome-terms-form .signup-term-view{min-width:44px;min-height:44px}
#welcome-terms-form>.btn.primary{margin-top:10px}
.onboarding-card .btn.primary{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:12px 18px;line-height:1;text-align:center}
