/* Default mode: modest increase, with a separate larger accessibility mode. */
body.patient-app:not(.large-text) :is(.q-sub,.welcome-invitation,.welcome-empathy,.welcome-gratitude,.returning-card header p){font-size:19px!important;line-height:1.8}
body.patient-app:not(.large-text) :is(.card-option,.dept-name,.btn-primary,#btn-next,.rc-consent,.doctor-picker b,.bdx-refined p){font-size:19px!important;line-height:1.6}
body.patient-app:not(.large-text) :is(.field-label,.rc-label,.btn-ghost,.zone-btn,.tooth-dentition button,.response-states button,.rc-help,.qg-sub){font-size:16px!important;line-height:1.7}
body.patient-app:not(.large-text) :is(.field-hint,.dept-desc,.multi-hint,.journey-stages small,.save-status,.progress-top,.answer-progress,.patient-footnote,.welcome-reassurance,.doctor-picker small,.language-name){font-size:14px!important;line-height:1.7}
body.patient-app:not(.large-text) :is(.qg-title){font-size:22px!important;line-height:1.6}
body.patient-app:not(.large-text) :is(.answer-state,.required-label,.step-eyebrow,#footer-note,.privacy-caption,#assisted-mode-note){font-size:13px!important}
body.patient-app:not(.large-text) :is(input.field,textarea.field,select.field){font-size:20px!important;line-height:1.6}
body.patient-app:not(.large-text) .returning-card .rc-field .field{font-size:30px!important}
body.patient-app:not(.large-text) .doctor-picker .doctor-suffix{font-size:14px}
body.patient-app :is(.patient-header-tools){gap:10px}
@media(max-width:600px){body.patient-app .patient-header{height:auto;min-height:78px;flex-wrap:wrap;gap:10px;padding-block:12px}body.patient-app .patient-header-tools{margin-left:auto}body.patient-app:not(.large-text) :is(.q-sub,.card-option,.dept-name){font-size:18px!important}body.patient-app:not(.large-text) .returning-card .rc-field .field{font-size:26px!important}}
/* Persistent, legible mode for the entire patient journey; no layout zoom/clipping. */
body #text-size-toggle{font-size:17px!important;font-weight:750;min-height:48px;padding:10px 18px;border:1.5px solid #8b6344;border-radius:14px;background:rgba(255,255,255,.94);color:#62422c;white-space:nowrap}
body #text-size-toggle[aria-pressed=true]{background:#6b4226;color:#fff;box-shadow:0 0 0 3px rgba(139,99,68,.14)}
body.patient-app.premium-ui.large-text{font-size:22px}
body.patient-app.premium-ui.large-text :is(p,label,legend,summary,li,td,th,button,.field-label,.q-label,.q-sub,.field-hint,.choice-label,.option-label,.rc-label){font-size:22px!important;line-height:1.65!important}
body.patient-app.premium-ui.large-text :is(small,.eyebrow,.badge,.doctor-suffix,.doctor-picker small,#rc-review span,#rc-field-status,#save-status){font-size:18px!important;line-height:1.55!important}
body.patient-app.premium-ui.large-text :is(input:not([type=checkbox]):not([type=radio]),textarea,select,.field){font-size:30px!important;line-height:1.5!important;min-height:64px}
body.patient-app.premium-ui.large-text :is(.doctor-picker b,#rc-review b,.doctor-important strong,.visit-kind-options b){font-size:25px!important;line-height:1.5!important}
body.patient-app.premium-ui.large-text :is(h1,.welcome-title){font-size:clamp(54px,6vw,72px)!important;line-height:1.35!important}
body.patient-app.premium-ui.large-text :is(h2,.q-title){font-size:38px!important;line-height:1.45!important}
body.patient-app.premium-ui.large-text :is(button,.choice,.doctor-option,.doctor-toggle){min-height:60px;height:auto;white-space:normal}
body.patient-app.premium-ui.large-text :is(input[type=checkbox],input[type=radio]){width:26px;height:26px;flex-shrink:0}
body.patient-app.premium-ui.large-text .doctor-option input{width:1px;height:1px}
body.patient-app.premium-ui.large-text .doctor-options{grid-template-columns:repeat(2,minmax(0,1fr))}
body.patient-app.premium-ui.large-text .rc-navigation{grid-template-columns:minmax(100px,auto) 1fr}
body.patient-app.premium-ui.large-text :is(.rc-consent,.doctor-important){padding:20px}
body.patient-app.premium-ui.large-text #rc-review button{padding:20px;overflow-wrap:anywhere}
body.patient-app.premium-ui.large-text .patient-header-tools{flex-wrap:wrap;justify-content:flex-end}
body.patient-app.premium-ui.large-text :is(.option,.choice,.field-label,legend){overflow-wrap:anywhere}
@media(max-width:600px){body #text-size-toggle{font-size:16px!important;padding:9px 12px}body.patient-app.premium-ui.large-text .doctor-options{grid-template-columns:1fr}body.patient-app.premium-ui.large-text .doctor-choices{grid-template-columns:1fr}body.patient-app.premium-ui.large-text .contact-kind-options{grid-template-columns:1fr 1fr!important}body.patient-app.premium-ui.large-text .patient-header{height:auto;flex-wrap:wrap;gap:12px}body.patient-app.premium-ui.large-text .returning-card{padding:22px!important}}

body.patient-app.premium-ui.large-text :is(.dept-name,.dept-desc,.qg-sub,.multi-hint,.contact-choice-label,.bdx-refined p){font-size:22px!important;line-height:1.65!important}
body.patient-app.premium-ui.large-text .qg-title{font-size:28px!important;line-height:1.5!important}

body.patient-app:not(.large-text) .focus-intake .intake-stage[data-intake-stage="0"] .field{font-size:28px!important}
body.patient-app.premium-ui.large-text .returning-card .rc-field .field{font-size:34px!important}

/* Three direct, persistent text sizes; controls stay within narrow or translated headers. */
body.patient-app.premium-ui .patient-header{display:flex;height:auto;min-height:94px;flex-wrap:wrap;gap:12px;padding-block:14px}
body.patient-app.premium-ui .patient-header-tools{flex-wrap:wrap;max-width:100%;min-width:0}
body.patient-app .text-size-controls{display:flex;flex-wrap:wrap;gap:6px;max-width:100%;min-width:0}
body.patient-app #text-size-controls button{flex:1 1 auto;min-width:0;min-height:44px;max-width:100%;padding:8px 10px;border:1px solid #c9b8aa;border-radius:12px;background:#ffffffed;color:#62422c;font-size:14px!important;font-weight:700;line-height:1.5!important;white-space:normal;overflow-wrap:anywhere;box-shadow:none}
body.patient-app #text-size-controls button[aria-pressed=true]{background:#6b4226;border-color:#6b4226;color:white;box-shadow:0 0 0 2px #8b63441a}
body.patient-app.premium-ui.large-text #text-size-controls button{font-size:16px!important;min-height:48px}
@media(max-width:900px){body.patient-app.premium-ui .patient-header-tools{flex-basis:100%;justify-content:flex-end;margin-left:0}body.patient-app.premium-ui .text-size-controls{flex:1}body.patient-app.premium-ui .patient-header{padding-inline:14px}}
body.patient-app.premium-ui.large-text .language-name{font-size:18px!important;line-height:1.8!important}
.patient-app.large-text.is-greeting #patient-language{grid-template-columns:repeat(auto-fit,minmax(110px,1fr))}

/* Extra-large includes large-text layout safeguards and adds one clearly larger step. */
body.patient-app.premium-ui.extra-large-text{font-size:28px}
body.patient-app.premium-ui.extra-large-text :is(p,label,legend,summary,li,td,th,button,.field-label,.q-label,.q-sub,.field-hint,.choice-label,.option-label,.rc-label,.dept-name,.dept-desc,.qg-sub,.multi-hint,.contact-choice-label,.bdx-refined p){font-size:28px!important;line-height:1.7!important;overflow-wrap:anywhere}
body.patient-app.premium-ui.extra-large-text :is(small,.eyebrow,.badge,.doctor-suffix,.doctor-picker small,#rc-review span,#rc-field-status,#save-status){font-size:22px!important;line-height:1.65!important}
body.patient-app.premium-ui.extra-large-text :is(input:not([type=checkbox]):not([type=radio]),textarea,select,.field){font-size:38px!important;line-height:1.6!important;min-height:76px;min-width:0;max-width:100%}
body.patient-app.premium-ui.extra-large-text :is(.doctor-picker b,#rc-review b,.doctor-important strong,.visit-kind-options b){font-size:32px!important;line-height:1.6!important}
body.patient-app.premium-ui.extra-large-text :is(h1,.welcome-title){font-size:clamp(62px,7vw,84px)!important;line-height:1.45!important;overflow-wrap:anywhere}
body.patient-app.premium-ui.extra-large-text :is(h2,.q-title){font-size:46px!important;line-height:1.5!important;overflow-wrap:anywhere}
body.patient-app.premium-ui.extra-large-text .qg-title{font-size:34px!important;line-height:1.6!important}
body.patient-app.premium-ui.extra-large-text :is(button,.choice,.doctor-option,.doctor-toggle){min-height:72px}
body.patient-app.premium-ui.extra-large-text :is(input[type=checkbox],input[type=radio]){width:32px;height:32px}
body.patient-app.premium-ui.extra-large-text .doctor-option input{width:1px;height:1px}
body.patient-app.premium-ui.extra-large-text .returning-card .rc-field .field{font-size:40px!important}
body.patient-app.premium-ui.extra-large-text #text-size-controls button{font-size:18px!important;min-height:52px}
body.patient-app.premium-ui.extra-large-text .language-name{font-size:22px!important;line-height:1.8!important}
.patient-app.extra-large-text.is-greeting #patient-language{grid-template-columns:repeat(auto-fit,minmax(130px,1fr))}
@media(max-width:760px){body.patient-app.premium-ui.extra-large-text :is(.identity-fields,.contact-choice-grid,.dept-options){grid-template-columns:1fr}}

/* Let translated help text grow in the document flow at every text size. */
body.patient-app.premium-ui #start .assisted-choice{margin-bottom:20px}
body.patient-app.premium-ui #start .assisted-choice #assisted-mode-note{position:static;top:auto;left:auto;grid-column:1/-1;grid-row:2;margin:8px 6px 6px;overflow-wrap:anywhere}
body.patient-app.premium-ui.large-text #start .respondent-selector h3{font-size:24px!important;line-height:1.6!important;overflow-wrap:anywhere}
body.patient-app.premium-ui.large-text #start .respondent-selector .contact-choice-card>span{min-width:0;font-size:22px!important;line-height:1.6!important;overflow-wrap:anywhere}
body.patient-app.premium-ui.extra-large-text #start .respondent-selector h3{font-size:30px!important}
body.patient-app.premium-ui.extra-large-text #start .respondent-selector .contact-choice-card>span{font-size:28px!important}
@media(max-width:760px){body.patient-app.premium-ui.large-text #start .respondent-selector .contact-choice-grid{grid-template-columns:1fr}}
@media(max-width:600px){body.patient-app.premium-ui.large-text #start .assisted-choice{grid-template-columns:1fr}body.patient-app.premium-ui.large-text #start .assisted-choice #assisted-mode-note{grid-row:3}}
body.patient-app #intake-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}
body.patient-app #intake-actions button{display:block;min-width:0;width:100%;padding-inline:12px;overflow-wrap:anywhere;white-space:normal}
body.patient-app.premium-ui .wordmark{min-width:0;max-width:100%}
body.patient-app.premium-ui .wordmark>span{min-width:0}
body.patient-app.premium-ui .wordmark img{flex-shrink:0}
body.patient-app.premium-ui .wordmark small{white-space:normal;overflow-wrap:anywhere;letter-spacing:.08em}
body.patient-app #start-consent,body.patient-app #start-consent .inline-consent{min-width:0;max-width:100%}
body.patient-app #start-consent .consent-choice-heading{flex-wrap:wrap}
body.patient-app #start-consent .consent-choice-heading>span{min-width:0;max-width:100%;white-space:normal;overflow-wrap:anywhere}
body.patient-app #start-consent .consent-detail-toggle{min-width:0;max-width:calc(100% - 45px)}
body.patient-app #start-consent :is(.consent-detail-toggle,.optional-consent-toggle)>span{min-width:0;overflow-wrap:anywhere}
@media(max-width:760px){body.patient-app #start-consent .compact-consent-row{grid-template-columns:minmax(0,1fr)}}

/* Keep action labels and their Korean hints together instead of separate flex columns. */
body.patient-app.premium-ui #btn-next{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px;min-width:0;padding-inline:14px;overflow-wrap:anywhere}
body.patient-app.premium-ui #btn-prev{display:grid;grid-template-columns:auto minmax(0,1fr);gap:8px;min-width:0;overflow-wrap:anywhere}
body.patient-app.premium-ui :is(#btn-next,#btn-prev)>span{min-width:0}
@media(max-width:900px){body.patient-app.premium-ui #transfer-open{flex-basis:100%;width:100%;min-width:0;white-space:normal;overflow-wrap:anywhere}}
@media(max-width:760px){body.patient-app.premium-ui.large-text #survey-footer{position:static;inset:auto;padding:0 14px 20px}body.patient-app.premium-ui.large-text .survey-footer-inner{max-width:100%;grid-template-columns:minmax(0,1fr);gap:10px}body.patient-app.premium-ui.large-text #btn-next{grid-column:1;grid-row:1}body.patient-app.premium-ui.large-text #btn-prev{grid-column:1;grid-row:2}body.patient-app.premium-ui.large-text:not(.is-welcoming) .patient-layout{padding-bottom:24px}}
@media(max-width:760px){body.patient-app.premium-ui.large-text{--pf-footer-height:0px}body.patient-app.premium-ui.large-text .patient-footnote{margin-bottom:24px}}
body.patient-app.premium-ui #transfer-open{display:block;}
body.patient-app.premium-ui.footer-in-flow{--pf-footer-height:0px;}
body.patient-app.premium-ui.footer-in-flow #survey-footer{position:static;inset:auto;padding:0 14px 20px;}
body.patient-app.premium-ui.footer-in-flow .survey-footer-inner{max-width:100%;grid-template-columns:minmax(0,1fr);gap:10px;}
body.patient-app.premium-ui.footer-in-flow #btn-next{grid-column:1;grid-row:1;}
body.patient-app.premium-ui.footer-in-flow #btn-prev{grid-column:1;grid-row:2;}
body.patient-app.premium-ui.footer-in-flow:not(.is-welcoming) .patient-layout{padding-bottom:24px;}
body.patient-app.premium-ui.footer-in-flow .patient-footnote{margin-bottom:24px;}
