#welcome-dialog{width:min(610px,calc(100vw - 24px));max-width:610px;max-height:calc(100dvh - 24px);padding:0;border:1px solid #e8dff3;border-radius:26px;overflow:auto;overscroll-behavior:contain;background:#fcfaff;color:#30243f;box-shadow:0 30px 120px #120a2d55}
#welcome-dialog::backdrop{background:#130c28bb;backdrop-filter:blur(7px)}
.setup-shell{padding:24px 30px 0}.setup-header{display:flex;justify-content:space-between;align-items:center;gap:16px}.setup-brand{font-size:18px;letter-spacing:-.6px;font-weight:800}.setup-brand-dot{display:inline-block;width:7px;height:7px;background:#a17be0;border-radius:50%;margin:0 0 2px 3px}.setup-progress{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:6px;margin:20px 0 22px}.setup-progress>i{height:4px;border-radius:6px;background:#e8e0f2}.setup-progress>i.active{background:#9870dc;box-shadow:0 0 12px #9161dd25}.setup-heading h2{font-size:28px;letter-spacing:-.9px;line-height:1.13;margin:8px 0 10px}.setup-heading>p{margin:0 0 22px;font-size:13px;color:#81708f;line-height:1.5}.setup-dialog label{display:block;margin:0 0 16px;color:#79648d;font-size:12px}.setup-dialog input:not([type=checkbox]):not([type=range]),.setup-dialog select{width:100%;box-sizing:border-box;min-width:0;margin-top:7px;background:#fff;color:#30243f;font-size:16px;min-height:46px;border:1px solid #e2d7ed}.setup-dialog [hidden]{display:none!important}.setup-dialog button{cursor:pointer}.setup-dialog input[type=number]{appearance:textfield;-moz-appearance:textfield}.setup-dialog input::-webkit-inner-spin-button,.setup-dialog input::-webkit-outer-spin-button{appearance:none;margin:0}.setup-identity{display:flex;align-items:center;gap:14px;padding:18px;border:1px solid #e3d5f2;border-radius:18px;background:linear-gradient(115deg,#f2eafa,#faf6ff);margin-bottom:22px}.setup-identity>span{display:grid;place-items:center;width:52px;height:52px;border-radius:17px;background:#8857cc;color:white;font-size:25px;font-weight:700;flex-shrink:0}.setup-identity small,.setup-identity strong{display:block}.setup-identity small{font-size:11px;color:#8f78a5;margin-bottom:5px}.setup-identity strong{font-size:17px;overflow-wrap:anywhere}.setup-identity svg{margin-left:auto;width:24px;height:24px;stroke:#8a62bb;stroke-width:2;fill:none;flex-shrink:0}.setup-footnote{font-size:11px;line-height:1.6;color:#8b789c;margin:12px 0}.setup-weight-path{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;align-items:center;margin:20px 0}.setup-weight-path>label{background:#f2ebfa;border:1px solid #e2d6ef;border-radius:16px;padding:15px;margin:0;min-width:0}.setup-weight-path>svg,.setup-milestone svg{fill:none;stroke:#aa8bcf;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}.setup-number-input{display:flex;align-items:center;gap:5px}.setup-number-input>input{font-size:27px!important;font-weight:700;background:transparent!important;border:0!important;padding:6px 0!important;box-shadow:none!important;min-width:0!important}.setup-number-input>span{font-size:11px;color:#8e75a4}.setup-milestone{display:flex;gap:12px;align-items:center;padding:12px 0}.setup-milestone svg{width:24px;height:24px;flex-shrink:0}.setup-milestone p{font-size:12px;color:#8a72a0;margin:0}.setup-product-art{height:100px;display:grid;place-items:center;background:radial-gradient(ellipse,#e9dcfb77,transparent 70%);margin-bottom:14px}.setup-product-art svg{height:105px;fill:#d4bee977;stroke:var(--welcome-product-color,#9161dd);stroke-width:2.5;stroke-linejoin:round}.setup-product-art .setup-vial-label{fill:#fff9}.setup-product-chips{display:flex;flex-wrap:wrap;gap:7px;margin:-4px 0 16px}.setup-product-chips button{font-size:11px;padding:8px 12px;border:1px solid #e4d8f0;border-radius:30px;background:#f8f3fc;color:#806099}.setup-colors{display:flex;gap:10px;margin:18px 0}.setup-colors button{width:28px;height:28px;border:3px solid #fcfaff;border-radius:50%;padding:0;box-shadow:0 0 0 1px #e4d8ef}.setup-colors button[aria-pressed=true]{box-shadow:0 0 0 2px #8c68c3;transform:scale(1.07)}.setup-dialog .setup-check{display:flex;align-items:flex-start;gap:9px;font-size:11px;line-height:1.6;margin:12px 0}.setup-check input{width:17px;min-width:17px;height:17px;min-height:17px;margin:1px 0 0;accent-color:#9669d6}.setup-mode{display:flex;padding:4px;border-radius:13px;border:1px solid #e4d9ee;background:#f3edf9;gap:4px;margin-bottom:18px}.setup-mode button{flex:1;min-width:0;border:0;border-radius:10px;background:transparent;padding:10px 6px;font-size:11px;font-weight:650;color:#8d75a1}.setup-mode button[aria-pressed=true]{background:#fff;color:#7045a5;box-shadow:0 2px 8px #6544c515}.setup-label{display:block;font-size:12px;color:#79648d;margin:16px 0 9px}.setup-job{display:grid;grid-template-columns:1fr 1fr;gap:8px}.setup-job button{padding:12px;text-align:left;background:#fff;border:1px solid #e5d9ef;border-radius:13px;min-width:0;color:#655076}.setup-job span{font-size:12px;font-weight:700;display:block}.setup-job small{font-size:10px;display:block;margin-top:4px;color:#9c87ad;line-height:1.35}.setup-job button[aria-pressed=true]{background:#f1e6fc;border-color:#ae8ed3}.setup-range-label{display:flex!important;flex-wrap:wrap;align-items:center;justify-content:space-between;margin-top:18px!important;gap:8px}.setup-range-label output{display:grid;place-items:center;min-width:28px;height:26px;background:#e9dcf9;border-radius:9px;font-size:14px;font-weight:700;color:#7951ae}.setup-range-label input{width:100%;accent-color:#9161dd;margin:8px 0;min-height:28px}.setup-activity-details{margin:12px 0;font-size:12px;border:1px solid #e6dcef;border-radius:12px;padding:12px}.setup-activity-details summary{cursor:pointer;color:#9377ad}.setup-activity-details[open]>label{margin-top:16px}.setup-two-fields{display:grid;grid-template-columns:1fr 1fr;gap:12px}.setup-tdee-result{padding:20px;border-radius:18px;background:linear-gradient(125deg,#f0e5fd,#faf5ff);border:1px solid #e0ceef;display:grid;gap:6px;margin:18px 0 12px}.setup-tdee-result>span{font-size:11px;font-weight:600;color:#9473b0}.setup-tdee-result>strong{font-size:35px;letter-spacing:-1.5px;color:#7e4cb5}.setup-tdee-result>small{font-size:11px;color:#9a80ad;line-height:1.5}.setup-ready{display:flex;align-items:center;gap:12px;border:1px solid #dcecdf;background:#f1f8f2;padding:15px;border-radius:16px;margin-bottom:22px}.setup-ready>span{display:grid;place-items:center;width:34px;height:34px;border-radius:50%;background:#e0f0e2;color:#4a9862;font-size:19px;flex-shrink:0}.setup-ready strong{font-size:13px}.setup-ready p{font-size:11px;color:#829287;margin:5px 0 0;overflow-wrap:anywhere}.setup-error{font-size:12px;line-height:1.5;color:#b35372;background:#fff0f3;border-radius:10px;padding:12px}.setup-footer{position:sticky;bottom:0;z-index:3;display:flex;justify-content:space-between;align-items:center;gap:14px;margin:24px -30px 0;padding:16px 30px max(18px,env(safe-area-inset-bottom));background:#fcfaffed;border-top:1px solid #ece3f3;backdrop-filter:blur(10px)}.setup-footer .primary{min-width:150px}.setup-footer .primary span{font-size:15px;margin:0 0 0 12px}.setup-dialog button:disabled{opacity:.5;cursor:wait}.setup-dialog:focus{outline:none}#welcome-reopen{margin:8px 12px}
html[data-theme=dark] #welcome-dialog{background:#1c1726;border-color:#463654;color:#f4edff;box-shadow:0 25px 120px #0009}html[data-theme=dark] .setup-heading>p,html[data-theme=dark] .setup-footnote{color:#a899b6}html[data-theme=dark] .setup-dialog label,html[data-theme=dark] .setup-label{color:#c9b6df}html[data-theme=dark] .setup-progress>i{background:#392d48}html[data-theme=dark] .setup-progress>i.active{background:#b88bed}html[data-theme=dark] .setup-identity{background:linear-gradient(110deg,#382444,#281f36);border-color:#59416c}html[data-theme=dark] .setup-dialog input:not([type=checkbox]):not([type=range]),html[data-theme=dark] .setup-dialog select{background:#17121f;border-color:#51405f;color:#f3eafa}html[data-theme=dark] .setup-weight-path>label{background:#30223e;border-color:#594169}html[data-theme=dark] .setup-product-chips button,html[data-theme=dark] .setup-job button{background:#241b30;border-color:#503b63;color:#dac3ee}html[data-theme=dark] .setup-job button[aria-pressed=true]{background:#463054;border-color:#b28bd2}html[data-theme=dark] .setup-job small{color:#b49cc9}html[data-theme=dark] .setup-colors button{border-color:#1c1726}html[data-theme=dark] .setup-mode{background:#241b30;border-color:#493454}html[data-theme=dark] .setup-mode button{color:#b99dcc}html[data-theme=dark] .setup-mode button[aria-pressed=true]{background:#533765;color:#f5e8ff}html[data-theme=dark] .setup-range-label output{background:#4c2d60;color:#e5baff}html[data-theme=dark] .setup-activity-details{border-color:#493454}html[data-theme=dark] .setup-tdee-result{background:linear-gradient(125deg,#3e264e,#281d36);border-color:#66477a}html[data-theme=dark] .setup-tdee-result>strong{color:#d9aff9}html[data-theme=dark] .setup-tdee-result>span,html[data-theme=dark] .setup-tdee-result>small{color:#c0a3d5}html[data-theme=dark] .setup-ready{background:#1e312b;border-color:#355445}html[data-theme=dark] .setup-ready>span{background:#284b38;color:#90cba4}html[data-theme=dark] .setup-ready p{color:#9ab9a5}html[data-theme=dark] .setup-footer{background:#1c1726ed;border-color:#45334f}html[data-theme=dark] .setup-error{background:#402331;color:#efafc6}
@media(max-width:600px){#welcome-dialog{width:calc(100vw - 16px);max-height:calc(100dvh - 16px);border-radius:22px}.setup-shell{padding:20px 20px 0}.setup-heading h2{font-size:25px}.setup-heading>p{margin-bottom:18px}.setup-footer{margin:22px -20px 0;padding:14px 20px max(16px,env(safe-area-inset-bottom))}.setup-weight-path{gap:6px;grid-template-columns:repeat(2,minmax(0,1fr))}.setup-weight-path>label{padding:12px}.setup-number-input>input{font-size:24px!important}.setup-two-fields{gap:10px}.setup-tdee-result>strong{font-size:32px}}
@media(prefers-reduced-motion:no-preference){.setup-dialog section{animation:welcome-arrive .22s ease-out}@keyframes welcome-arrive{from{opacity:.5;transform:translateY(7px)}to{opacity:1;transform:translateY(0)}}}

/* Contain every field and illustration inside the iPhone viewport. */
#welcome-dialog,#welcome-dialog *{box-sizing:border-box}
#welcome-dialog{min-width:0;max-width:calc(100vw - 32px);max-height:calc(var(--visual-height,100dvh) - 32px);overflow-x:hidden;margin:auto}
#welcome-dialog .setup-shell,#welcome-dialog form,#welcome-dialog section{min-width:0;max-width:100%}
#welcome-dialog svg{max-width:100%;flex-shrink:0}
.setup-water-input{display:flex;align-items:center;gap:10px}
.setup-water-input input{flex:1;width:0!important;min-width:0}
.setup-water-input>span{font-size:12px;white-space:nowrap}
@media(max-width:600px){
 #welcome-dialog{width:calc(100vw - 32px);max-height:calc(var(--visual-height,100dvh) - 40px);border-radius:20px}
 .setup-shell{padding:16px 16px 0}
 .setup-header{gap:8px}.setup-brand{font-size:17px}.setup-header button{padding:6px;font-size:12px}
 .setup-progress{margin:12px 0 14px;gap:5px}.setup-heading h2{font-size:22px;line-height:1.15;margin:6px 0 8px}
 .setup-heading>p{font-size:12px;line-height:1.4;margin-bottom:14px}
 .setup-dialog label{margin-bottom:12px}
 .setup-dialog input:not([type=checkbox]):not([type=range]),.setup-dialog select{min-height:42px;margin-top:5px;padding:9px 10px;font-size:16px}
 .setup-weight-path{gap:8px;margin:12px 0}.setup-weight-path>label{padding:10px;border-radius:13px;font-size:11px}
 .setup-number-input>input{font-size:23px!important;min-height:36px!important}
 .setup-milestone{padding:2px 0}.setup-milestone svg{width:20px;height:20px}.setup-milestone p{font-size:11px}
 .setup-identity{padding:12px;margin-bottom:14px}.setup-identity>span{width:40px;height:40px;font-size:21px}
 .setup-product-art{height:68px;margin-bottom:10px}.setup-product-art svg{height:68px;width:98px}
 .setup-tdee-result{padding:12px;margin:12px 0 8px}.setup-tdee-result>strong{font-size:28px}
 .setup-job button{padding:9px}.setup-job small{font-size:10px}.setup-mode{margin-bottom:12px}
 .setup-ready{padding:11px;margin-bottom:14px}
 .setup-footnote{font-size:10px;line-height:1.45;margin:9px 0}
 .setup-footer{margin:16px -16px 0;padding:12px 16px max(12px,env(safe-area-inset-bottom));gap:8px}
 .setup-footer .primary{min-width:0;padding:12px 16px;font-size:13px;margin-left:auto}
 .setup-footer .text-button{padding:8px 0;font-size:12px}
}

/* Only the fields scroll on phones; header and actions stay above the keyboard. */
@media(max-width:600px){
 #welcome-dialog[open]{display:flex;flex-direction:column;height:min(640px,calc(var(--visual-height,100dvh) - 32px));max-height:calc(var(--visual-height,100dvh) - 32px);overflow:hidden;scroll-padding:0}
 #welcome-dialog .setup-shell{display:flex;flex-direction:column;height:100%;min-height:0;padding:16px 0 0;overflow:hidden}
 #welcome-dialog .setup-header,#welcome-dialog .setup-heading{flex-shrink:0;margin-left:16px;margin-right:16px}
 #welcome-dialog .setup-progress{flex-shrink:0;margin-left:16px;margin-right:16px}
 #welcome-dialog .setup-heading>p{margin-bottom:12px}
 #welcome-form{display:flex;flex-direction:column;flex:1;min-height:0;margin:0}
 #welcome-content{flex:1;min-height:0;overflow-y:auto;overflow-x:hidden;padding:2px 16px 12px;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;scroll-padding:12px}
 #welcome-dialog .setup-footer{position:static;flex-shrink:0;margin:0;padding:12px 16px max(12px,env(safe-area-inset-bottom));background:#fcfaff}
 html[data-theme=dark] #welcome-dialog .setup-footer{background:#1c1726}
 #welcome-dialog input:focus-visible,#welcome-dialog select:focus-visible{outline:2px solid #ab83e4;outline-offset:2px;box-shadow:none}
 html.keyboard-open #welcome-dialog[open]{top:calc(var(--visual-top,0px) + 8px);left:0;right:0;bottom:auto;margin:0 auto;width:calc(100vw - 16px);height:calc(var(--visual-height,100dvh) - 16px);max-height:calc(var(--visual-height,100dvh) - 16px);border-radius:16px}
 html.keyboard-open #welcome-dialog .setup-shell{padding-top:10px}
 html.keyboard-open #welcome-dialog .setup-header{display:none}
 html.keyboard-open #welcome-dialog .setup-progress{margin-top:0;margin-bottom:9px}
 html.keyboard-open #welcome-dialog .setup-heading h2{font-size:19px;margin:3px 0 10px}
 html.keyboard-open #welcome-dialog .setup-heading>p,html.keyboard-open #welcome-count,html.keyboard-open #welcome-dialog .setup-product-art,html.keyboard-open #welcome-dialog .setup-identity,html.keyboard-open #welcome-dialog .setup-milestone{display:none}
 html.keyboard-open #welcome-dialog .setup-footer{padding:9px 16px}
 html.keyboard-open #welcome-dialog .setup-footer .primary{padding:10px 16px}
}

.setup-product-art{background:none}.setup-product-art .setup-vial-label{fill:var(--welcome-product-color,#9161dd);fill-opacity:.08}

/* Compact first step; native language names remain recognizable in every locale. */
#welcome-dialog .setup-language-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
#welcome-dialog .setup-language-grid button{display:flex;align-items:center;justify-content:space-between;gap:6px;min-width:0;min-height:48px;padding:12px;border:1px solid #ddd0ee;border-radius:13px;background:#fff;color:#62477d;text-align:left;font-size:13px;line-height:1.35;overflow-wrap:anywhere}
#welcome-dialog .setup-language-check{visibility:hidden;flex-shrink:0;color:#8050ba}
#welcome-dialog .setup-language-grid button[aria-pressed=true]{background:#f0e5fd;border-color:#9161dd;box-shadow:inset 0 0 0 1px #9161dd}
#welcome-dialog .setup-language-grid button[aria-pressed=true] .setup-language-check{visibility:visible}
#welcome-dialog .setup-language-grid button:focus-visible{outline:2px solid #9161dd;outline-offset:3px}
html[data-theme=dark] #welcome-dialog .setup-language-grid button{background:#241b30;border-color:#574265;color:#e4d4f4}
html[data-theme=dark] #welcome-dialog .setup-language-grid button[aria-pressed=true]{background:#443052;border-color:#b88bed;box-shadow:inset 0 0 0 1px #b88bed}
html[data-theme=dark] #welcome-dialog .setup-language-check{color:#d7b3ff}
@media(max-width:360px){#welcome-dialog .setup-language-grid{gap:7px}#welcome-dialog .setup-language-grid button{font-size:12px;padding:10px 8px}}

/* Feedback stays with the actions, outside the phone's scrolling fields. */
#welcome-dialog .setup-footer{flex-wrap:wrap;row-gap:8px}
#welcome-dialog .setup-feedback{flex:0 0 100%;min-width:0}
#welcome-dialog .setup-feedback:has(> [hidden]+[hidden]){display:none}
#welcome-dialog .setup-feedback p{margin:0;max-height:20vh;overflow:auto;overflow-wrap:anywhere}
#welcome-dialog .setup-status{font-size:12px;line-height:1.5;color:#6d469a;display:flex;gap:9px;align-items:center}
#welcome-dialog .setup-status::before{content:'';width:13px;height:13px;flex:0 0 13px;border:2px solid #b49bcf;border-top-color:#6d469a;border-radius:50%;animation:setup-feedback-spin .8s linear infinite}
#welcome-dialog [aria-invalid=true]{border-color:#b35372!important;outline-color:#b35372!important}
html[data-theme=dark] #welcome-dialog .setup-status{color:#d8bbf4}
@keyframes setup-feedback-spin{to{transform:rotate(360deg)}}
@media(prefers-reduced-motion:reduce){#welcome-dialog .setup-status::before{animation:none}}

/* Consent uses a normal native checkbox rather than the text-field dimensions. */
#welcome-dialog #welcome-referral .referral-check{display:flex;align-items:flex-start;gap:10px;font-size:12px;line-height:1.5}
#welcome-dialog #welcome-referral .referral-check input[type=checkbox]{appearance:auto;-webkit-appearance:checkbox;box-sizing:border-box;flex:0 0 18px;width:18px;min-width:18px;max-width:18px;height:18px;min-height:18px;max-height:18px;padding:0;margin:2px 0 0;border-radius:4px;accent-color:#a878df}
#welcome-dialog #welcome-referral .referral-check span{min-width:0}

/* Keep short and wrapped captions vertically centered beside compact checkboxes. */
#welcome-dialog .setup-check,#welcome-dialog #welcome-referral .referral-check{align-items:center}
#welcome-dialog .setup-check input[type=checkbox],#welcome-dialog #welcome-referral .referral-check input[type=checkbox]{box-sizing:border-box;flex:0 0 18px;width:18px;min-width:18px;max-width:18px;height:18px;min-height:18px;max-height:18px;padding:0;margin:0}
#welcome-dialog .setup-check>span{flex:1;min-width:0}

/* A single public discovery entry; no extra navigation in the personal journal. */
#authgate .public-discover{display:block;max-width:100%;margin:0 0 10px;color:#bca7df;font:inherit;text-align:start}
#authgate .public-discover>summary{display:inline-flex;align-items:center;gap:8px;min-height:44px;cursor:pointer;list-style:none;font-size:12px;font-weight:600}
#authgate .public-discover>summary::-webkit-details-marker{display:none}
#authgate .public-discover>summary::after{content:'⌄';font-size:15px}
#authgate .public-discover[open]>summary::after{content:'⌃'}
#authgate .public-discover-links{display:flex;flex-wrap:wrap;gap:4px 20px;padding:2px 0 10px}
#authgate .public-discover-links a{display:inline-flex;align-items:center;min-height:40px;max-width:100%;font-size:12px;line-height:1.4;color:#d3c1ef;text-decoration:underline;text-underline-offset:3px}
#authgate .public-discover-note{margin:0 0 6px;font-size:11px;color:#aaa1bd}
#authgate .public-discover-note[hidden]{display:none}
#authgate .public-discover>summary:focus-visible,#authgate .public-discover-links a:focus-visible{outline:2px solid #b59aef;outline-offset:3px;border-radius:4px}
@media(max-width:480px){#authgate .public-discover-links{gap:0 16px}}

#authgate .public-help-center-link{display:inline-flex;align-items:center;min-height:40px;font-size:12px;color:#d3c1ef;text-underline-offset:3px}

#help-center-access .help-center-entry{display:inline-flex;align-items:center;justify-content:center;text-decoration:none;margin:4px 0 20px;min-height:44px}#help-center-access .help-start-actions{margin-top:8px}

/* Short setup screens: actions follow the content rather than floating over it. */
#welcome-dialog #welcome-content>.setup-footer{position:static!important;margin:20px 0 0!important;padding:16px 0 max(12px,env(safe-area-inset-bottom))!important;flex-shrink:0;clear:both}
#welcome-dialog .setup-theme,#welcome-dialog .setup-statistics-choice{min-width:0;border:0;padding:0;margin:20px 0}
#welcome-dialog .setup-theme legend,#welcome-dialog .setup-statistics-choice legend{max-width:100%;margin-bottom:12px;padding:0;font-size:14px;line-height:1.5;font-weight:650;color:inherit}
#welcome-dialog .setup-theme-options{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}
#welcome-dialog .setup-theme-options button{min-width:0;padding:10px 6px;border:1px solid #c4b0dc;border-radius:14px;background:transparent;color:inherit;font:inherit;font-size:12px;line-height:1.4;overflow-wrap:anywhere}
#welcome-dialog .setup-theme-options button[aria-pressed=true]{border-color:#a17be0;box-shadow:inset 0 0 0 2px #a17be0;background:#a17be016}
#welcome-dialog .setup-theme-preview{display:grid;place-items:center;height:50px;margin-bottom:8px;border:1px solid #8b70a455;border-radius:9px;font-size:24px}
#welcome-dialog .setup-theme-light{background:#fcfaff;color:#62477d}#welcome-dialog .setup-theme-dark{background:#1c1726;color:#d8bbf4}#welcome-dialog .setup-theme-system{background:linear-gradient(90deg,#fcfaff 50%,#1c1726 50%);color:#a17be0}
#welcome-dialog .setup-radio-choice{display:flex!important;align-items:center;gap:12px;min-height:50px;margin:9px 0;padding:12px;border:1px solid #b6a0cf;border-radius:12px;background:transparent;color:inherit;font-size:14px;line-height:1.4;cursor:pointer}
#welcome-dialog .setup-radio-choice input[type=radio]{appearance:auto!important;-webkit-appearance:radio!important;flex:0 0 18px!important;width:18px!important;min-width:18px!important;max-width:18px!important;height:18px!important;min-height:18px!important;margin:0!important;padding:0!important;accent-color:#a17be0}
#welcome-dialog .setup-radio-choice:has(input:checked){border-color:#a17be0;box-shadow:inset 0 0 0 1px #a17be0;background:#a17be016}
#welcome-dialog .setup-example{display:block;margin-top:6px;color:inherit;opacity:.7;font-size:11px;line-height:1.4;font-weight:400}
#welcome-dialog .setup-measure-hint{margin:0 0 18px;font-size:13px;line-height:1.5;color:inherit}
#welcome-dialog .setup-weight-path{grid-template-columns:1fr;gap:12px;margin-top:16px}
#welcome-dialog .setup-weight-path>label{margin:0}
#welcome-dialog .setup-theme-options button:focus-visible,#welcome-dialog .setup-radio-choice:focus-within{outline:2px solid #a17be0;outline-offset:3px}
@media(min-width:480px){#welcome-dialog .setup-weight-path{grid-template-columns:repeat(2,minmax(0,1fr))}}

#authgate .welcome-discovery{display:flex;align-items:center;flex-wrap:wrap;gap:8px 12px;margin-block-start:14px}
#authgate .welcome-discovery a{display:inline-flex;align-items:center;justify-content:center;min-height:44px;max-width:100%;padding:7px 14px;border:1px solid #b899e5;border-radius:12px;background:#b899e51a;color:#e8daff;font-size:14px;font-weight:650;line-height:1.3;text-align:center;text-decoration:none}
#authgate .welcome-discovery a:hover{background:#b899e52e;color:#fff}
#authgate .welcome-discovery a:focus-visible{outline:2px solid #d1b7ff;outline-offset:3px}

/* The payment selector uses the same cues as the standalone subscription screen. */
#welcome-offers{display:grid;gap:8px}
#welcome-offers h3{margin:0 0 4px}
#welcome-dialog .setup-offer{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:11px 14px;text-align:start}
#welcome-dialog .setup-offer strong,#welcome-dialog .setup-offer small{display:block}
#welcome-dialog .setup-offer small{margin-block-start:3px;font-size:12px;line-height:1.35;font-weight:500}
#welcome-dialog .setup-offer-arrow{inline-size:8px;block-size:8px;flex:none;margin-inline-end:3px;border-top:2px solid currentColor;border-inline-end:2px solid currentColor;transform:rotate(45deg)}
[dir=rtl] #welcome-dialog .setup-offer-arrow{transform:rotate(-45deg)}
#welcome-dialog [data-audience-country-slot] select{color-scheme:light;background:#fff;color:#30243f;border-color:#b7a3ca}
html[data-theme=dark] #welcome-dialog [data-audience-country-slot] select{color-scheme:dark;background:#17121f;color:#f3eafa;border-color:#665473}
