/* Capacitor Android presentation. Every rule is scoped to the canonical
   platform root; browser/PWA layout cannot receive these geometry rules. */
html[data-ui-profile="android-app"], html[data-ui-profile="android-app"] body {
  width:100%; height:100%; min-height:0; margin:0; overflow:hidden;
}
html[data-ui-profile="android-app"] #appShell {
  width:100%; height:100dvh; min-height:0; max-height:100dvh; overflow:hidden;
}
/* Build 15 top is frozen: native root already begins below system bars. */
html[data-ui-profile="android-app"] .topbar { height:auto; min-height:76px; padding:16px; }
html[data-ui-profile="android-app"] .main {
  min-width:0; min-height:0; height:100%; overflow:hidden; display:flex; flex-direction:column;
}
html[data-ui-profile="android-app"] .content {
  min-width:0; min-height:0; flex:1 1 auto; overflow-y:auto; overflow-x:hidden;
  padding-bottom:calc(var(--android-bottom-nav-height) + 24px);
}
html[data-ui-profile="android-app"] #androidBottomNav {
  --android-bottom-nav-height:72px;
  position:fixed; left:0; right:0; bottom:0; z-index:80; display:flex; width:100%;
  height:var(--android-bottom-nav-height); min-height:var(--android-bottom-nav-height);
  max-height:var(--android-bottom-nav-height); padding:6px 4px;
  overflow:hidden;
}
html[data-ui-profile="android-app"] #androidBottomNav .android-nav-item {
  flex:1 1 25%; width:25%; height:100%; min-height:0; max-height:100%; padding:4px;
  font-size:12px; white-space:nowrap; overflow:hidden;
}
html[data-ui-profile="android-app"] .app-footer { padding-bottom:14px; }
html[data-ui-profile="android-app"] .modal-overlay,
html[data-ui-profile="android-app"] .map-modal { padding:16px; }
html[data-ui-profile="android-app"] .camera-modal { padding:0; }
html[data-ui-profile="android-app"] input,
html[data-ui-profile="android-app"] select,
html[data-ui-profile="android-app"] textarea { min-height:46px; }
html[data-ui-profile="android-app"] .sidebar,
html[data-ui-profile="android-app"] #sidebarToggle,
html[data-ui-profile="android-app"] #sidebarBackdrop { display:none !important; }
html[data-ui-profile="android-app"] .app-shell { grid-template-columns:1fr; }


/* Android-only compact settings/profile presentation; no geometry changes. */
html[data-ui-profile="android-app"] .profile-settings-shell { display:block; }
html[data-ui-profile="android-app"] .profile-settings-shell > .card { padding:16px; margin-bottom:12px; border-radius:16px; }
html[data-ui-profile="android-app"] .profile-settings-shell .stack > div { display:flex; justify-content:space-between; gap:16px; padding:7px 0; }
html[data-ui-profile="android-app"] .profile-settings-shell .profile-photo-form { display:block; }
html[data-ui-profile="android-app"] .profile-photo-form .row-actions { margin-top:10px; }
html[data-ui-profile="android-app"] .profile-settings-shell h3, html[data-ui-profile="android-app"] #notifReadinessCard h3 { font-size:16px; }
html[data-ui-profile="android-app"] #notifReadinessCard { padding:16px; border-radius:16px; }
html[data-ui-profile="android-app"] .mobile-setting-row { min-height:56px; display:flex; align-items:center; justify-content:space-between; gap:12px; border-bottom:1px solid var(--border); }
html[data-ui-profile="android-app"] .mobile-setting-row:last-child { border-bottom:0; }
html[data-ui-profile="android-app"] .setting-leading { display:flex; align-items:center; gap:10px; font-size:14px; }
html[data-ui-profile="android-app"] .setting-icon { width:21px; height:21px; fill:none; stroke:#91a8c8; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; }
html[data-ui-profile="android-app"] .mobile-switch { width:46px; height:27px; padding:2px; border:0; border-radius:999px; background:#3b4656; position:relative; appearance:none; -webkit-appearance:none; transition:background .18s ease-out; cursor:pointer; }
html[data-ui-profile="android-app"] .mobile-switch::after { content:""; display:block; width:23px; height:23px; border-radius:50%; background:#e8eef7; transform:translateX(0); transition:transform .18s ease-out; }
html[data-ui-profile="android-app"] .mobile-switch.on { background:#287bf2; }
html[data-ui-profile="android-app"] .mobile-switch.on::after { transform:translateX(19px); }
html[data-ui-profile="android-app"] .mobile-switch:disabled { opacity:.42; cursor:default; }
html[data-ui-profile="android-app"] .mobile-switch:focus-visible { outline:2px solid #7db0ff; outline-offset:2px; }
html[data-ui-profile="android-app"] .app-about-footer { padding-bottom:8px; }

html[data-ui-profile="android-app"] .mobile-profile-identity { display:flex; align-items:center; gap:13px; padding:8px 4px 18px; }
html[data-ui-profile="android-app"] .mobile-profile-avatar { width:54px; height:54px; display:grid; place-items:center; border-radius:50%; background:#193d69; color:#9fc5ff; font-size:18px; font-weight:800; }
html[data-ui-profile="android-app"] .mobile-profile-identity strong, html[data-ui-profile="android-app"] .mobile-profile-identity span, html[data-ui-profile="android-app"] .mobile-profile-identity small { display:block; }
html[data-ui-profile="android-app"] .mobile-profile-identity span { color:var(--muted); font-size:13px; margin-top:3px; }
html[data-ui-profile="android-app"] .mobile-profile-identity small { color:var(--muted); font-size:12px; margin-top:2px; }
html[data-ui-profile="android-app"] .profile-settings-shell::before { content:"AKUN & PROFIL"; display:block; color:#91a8c8; font-size:11px; font-weight:800; letter-spacing:.08em; margin:0 4px 7px; }
html[data-ui-profile="android-app"] #notifReadinessCard::before { content:"PENGATURAN"; display:block; color:#91a8c8; font-size:11px; font-weight:800; letter-spacing:.08em; margin-bottom:10px; }
