/* View preference is available before sign-in and in Settings. */
.view-layout-setting {display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin:10px 0;font-size:11px;line-height:1.4;}
#account-screen .view-layout-setting {display:flex;}
#systems-window .view-layout-setting {grid-column:1 / -1;}
.view-layout-setting select[data-view-layout] {min-width:112px;max-width:100%;padding:8px 10px;border:1px solid #648b85;border-radius:4px;color:#e3eee7;background:#142d32;font:inherit;}
[data-view-layout-status] {font-size:11px;line-height:1.4;color:#bed0c8;}
.view-layout-setting select:focus-visible {outline:2px solid #e4d09a;outline-offset:2px;}
html.view-mobile .view-layout-setting select[data-view-layout],html.view-mobile #systems-window .view-layout-setting select[data-view-layout] {min-height:44px;font-size:16px;}

/* Hiding touch buttons keeps Mobile view and an ordinary route back to Settings.
 * The saved native hotbar stays available when there is no Actions touch tray. */
html.view-mobile:not(.touch-ui):not(.touch-keyboard-open) #hud .hud-dock {
 display:flex!important;position:fixed;left:auto;right:var(--touch-safe-right);bottom:calc(var(--touch-vv-bottom) + var(--touch-safe-bottom) + 76px);
 width:auto;max-width:calc(var(--touch-vv-width) - var(--touch-safe-left) - var(--touch-safe-right));gap:6px;
}
html.view-mobile:not(.touch-ui):not(.touch-keyboard-open) #hud .hud-dock button {min-height:44px;min-width:68px;padding:8px;}
html.view-mobile:not(.touch-ui):not(.touch-keyboard-open) #hud .hud-dock kbd {display:none;}
html.view-mobile:not(.touch-ui):not(.touch-keyboard-open) #hud .hotbar {
 display:flex!important;position:fixed;left:calc(var(--touch-vv-left) + var(--touch-safe-left));right:auto;top:auto;transform:none;
 bottom:calc(var(--touch-vv-bottom) + var(--touch-safe-bottom));width:calc(var(--touch-vv-width) - var(--touch-safe-left) - var(--touch-safe-right));max-width:none;
 height:64px;padding:4px;overflow-x:auto;overflow-y:hidden;overscroll-behavior:contain;touch-action:pan-x;box-sizing:border-box;
}
html.view-mobile:not(.touch-ui):not(.touch-keyboard-open) #hud #hotbar-slots {display:flex;flex-wrap:nowrap;justify-content:flex-start;flex:0 0 auto;width:max-content;max-width:none;gap:5px;}
html.view-mobile:not(.touch-ui):not(.touch-keyboard-open) #hud #hotbar-slots>* {width:48px;min-width:48px;min-height:48px;flex:0 0 48px;}
html.view-mobile:not(.touch-ui) #tool-status {bottom:calc(var(--touch-vv-bottom) + var(--touch-safe-bottom) + 76px);width:min(140px,calc(var(--touch-vv-width) - 220px));}
html.view-mobile:not(.touch-ui) .fishing-activity {max-height:calc(var(--touch-vv-height) - var(--touch-safe-top) - var(--touch-safe-bottom) - 150px);}
