/* Primary actions remain reachable from the right; wrap instead of clipping. */
dialog:is(#sheetShell246,.bottomSheet246).bottomSheet246[open]>.sheetFooter246,
dialog.appDialog242 footer,dialog .appActions242,dialog .dialogActions{
 justify-content:flex-end!important;gap:8px!important;flex-wrap:wrap!important;
}
dialog:is(#sheetShell246,.bottomSheet246).bottomSheet246[open]>.sheetFooter246>button,
dialog.appDialog242 footer>button,dialog .appActions242>button{
 flex:0 1 auto!important;width:auto!important;max-width:100%!important;
 margin:0!important;min-height:44px!important;white-space:normal!important;
 overflow-wrap:anywhere;line-height:1.3!important;
}
dialog:is(#sheetShell246,.bottomSheet246).bottomSheet246[open]>.sheetFooter246>button:last-child{margin-left:0!important}
dialog h3{overflow-wrap:anywhere;white-space:normal!important;height:auto!important}
dialog .wizardHeading h3{margin:0!important;line-height:1.25!important}
dialog input,dialog textarea,dialog select{box-sizing:border-box;min-width:0;max-width:100%}
dialog label{overflow-wrap:anywhere}
.inputError273{color:#b42318;font-size:14px;margin:6px 0;line-height:1.4}
#peopleDialog230.rosterSheet273[open]{height:auto!important}
#peopleDialog230.rosterSheet273>.sheetBody246{flex:0 1 auto!important;min-height:0;overflow-y:auto!important;padding-bottom:4px!important}
#peopleDialog230.rosterSheet273 .names230{display:grid!important;grid-template-columns:repeat(3,68px)!important;gap:10px 12px!important;justify-content:center;width:100%;max-height:none!important;overflow:visible!important;padding:5px!important;box-sizing:border-box}
#peopleDialog230.rosterSheet273 .name230{width:68px!important;height:auto!important;aspect-ratio:auto;min-width:68px!important;min-height:68px!important;border-radius:50%!important;white-space:normal!important;overflow-wrap:anywhere;line-height:1.2!important;touch-action:pan-y!important;padding:4px!important;box-sizing:border-box}
#peopleDialog230.rosterSheet273>.selection230{order:3!important;padding-right:0!important}
#peopleDialog230.rosterSheet273>.manage230{align-self:flex-end;margin-right:0!important}
#peopleDialog230 .registryActions258{flex-wrap:wrap!important}
.savedHead264{gap:8px;flex-wrap:wrap;justify-content:flex-end}
.savedHead264>span{margin-right:auto}
#coldDialog267 .coldName267{flex-wrap:wrap}
#coldDialog267 .coldName267 span{white-space:normal}
dialog .wizardField,dialog .formlabel{min-width:0}
dialog .inputNav258[hidden]{display:none!important}
#peopleDialog230.rosterSheet273 .names230{touch-action:pan-y!important}
dialog #personChoices,dialog .planChoices225{justify-content:flex-end;gap:12px;flex-wrap:wrap}
@media(max-height:700px){#peopleDialog230.rosterSheet273>p.hint{display:none!important}}
/* The progress bar remains visible; omit the redundant remaining-count sentence
   when a keyboard leaves very little height for the actual input. */
@media(max-height:480px){
 dialog.bottomSheet246>.completionHint227{display:none!important}
 dialog #wizardProgress,dialog #planProgress225{display:none!important}
 dialog:is(#sheetShell246,.bottomSheet246).bottomSheet246[open]{padding-top:10px!important}
 dialog:is(#sheetShell246,.bottomSheet246).bottomSheet246[open]>.sheetFooter246{padding-top:6px!important}
}
html.compactSheet273 dialog.bottomSheet246>.completionHint227,
html.compactSheet273 dialog #wizardProgress,html.compactSheet273 dialog #planProgress225{display:none!important}

/* Keep the v2.72 painted circle at 60px even when a long name wraps. */
#peopleDialog230.rosterSheet273 .name230:before{inset:auto!important;left:4px!important;top:50%!important;width:60px!important;height:60px!important;transform:translateY(-50%)}

/* Action rows use content-sized controls on the right, not legacy 3-column grids. */
dialog:is(#sheetShell246,.bottomSheet246).bottomSheet246[open]>.sheetFooter246{display:flex!important;justify-content:flex-end!important;gap:8px!important;flex-wrap:wrap!important}
dialog:is(#sheetShell246,.bottomSheet246).bottomSheet246[open]>.sheetFooter246>button{flex:0 1 auto!important;margin:0!important;width:auto!important}
#notesDialog.bottomSheet246 .notesFooter231{display:flex!important;justify-content:flex-end!important;gap:8px!important;flex-wrap:wrap!important}
#notesDialog.bottomSheet246 .notesFooter231 button{margin:0!important;flex:0 1 auto!important;width:auto!important;min-height:44px}
dialog:is(#sheetShell246,.bottomSheet246).bottomSheet246#noteDeleteDialog>.sheetFooter246{justify-content:flex-end!important;gap:8px!important}
#notesDialog.bottomSheet246 .notesHeader231{flex-wrap:wrap;justify-content:flex-end;gap:12px;padding-right:52px!important}
#notesDialog.bottomSheet246 .notesHeader231 h3{flex:1 1 120px}
#notesDialog.bottomSheet246 .notesHeader231 #noteNew{margin-left:auto;min-height:44px;white-space:normal}
#coldBundle274{display:block;width:auto;margin:8px 0 12px auto;min-height:44px;font-size:14px}
#bulkDialog .confirmline{display:flex;justify-content:flex-end;align-items:center;gap:12px;margin-left:auto;width:fit-content;max-width:100%;min-height:44px;cursor:pointer}
#bulkDialog .confirmline input{flex:0 0 24px;width:24px;height:24px;margin:0}
/* Hidden input navigation must not be revived by the common flex footer. */
dialog:is(#sheetShell246,.bottomSheet246).bottomSheet246[open]>.sheetFooter246[hidden],
dialog:is(#sheetShell246,.bottomSheet246).bottomSheet246#coldDialog267>.inputNav258{display:none!important}

/* Keep every risk choice above the keyboard without changing normal layout. */
html.keyboard274 #coldDialog267.bottomSheet246[open]{padding:8px 14px 6px!important;max-height:calc(var(--sheet-height246) - 4px)!important}
html.keyboard274 #coldDialog267>.sheetHeader246{margin-bottom:4px!important}
html.keyboard274 #coldDialog267>.stepMeter242{margin-bottom:4px!important}
html.keyboard274 #coldDialog267 .coldName267{padding:4px 8px}
html.keyboard274 #coldDialog267 .wizardField{margin:2px 0!important;gap:2px!important}
html.keyboard274 #coldDialog267 .wizardField input{min-height:40px!important;height:40px!important;padding:6px 36px 6px 10px!important}
html.keyboard274 #coldDialog267 .coldBody267>.hint{margin:4px 0!important;line-height:1.3}
html.keyboard274 #coldDialog267 .coldGrid267{gap:3px 8px}
html.keyboard274 #coldDialog267 .coldChoice267{min-height:54px;gap:1px;padding:0}
html.keyboard274 #coldDialog267 .coldDot267{width:32px;height:32px}
html.keyboard274 #coldDialog267 .coldChoice267 small{line-height:1.1}
html.keyboard274 #coldDialog267>.sheetBody246{padding-bottom:2px}
html.keyboard274 #coldDialog267>.sheetFooter246{padding-top:4px!important}
#peopleDialog230 .name230,#peopleDialog230 .name230 small{text-shadow:none!important}
html.keyboard274 #coldDialog267 .coldBody267>.hint{display:none}
html.keyboard274 #coldDialog267 .coldBody267>.wizardField{display:grid!important;grid-template-columns:auto minmax(0,1fr);align-items:center;column-gap:8px!important;margin-bottom:6px!important}
html.keyboard274 #coldDialog267 .coldBody267>.wizardField>.inputError273{grid-column:1 / -1}
html.keyboard274 #coldDialog267 .coldBody267>.wizardField>.fitStatus258{grid-column:1 / -1}
html.keyboard274 #coldDialog267 .coldChoice267{min-height:44px;line-height:1.2}
html.keyboard274 #coldDialog267 .coldDot267{width:28px;height:28px}

/* App typography stays independent of Android font scaling. Pinch viewers remain unchanged. */
html{-webkit-text-size-adjust:100%;text-size-adjust:100%}

/* Every sheet is constrained to the viewport remaining above the IME. */
html.keyboard276 dialog.bottomSheet246[open]:not(#educationView255){max-height:calc(var(--sheet-height246) - 4px)!important;min-height:0!important;padding-top:8px!important;padding-bottom:6px!important}
html.keyboard276 dialog.bottomSheet246.longSheet246[open]{height:calc(var(--sheet-height246) - 4px)!important}
html.keyboard276 dialog.bottomSheet246>.sheetBody246{flex:1 1 auto!important;min-height:0!important;overflow-y:auto!important;overscroll-behavior:contain}
html.keyboard276 dialog.bottomSheet246>.sheetHeader246{margin-bottom:4px!important}
html.keyboard276 dialog.bottomSheet246>.completionHint227{display:none!important}
html.keyboard276 dialog.bottomSheet246>.sheetFooter246{flex:0 0 auto!important;padding-top:4px!important}
html.keyboard276 dialog.bottomSheet246>.riskDock276{order:3;flex:0 0 auto;display:flex;justify-content:flex-end;gap:12px;margin:0!important;padding:4px 0;background:white}
html.keyboard276 .riskDock276 .roundChoice229{width:48px!important;height:48px!important;min-height:44px!important;margin:0!important;font-size:12px!important}
dialog .inputNav258 button:last-child:not(:disabled){background:#d8f3ec!important;color:#115e59!important;border:1px solid #75bdb0!important;font-weight:700}
dialog .inputNav258 button:last-child:disabled{background:#f1f3f5!important;color:#8b939d!important;border:1px solid #e0e4e8!important}

/* Field navigation is a capsule, distinct from blue step confirmation. */
dialog .inputNav258 button{border-radius:999px!important;padding:8px 16px!important;min-height:44px!important;min-width:0!important;font-size:12px!important}
dialog .inputNav258 button:first-child{background:#f1f3f5!important;color:#556273!important;border:1px solid #e0e4e8!important}
