/* iPhone presentation, loaded after shared mobile styles. */
html.ios-app { -webkit-text-size-adjust:100%; background:#f2f2f7; }
.ios-app body.mobile-app { --mobile-line:#e1e2e8; background:#f2f2f7; font-family:-apple-system,BlinkMacSystemFont,sans-serif; }
.ios-app body.mobile-app :is(button,input,textarea,select,h1,h2,h3,strong,.record-number) { font-family:inherit!important; }
.ios-app body.mobile-app #app .topbar { padding-top:env(safe-area-inset-top); background:#f2f2f7; }
.ios-app body.mobile-app #app .topbar h1 { font-size:28px; letter-spacing:-.025em; }
.ios-app body.mobile-app #app .container { padding-left:max(16px,env(safe-area-inset-left)); padding-right:max(16px,env(safe-area-inset-right)); }
.ios-app .mobile-bottom-nav { padding-top:4px; background:#fafafc; box-shadow:none; }
.ios-app .mobile-bottom-nav button { min-height:49px; font-weight:500; font-size:10px; gap:4px; }
.ios-app .mobile-bottom-nav svg { width:25px; height:25px; padding:0; border-radius:0; }
.ios-app .mobile-bottom-nav button.active svg { background:none; }
.ios-app body.mobile-app :is(.mobile-menu-list,.mobile-case-menu,.mobile-case-info,.task-card) { border-radius:16px; box-shadow:none; }
.ios-app body.mobile-app :is(input,select,textarea) { font-size:16px; scroll-margin-block:90px; }
.ios-app body.mobile-app input:is([type=date],[type=time],[type=datetime-local]) { min-width:0; max-width:100%; min-height:44px; box-sizing:border-box; }
.ios-app body.mobile-app button { touch-action:manipulation; -webkit-tap-highlight-color:transparent; }
.ios-app body.mobile-app button:active { opacity:.65; }
.ios-app body.mobile-app .mobile-case-back svg { width:28px; height:28px; padding:3px; border:0; background:none; }
.ios-app body.mobile-app[data-mobile-screen=cases]:is([data-mobile-case-view=detail],[data-mobile-case-view=action]) #app .container { padding-top:calc(10px + env(safe-area-inset-top)); padding-bottom:calc(24px + env(safe-area-inset-bottom)); }
.ios-app body.mobile-app #org-manual-form:not(.hidden),
.ios-app body.mobile-app #case-workspace .case-person.open { padding-bottom:calc(24px + env(safe-area-inset-bottom)); }
.ios-app body.mobile-app.mobile-keyboard-open #tab-content-ai-chat .ai-chat-input-row { padding-bottom:10px; }
.ios-app body.mobile-app.mobile-keyboard-open #app #tab-content-tasks :is(.task-form:not(.hidden),.task-edit-form),
.ios-app body.mobile-app.mobile-keyboard-open #case-workspace .mobile-section-editor:not(.hidden),
.ios-app body.mobile-app.mobile-keyboard-open #org-manual-form:not(.hidden) { height:min(100dvh,var(--mobile-visible-height,100dvh)); }
@media(prefers-reduced-motion:reduce) {
 .ios-app *, .ios-app *::before, .ios-app *::after { scroll-behavior:auto!important; animation:none!important; transition:none!important; }
}
