/* Native folding-context placement overrides only the HTML bar, never system UI.
   Existing nodes, focus, active tab, sheets and workout drafts remain mounted. */
html[data-native-navigation]{--nav-height:74px}
html[data-native-navigation].short-viewport{--nav-height:58px}
html[data-native-navigation] .app-shell{padding-inline:var(--safe-left) var(--safe-right);padding-bottom:calc(var(--nav-height) + 26px + var(--safe-bottom))}
html[data-native-navigation] body.training-active .app-shell{padding-bottom:0}
html[data-native-navigation=bottom] .bottom-nav{left:50%;right:auto;top:auto;bottom:var(--viewport-bottom,0px);transform:translateX(-50%);width:min(100%,var(--content-width));height:calc(var(--nav-height) + var(--safe-bottom));padding:8px max(10px,var(--safe-right)) var(--safe-bottom) max(10px,var(--safe-left));grid-template-columns:repeat(5,minmax(0,1fr));grid-template-rows:1fr;align-content:start;border-top:1px solid var(--line);border-left:0;overflow:visible}
html[data-native-navigation=bottom] .bottom-nav button{height:60px;min-height:44px}
html[data-native-navigation=bottom] .bottom-nav .train-nav .nav-icon{margin-top:-12px}
html[data-native-navigation=bottom].short-viewport .bottom-nav{padding-top:2px}
html[data-native-navigation=bottom].short-viewport .bottom-nav button{height:54px}
html[data-native-navigation=side],html[data-native-navigation=side].short-viewport{--nav-height:0px}
html[data-native-navigation=side] .app-shell{padding-bottom:calc(16px + var(--safe-bottom))}
html[data-native-navigation=side] body.training-active .app-shell{padding-bottom:0}
html[data-native-navigation=side] .bottom-nav{left:var(--native-nav-x);top:var(--native-nav-y);right:auto;bottom:auto;width:var(--native-nav-width);height:var(--native-nav-height);transform:none;display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:repeat(5,var(--native-nav-row));align-content:center;gap:0;padding:0;border:0;border-radius:18px;background:rgba(16,17,15,.94);overflow:visible}
html[data-native-navigation=side] .bottom-nav button{width:100%;height:var(--native-nav-row);min-height:44px;min-width:44px;gap:3px;border-radius:12px;font-size:10px}
html[data-native-navigation=side] .bottom-nav .nav-icon{font-size:22px}
html[data-native-navigation=side] .bottom-nav .train-nav .nav-icon{margin-top:0}
html[data-native-navigation=side] .bottom-nav .train-nav span:last-child{margin-top:0}
html[data-native-navigation] .bottom-nav button:focus-visible{outline-offset:-2px}
html[data-native-navigation] .toast{left:calc((100% + var(--safe-left) - var(--safe-right))/2);max-width:calc(100% - var(--safe-left) - var(--safe-right) - 24px)}
html[data-native-navigation=bottom] body:not(.training-active) .app-shell{padding-bottom:calc(var(--nav-height) + 26px + var(--safe-bottom))}
html[data-native-navigation=side] body:not(.training-active) .app-shell{padding-bottom:calc(16px + var(--safe-bottom))}
/* Keep the active Train glyph legible against its lime circular background. */
html[data-native-navigation] .bottom-nav .train-nav .nav-icon{color:var(--signal-ink)}
