/* Native APK proportions: a narrow accordion drawer and contained form windows. */
.mobile .native-mobile-drawer .modal-head{padding:12px 8px 12px 16px;align-items:center;gap:8px}
.mobile .native-drawer-title{display:flex;flex-direction:column;gap:4px;min-width:0}
.mobile .native-drawer-title h2{font-size:20px;line-height:1.35}
.mobile .native-drawer-title>.muted{font-size:12px;line-height:1.45;overflow-wrap:anywhere}
.mobile .native-mobile-drawer .modal-head>button{width:44px;min-width:44px;height:44px;flex:none;font-size:25px;padding:0;border:0;background:transparent}
.mobile .native-mobile-drawer .modal-body{padding:4px 8px 8px;overflow:auto;overscroll-behavior:contain}
.mobile .native-mobile-drawer .modal-body>.stack{gap:0}
.native-drawer-group{margin-top:6px}
.mobile .native-mobile-drawer button.native-drawer-heading,.mobile .native-mobile-drawer button.native-drawer-action{display:flex;align-items:center;justify-content:space-between;width:100%;gap:8px;color:var(--text);margin:0;box-shadow:none;border:0;border-radius:8px;background:transparent;font-size:16px;line-height:1.45;text-align:left;white-space:normal}
.mobile .native-mobile-drawer button.native-drawer-heading{min-height:52px;padding:12px 8px;font-size:17px;font-weight:700}
.mobile .native-mobile-drawer button.native-drawer-heading[aria-expanded=true]{background:var(--selected)}
.native-drawer-heading>span:first-child,.native-drawer-action>span:first-child{flex:1;min-width:0;overflow-wrap:anywhere}
.native-drawer-chevron{flex:0 0 22px;text-align:center;color:var(--muted);font-size:21px;transition:transform 120ms ease}
.native-drawer-heading[aria-expanded=true]>.native-drawer-chevron{transform:rotate(90deg)}
.native-drawer-children{padding:0 0 6px 18px;animation:native-menu-reveal 120ms ease}
.native-drawer-children[hidden]{display:none!important}
.mobile .native-mobile-drawer button.native-drawer-action{min-height:48px;padding:12px 10px 12px 8px;font-size:15px;font-weight:400}
.mobile .native-mobile-drawer button.native-drawer-action.danger{color:var(--warn)}
.mobile .native-mobile-drawer button.native-drawer-action:active{background:var(--hover)}
.native-drawer-themes{display:flex;gap:4px;padding:4px 8px}
.mobile .native-mobile-drawer .native-drawer-themes button{flex:1 1 0;width:0;min-width:0;min-height:46px;padding:8px 2px;text-align:center;font-size:14px;white-space:nowrap}
.mobile .native-mobile-drawer .native-drawer-themes button[aria-pressed=true]{background:var(--selected);font-weight:700}
.mobile .native-mobile-drawer .modal-foot{display:block;padding:9px 12px calc(12px + env(safe-area-inset-bottom)) 16px;border-top:1px solid var(--line);background:var(--panel)}
.native-mobile-drawer .modal-foot>.muted{font-size:11px;line-height:1.5}
.native-choice-row{display:flex;align-items:center;gap:10px;line-height:1.55;cursor:pointer}
.native-choice-row>input[type=checkbox]{flex:none}
.mobile dialog.native-mobile-form{inset:0;margin:auto;width:calc(100% - 24px)!important;max-width:640px;height:calc(var(--mobile-viewport-height,100dvh) * .88);max-height:calc(var(--mobile-viewport-height,100dvh) - 24px);border:1px solid var(--line);border-radius:16px;background:var(--panel)}
.mobile .native-mobile-form .modal-head{padding:16px 16px 10px;border-bottom:1px solid var(--line);min-width:0}
.mobile .native-mobile-form .modal-head h2{font-size:20px;line-height:1.4;overflow-wrap:anywhere}
.mobile .native-mobile-form .modal-head>button{flex:none}
.mobile .native-mobile-form .modal-body{padding:12px 16px 20px;flex:1 1 auto;min-height:0;max-height:none;overflow:auto;overscroll-behavior:contain}
.mobile .native-mobile-form .form{display:grid;grid-template-columns:minmax(0,1fr);gap:14px}
.mobile .native-mobile-form .field{min-width:0;gap:6px}
.mobile .native-mobile-form .field>label{font-size:12px;color:var(--muted);line-height:1.5}
.mobile .native-mobile-form .field input:not([type=checkbox]),.mobile .native-mobile-form .field select,.mobile .native-mobile-form textarea{font-size:15px;padding:11px 12px;min-height:48px;max-width:100%;border-radius:8px;color:var(--text);background:var(--panel)}
.mobile .native-mobile-form textarea{min-height:96px}
.mobile .native-mobile-form .native-choice-row{min-height:44px;font-size:15px}
.mobile .native-mobile-form .container-depth-tabs{position:sticky;top:-12px;z-index:2}
.mobile .native-mobile-form .container-depth-tabs button{min-width:0;white-space:normal;font-size:15px}
.mobile .native-mobile-form .container-tab-body{padding:14px 12px}
.mobile .native-mobile-form .modal-foot{display:flex;flex:none;justify-content:flex-end;gap:8px;flex-wrap:wrap;padding:10px 12px calc(12px + env(safe-area-inset-bottom));max-height:calc(var(--mobile-viewport-height,100dvh) * .28);overflow:auto;border-top:1px solid var(--line);background:var(--panel)}
.mobile .native-mobile-form .modal-foot>button{flex:0 1 auto;width:auto;min-width:68px;max-width:100%;min-height:44px;font-size:14px;line-height:1.4;padding:9px 10px;margin:0;white-space:normal}
.mobile .native-mobile-form .modal-foot>button.primary{flex:0 1 auto;margin-left:auto;min-width:88px}
.mobile dialog.manual-category-dialog{height:auto;max-height:calc(var(--mobile-viewport-height,100dvh) * .8)}
.mobile .manual-category-dialog .modal-body{flex:0 1 auto}
@keyframes native-menu-reveal{from{opacity:0}to{opacity:1}}
@media(prefers-reduced-motion:reduce){.native-drawer-children{animation:none}.native-drawer-chevron{transition:none}}
