/* Mobile-first shell for the staging Workbench design.
   The navigation is independent of the selected body[data-theme] setting.
   Layout/navigation only; desktop and Original sidebar mode are unaffected.
   Keep this stylesheet AFTER all legacy responsive rules. */
#gtt-mobile-navigation{display:none}
#wb2-shell .gtt-mobile-page-title,
#wb2-shell .gtt-mobile-header-browse{display:none!important}
@media (max-width:860px), (pointer:coarse) and (orientation:landscape) and (max-height:600px) and (max-width:1100px) {
  html[data-gtt-design-mode="workbench"] {
    --gtt-nav-height:calc(56px + env(safe-area-inset-top,0px));
    --gtt-context-height:0px;
    --gtt-mobile-top:var(--gtt-nav-height);
    --gtt-mobile-bottom:calc(65px + env(safe-area-inset-bottom,0px));
    --gtt-safe-nav-top:var(--gtt-mobile-top);
    --gtt-safe-page-height:calc(100dvh - var(--gtt-mobile-top));
    --gtt-safe-dialog-height:calc(100dvh - var(--gtt-mobile-top) - 16px);
  }
  html[data-gtt-design-mode="workbench"],
  html[data-gtt-design-mode="workbench"] body {
    max-width:100%;
    overflow-x:clip;
  }
  /* Workbench and UI theme are independent settings. The older desktop
     Workbench stylesheet only hid the Original sidebar in the glass theme;
     without this, changing the skin resurrects two navigation systems. */
  html[data-gtt-design-mode="workbench"] body[data-theme]{
    --gtt-shell-side-width:0px!important;
  }
  html[data-gtt-design-mode="workbench"] body[data-theme] .app.app-shell{
    display:block!important;grid-template-columns:minmax(0,1fr)!important;
    width:100%!important;max-width:100%!important;min-width:0!important;
  }
  html[data-gtt-design-mode="workbench"] body[data-theme] #sidebar.side.sidebar,
  html[data-gtt-design-mode="workbench"] body[data-theme] .gtt-shell-dock{
    display:none!important;
  }
  html[data-gtt-design-mode="workbench"] body[data-theme] .app.app-shell>.main.main-area{
    display:flex!important;flex-direction:column!important;
    grid-column:1!important;width:100%!important;max-width:none!important;
    min-width:0!important;margin:0!important;
  }
  html[data-gtt-design-mode="workbench"] body[data-theme]:is(
    [data-current-view="planner-v2"],
    [data-current-view="planner-v4"],
    [data-current-view="world-planner-v2"]
  ) {overflow:hidden!important}
  html[data-gtt-design-mode="workbench"] body[data-theme]:is(
    [data-current-view="planner-v2"],
    [data-current-view="planner-v4"],
    [data-current-view="world-planner-v2"]
  ) :is(.app.app-shell,.app.app-shell>.main.main-area){
    height:100dvh!important;min-height:0!important;
    max-height:100dvh!important;overflow:hidden!important;
  }

  /* Desktop category scroller and second header row are NOT mobile navigation. */
  html[data-gtt-design-mode="workbench"] body[data-theme] #wb2-shell .wb2-bar {
    top:0!important;left:0!important;right:0!important;
    height:var(--gtt-mobile-top)!important;
    min-height:var(--gtt-mobile-top)!important;
    padding:env(safe-area-inset-top,0px) calc(10px + env(safe-area-inset-right,0px))
      0 calc(10px + env(safe-area-inset-left,0px))!important;
    display:flex!important;align-items:center!important;gap:7px!important;
    box-sizing:border-box!important;z-index:340!important;
    overflow:visible!important;
  }
  html[data-gtt-design-mode="workbench"] #wb2-shell :is(.wb2-bar-divider,.wb2-nav-wrap,.wb2-context,.wb2-popover) {
    display:none!important;
  }
  html[data-gtt-design-mode="workbench"] body[data-theme] #wb2-shell .wb2-brand {
    flex:0 0 38px!important;min-width:38px!important;
    width:38px!important;min-height:44px!important;
    height:44px!important;gap:0!important;
    padding:0!important;justify-content:center!important;
  }
  html[data-gtt-design-mode="workbench"] body[data-theme] #wb2-shell .wb2-brand-img {
    display:block!important;width:36px!important;height:36px!important;
    min-width:36px!important;max-width:36px!important;object-fit:contain!important;
  }
  html[data-gtt-design-mode="workbench"] #wb2-shell .wb2-brand-word {
    display:none!important;
  }
  html[data-gtt-design-mode="workbench"] #wb2-shell .gtt-mobile-page-title {
    display:block!important;min-width:0;flex:1 1 auto;
    overflow:hidden;text-overflow:ellipsis;white-space:nowrap;
    color:#eef8ff;font-size:14px;font-weight:760;letter-spacing:-.015em;
  }
  html[data-gtt-design-mode="workbench"] #wb2-shell .wb2-actions {
    flex:0 0 auto!important;display:flex!important;gap:6px!important;
    min-width:0!important;padding:0!important;border:0!important;
  }
  html[data-gtt-design-mode="workbench"] body[data-theme] #wb2-shell .wb2-actions .wb2-action {
    display:inline-flex!important;align-items:center!important;justify-content:center!important;
    box-sizing:border-box!important;flex:0 0 44px!important;
    width:44px!important;min-width:44px!important;
    height:44px!important;min-height:44px!important;
    margin:0!important;padding:0!important;border-radius:13px!important;
  }
  html[data-gtt-design-mode="workbench"] #wb2-shell :is(.wb2-search-label,.wb2-settings-label) {
    display:none!important;
  }
  html[data-gtt-design-mode="workbench"] #wb2-shell .gtt-mobile-header-browse {
    display:none;align-items:center;justify-content:center;
    width:44px;min-width:44px;height:44px;min-height:44px;
    padding:0;border:1px solid rgba(179,219,255,.34);
    border-radius:13px;color:#f0faff;font-size:23px;font-weight:500;
    background:linear-gradient(148deg,rgba(117,176,232,.2),rgba(34,76,133,.31));
    cursor:pointer;
  }
  html[data-gtt-design-mode="workbench"] #wb2-shell :is(.gtt-mobile-header-browse,.wb2-action):focus-visible,
  html[data-gtt-design-mode="workbench"] #gtt-mobile-navigation button:focus-visible,
  html[data-gtt-design-mode="workbench"] #gtt-mobile-navigation :is(summary,input):focus-visible{
    outline:2px solid #8adeff!important;outline-offset:2px!important;
  }

  /* Reserve one predictable content viewport across ALL ordinary routes.
     Older mobile sheets hardcoded incompatible 55/65/117px top offsets. */
  html[data-gtt-design-mode="workbench"] body[data-theme]:not([data-current-view="planner-v2"]):not([data-current-view="planner-v4"]):not([data-current-view="world-planner-v2"]) .main-area>#content.content,
  html[data-gtt-design-mode="workbench"] body[data-theme][data-current-view="arcade"] .main-area>#content.content {
    box-sizing:border-box!important;width:100%!important;max-width:100%!important;
    min-width:0!important;margin:0 auto!important;
    padding:calc(var(--gtt-mobile-top) + 14px)
      12px calc(var(--gtt-mobile-bottom) + 18px)!important;
    overflow-x:clip!important;overflow-y:visible!important;
  }
  html[data-gtt-design-mode="workbench"] body[data-theme] .main-area>.foot.footer{
    box-sizing:border-box!important;max-width:100%!important;
    padding:0 12px calc(var(--gtt-mobile-bottom) + 12px)!important;
  }
  html[data-gtt-design-mode="workbench"] #content :is(
    .h162-root,.gtmarket,.growpedia,.gp-redesign,.gt-arcade,
    .gpc,.q203,.gtorial-v4,.cc-root,.gtd-root,.gta-root,
    .gm-toolbar,.gm-filter-line,.arc-game-top,.arc-heading
  ){
    box-sizing:border-box;min-width:0!important;max-width:100%!important;
  }
  html[data-gtt-design-mode="workbench"] #content :is(
    .gm-toolbar,.gm-filter-line,.gp-new-toolbar,
    .arc-game-top,.arc-simple-buttons
  ){flex-wrap:wrap!important;gap:8px}
  html[data-gtt-design-mode="workbench"] #content :is(
    .gm-card-grid,.gm-new-category-grid,.arc-simple-games
  ){max-width:100%!important;min-width:0!important}
  html[data-gtt-design-mode="workbench"] #content :is(
    .table-wrapper,.table-wrap,.table-container,.table-scroll,
    .responsive-table,.gtt-mobile-table-scroll
  ){max-width:100%!important;overflow-x:auto;-webkit-overflow-scrolling:touch;overscroll-behavior-x:contain}
  html[data-gtt-design-mode="workbench"] #content :is(
    .gtmarket,.growpedia,.gt-arcade,.q203,.gtd-root,.gta-root,.gtorial-v4
  ) :is(input:not([type=checkbox]):not([type=radio]),textarea,select){
    max-width:100%;min-width:0;box-sizing:border-box;
  }
  html[data-gtt-design-mode="workbench"] #content :is(
    .gtmarket,.growpedia,.gt-arcade,.q203,.gtd-root,.gta-root,.gtorial-v4
  ) :is(input[type=search],input[type=text],input[type=number],textarea,select){
    font-size:16px!important;
  }

  /* Daily Challenges: the desktop glass toolbar forces nowrap and a rigid
     status tag. At 320–390px this steals space from the search field and can
     clip controls. Keep search usable and wrap metadata onto its own line. */
  html[data-gtt-design-mode="workbench"] body[data-theme][data-current-view="challenges"]:not([data-dc-skin="growtopia"])
    #content .v5-toolbar.glass{
    box-sizing:border-box!important;
    display:flex!important;flex-wrap:wrap!important;align-items:center!important;
    width:100%!important;max-width:min(100%,520px)!important;
    min-width:0!important;gap:8px!important;
  }
  html[data-gtt-design-mode="workbench"] body[data-theme][data-current-view="challenges"]:not([data-dc-skin="growtopia"])
    #content .v5-toolbar.glass .v5-search{
    box-sizing:border-box!important;flex:1 1 170px!important;
    min-width:0!important;max-width:100%!important;
  }
  html[data-gtt-design-mode="workbench"] body[data-theme][data-current-view="challenges"]:not([data-dc-skin="growtopia"])
    #content .v5-toolbar.glass .v5-search input{
    min-width:0!important;max-width:100%!important;width:100%!important;
    box-sizing:border-box!important;font-size:16px!important;
  }
  html[data-gtt-design-mode="workbench"] body[data-theme][data-current-view="challenges"]:not([data-dc-skin="growtopia"])
    #content .v5-toolbar.glass>.tag{
    flex:0 1 auto!important;max-width:100%!important;
    white-space:normal!important;overflow-wrap:anywhere!important;
  }

  /* Market category descriptions had white-space:nowrap in v111. That can
     spill outside a two-column tile on narrow phones despite the responsive
     grid. Allow labels and subtitles to wrap without truncating meaning. */
  html[data-gtt-design-mode="workbench"] body[data-theme][data-current-view="market"]
    #content .gtmarket .gm-new-category-grid>*{
    box-sizing:border-box!important;min-width:0!important;
  }
  html[data-gtt-design-mode="workbench"] body[data-theme][data-current-view="market"]
    #content .gtmarket .gm-new-collection-text{
    min-width:0!important;max-width:100%!important;
    overflow-wrap:anywhere!important;
  }
  html[data-gtt-design-mode="workbench"] body[data-theme][data-current-view="market"]
    #content .gtmarket .gm-new-collection-text :is(b,small){
    min-width:0!important;max-width:100%!important;
    overflow-wrap:anywhere!important;white-space:normal!important;
  }

  /* Desktop filter/control chips are often 32–38px high. On touch devices
     the high-frequency Challenge, Market and Arcade top actions need at least
     a 44px touch target, without changing the games' actual board controls. */
  html[data-gtt-design-mode="workbench"] body[data-theme][data-current-view="challenges"]
    #content .v5-toolbar :is(button,input[type="search"],select),
  html[data-gtt-design-mode="workbench"] body[data-theme][data-current-view="market"]
    #content :is(.gm-toolbar,.gm-filter-line) :is(button,select,input[type="search"]),
  html[data-gtt-design-mode="workbench"] body[data-theme][data-current-view="arcade"]
    #content .arc-game-top>button{
    min-height:44px!important;
    box-sizing:border-box!important;
    touch-action:manipulation;
  }
  html[data-gtt-design-mode="workbench"] body[data-theme][data-current-view="challenges"]
    #content .v5-toolbar button:focus-visible,
  html[data-gtt-design-mode="workbench"] body[data-theme][data-current-view="market"]
    #content :is(.gm-toolbar,.gm-filter-line) button:focus-visible,
  html[data-gtt-design-mode="workbench"] body[data-theme][data-current-view="arcade"]
    #content .arc-game-top>button:focus-visible{
    outline:2px solid #8adeff!important;outline-offset:2px!important;
  }

  /* Dialogs must win over the thumb bar, and retain accessible close buttons.
     Inline Market detail cards explicitly retain their natural layout. */
  html[data-gtt-design-mode="workbench"] body[data-theme] #content
    :is(.gp-overlay,.gm-drawer-mask){
    top:var(--gtt-mobile-top)!important;bottom:0!important;
    z-index:410!important;
  }
  html[data-gtt-design-mode="workbench"] body[data-theme] #content .gm-inspector:not(.gm-inline-detail){
    top:var(--gtt-mobile-top)!important;bottom:0!important;
    max-height:calc(100dvh - var(--gtt-mobile-top))!important;
    height:calc(100dvh - var(--gtt-mobile-top))!important;
    z-index:420!important;overflow-y:auto!important;
  }
  html[data-gtt-design-mode="workbench"] body[data-theme] #content
    .gm-inspector.gm-inline-detail{
    top:auto!important;bottom:auto!important;inset:auto!important;
    height:auto!important;max-height:none!important;
    z-index:auto!important;
  }
  html[data-gtt-design-mode="workbench"] body[data-theme]
    :is(.arc-share-overlay,.v84-overlay){
    top:var(--gtt-mobile-top)!important;bottom:0!important;
    z-index:420!important;
  }
  html[data-gtt-design-mode="workbench"] body[data-theme]
    :is(#modal-root .modal-backdrop,.dialog-backdrop){
    top:var(--gtt-mobile-top)!important;bottom:0!important;
    z-index:420!important;
  }
  html[data-gtt-design-mode="workbench"] body[data-theme]
    :is(.v178-settings-menu,#gtt-shell-access-panel) {
    max-height:calc(100dvh - var(--gtt-mobile-top) - 12px)!important;
    max-width:calc(100vw - 16px)!important;
  }
  html[data-gtt-design-mode="workbench"] body[data-theme] .v178-settings-menu {
    z-index:430!important;
  }
  /* Fullscreen editors have their own item/tool search. The site-wide archive
     Search icon creates a fifth competing header action on narrow phones,
     squeezing the current editor title to a few letters beside the account.
     Keep Settings, player account and Browse accessible, but reclaim this space. */
  html[data-gtt-design-mode="workbench"] body[data-theme]:is(
    [data-current-view="planner-v2"],
    [data-current-view="planner-v4"],
    [data-current-view="world-planner-v2"]
  ) #wb2-shell .wb2-action-search {display:none!important}

  /* The embedded editors own their own controls. Don't hide canvas space behind
     a second tab bar; provide a Browse button in their slim top header. */
  html[data-gtt-design-mode="workbench"] body[data-theme]:is(
    [data-current-view="planner-v2"],
    [data-current-view="planner-v4"],
    [data-current-view="world-planner-v2"]
  ) #wb2-shell .gtt-mobile-header-browse {display:inline-flex!important}
  html[data-gtt-design-mode="workbench"] body[data-theme]:is(
    [data-current-view="planner-v2"],
    [data-current-view="planner-v4"],
    [data-current-view="world-planner-v2"]
  ) .main-area>#content.content {
    width:100%!important;max-width:100%!important;min-width:0!important;
    height:100dvh!important;max-height:100dvh!important;
    box-sizing:border-box!important;margin:0!important;
    padding:var(--gtt-mobile-top) 0 0!important;
    min-height:0!important;overflow:hidden!important;
  }

  /* Primary mobile navigation: visible, labeled, bottom-safe, 5 equal targets. */
  html[data-gtt-design-mode="workbench"] #gtt-mobile-navigation {display:block}
  html[data-gtt-design-mode="workbench"] #gtt-mobile-navigation .gtt-mobile-tabs{
    position:fixed;bottom:0;left:0;right:0;z-index:320;
    display:grid;grid-template-columns:repeat(5,minmax(0,1fr));
    align-items:start;box-sizing:border-box;
    height:var(--gtt-mobile-bottom);
    padding:4px max(4px,env(safe-area-inset-right,0px))
      env(safe-area-inset-bottom,0px) max(4px,env(safe-area-inset-left,0px));
    border-top:1px solid rgba(176,220,255,.35);
    background:linear-gradient(155deg,rgba(28,61,104,.97),rgba(6,23,48,.98));
    box-shadow:0 -12px 30px rgba(3,11,29,.4),inset 0 1px rgba(255,255,255,.13);
    backdrop-filter:blur(22px) saturate(160%);
    -webkit-backdrop-filter:blur(22px) saturate(160%);
  }
  html[data-gtt-design-mode="workbench"] #gtt-mobile-navigation .gtt-mobile-tab{
    appearance:none;display:flex;flex-direction:column;align-items:center;justify-content:center;
    min-width:0;height:55px;min-height:55px;padding:3px 2px;
    border:0;border-radius:10px;background:transparent;color:#adc9e1;
    font:650 10px/1.15 Inter,system-ui,sans-serif;letter-spacing:0;
    cursor:pointer;touch-action:manipulation;
  }
  html[data-gtt-design-mode="workbench"] #gtt-mobile-navigation .gtt-mobile-tab[hidden]{display:none!important}
  /* Public route permissions load asynchronously. Preserve the five-slot
     layout while waiting, instead of shifting the center Home position. */
  html[data-gtt-design-mode="workbench"] #gtt-mobile-navigation .gtt-mobile-tab:disabled{
    opacity:.58;cursor:default;
  }
  html[data-gtt-design-mode="workbench"] #gtt-mobile-navigation .gtt-mobile-tab.is-current{
    color:#f4fbff;background:rgba(107,177,243,.18);
  }
  /* Home lives in the middle (slot three). A restrained raised treatment
     signals the home anchor without hiding or moving the other four tabs. */
  html[data-gtt-design-mode="workbench"] #gtt-mobile-navigation .gtt-mobile-tab[data-gtt-mobile-group="home"].is-current{
    position:relative;z-index:1;
    height:59px;min-height:59px;
    transform:translateY(-5px);
    border:1px solid rgba(179,223,255,.36);
    border-radius:15px;
    color:#ecfaff;
    font-weight:830;
    background:linear-gradient(154deg,rgba(90,161,225,.27),rgba(34,80,140,.38));
    box-shadow:inset 0 1px rgba(255,255,255,.14),0 5px 14px rgba(2,10,24,.19);
  }
  html[data-gtt-design-mode="workbench"] #gtt-mobile-navigation .gtt-mobile-tab[data-gtt-mobile-group="home"].is-current{
    background:linear-gradient(155deg,rgba(122,194,247,.37),rgba(40,102,167,.51));
    border-color:rgba(177,234,255,.70);
    box-shadow:inset 0 1px rgba(255,255,255,.26),0 7px 21px rgba(3,21,45,.28);
  }
  html[data-gtt-design-mode="workbench"] #gtt-mobile-navigation .gtt-mobile-tab[data-gtt-mobile-group="home"].is-current .gtt-mobile-tab-icon{
    width:32px;height:30px;flex-basis:30px;margin-bottom:0;
  }
  html[data-gtt-design-mode="workbench"] #gtt-mobile-navigation .gtt-mobile-tab[data-gtt-mobile-group="home"].is-current .gtt-mobile-tab-icon img{
    width:29px;height:29px;max-width:29px;max-height:29px;
  }
  html[data-gtt-design-mode="workbench"] #gtt-mobile-navigation .gtt-mobile-tab-icon{
    display:grid;place-items:center;flex:0 0 27px;min-width:0;
    width:29px;height:27px;margin:0 0 2px;
    color:#9cdcff;font-size:23px;line-height:1;
  }
  html[data-gtt-design-mode="workbench"] #gtt-mobile-navigation .gtt-mobile-tab-icon img{
    display:block;width:27px;height:27px;max-width:100%;max-height:100%;
    object-fit:contain;image-rendering:pixelated;
  }
  html[data-gtt-design-mode="workbench"] #gtt-mobile-navigation .gtt-mobile-tab-label{
    display:block;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;
  }
  /* Leave text fields unobstructed by a fixed thumb bar when the virtual
     keyboard opens. Only applies to focused editors inside real page content,
     not global search dialogs or the More navigation drawer. */
  html[data-gtt-design-mode="workbench"] body.gtt-mobile-typing #gtt-mobile-navigation .gtt-mobile-tabs{
    display:none!important;
  }

  html[data-gtt-design-mode="workbench"] body[data-theme]:is(
    [data-current-view="planner-v2"],
    [data-current-view="planner-v4"],
    [data-current-view="world-planner-v2"]
  ) #gtt-mobile-navigation .gtt-mobile-tabs {display:none!important}

  /* The drawer is a genuinely mobile navigation surface, not a desktop
     dropdown forcibly resized to 320px. */
  html[data-gtt-design-mode="workbench"] #gtt-mobile-navigation .gtt-mobile-shade{
    position:fixed;inset:0;z-index:890;background:rgba(2,10,25,.75);
    backdrop-filter:blur(4px);-webkit-backdrop-filter:blur(4px);
  }
  html[data-gtt-design-mode="workbench"] #gtt-mobile-navigation .gtt-mobile-sheet{
    position:fixed;z-index:900;
    inset:max(8px,env(safe-area-inset-top,0px)) max(8px,env(safe-area-inset-right,0px))
      max(8px,env(safe-area-inset-bottom,0px)) max(8px,env(safe-area-inset-left,0px));
    display:flex;flex-direction:column;box-sizing:border-box;
    width:auto;max-width:600px;height:auto;min-height:0;margin:0 auto;
    padding:0;border:1px solid rgba(184,228,255,.46);border-radius:20px;
    color:#f1f9ff;background:linear-gradient(155deg,rgba(34,72,117,.99),rgba(6,22,47,.995));
    box-shadow:0 26px 80px rgba(0,3,15,.74);
    overflow:hidden;
  }
  html[data-gtt-design-mode="workbench"] #gtt-mobile-navigation [hidden]{display:none!important}
  html[data-gtt-design-mode="workbench"] #gtt-mobile-navigation .gtt-mobile-sheet-heading{
    display:flex;align-items:center;justify-content:space-between;
    gap:10px;padding:18px 16px 10px;flex:0 0 auto;
  }
  html[data-gtt-design-mode="workbench"] #gtt-mobile-navigation .gtt-mobile-sheet-titles{
    min-width:0;flex:1 1 auto;
  }
  html[data-gtt-design-mode="workbench"] #gtt-mobile-navigation .gtt-mobile-sheet h2{
    margin:0;color:#effaff;font:800 20px/1.25 Inter,system-ui,sans-serif;
  }
  html[data-gtt-design-mode="workbench"] #gtt-mobile-navigation .gtt-mobile-sheet p{
    margin:3px 0 0;font-size:12px;color:#b0cee6;
  }
  html[data-gtt-design-mode="workbench"] #gtt-mobile-navigation .gtt-mobile-sheet-close{
    flex:0 0 44px;width:44px;height:44px;min-height:44px;padding:0;
    border:1px solid rgba(174,218,255,.32);border-radius:12px;
    background:rgba(111,172,234,.17);color:#f1faff;font-size:19px;cursor:pointer;
  }
  html[data-gtt-design-mode="workbench"] #gtt-mobile-navigation .gtt-mobile-menu-search{
    padding:0 16px 12px;flex:0 0 auto;
  }
  html[data-gtt-design-mode="workbench"] #gtt-mobile-navigation .gtt-mobile-menu-input{
    display:block;width:100%;height:46px;min-height:46px;padding:0 14px;
    box-sizing:border-box;border-radius:12px;
    border:1px solid rgba(178,221,255,.38);
    background:rgba(4,22,46,.64);color:#edf8ff;font:500 16px Inter,system-ui,sans-serif;
  }
  html[data-gtt-design-mode="workbench"] #gtt-mobile-navigation .gtt-mobile-menu-input::placeholder{color:#a4c1dc}
  /* Swipeable SECONDARY category shortcuts. Keep primary five tabs stationary
     (Apple/Material pattern) so Home never disappears when swiping. */
  html[data-gtt-design-mode="workbench"] #gtt-mobile-navigation .gtt-mobile-jump-head{
    display:flex;align-items:center;justify-content:space-between;flex:0 0 auto;
    gap:10px;padding:0 16px 5px;
    color:#d9efff;font:750 11px/1.3 Inter,system-ui,sans-serif;
  }
  html[data-gtt-design-mode="workbench"] #gtt-mobile-navigation .gtt-mobile-jump-hint{
    color:#97b9d7;font-weight:550;font-size:10px;white-space:nowrap;
  }
  html[data-gtt-design-mode="workbench"] #gtt-mobile-navigation .gtt-mobile-jumps{
    display:flex;align-items:center;gap:7px;
    width:100%;max-width:100%;min-width:0;min-height:43px;
    overflow-x:auto;overflow-y:hidden;box-sizing:border-box;
    padding:1px 16px 10px;flex:0 0 auto;
    overscroll-behavior-x:contain;-webkit-overflow-scrolling:touch;
    scrollbar-width:none;scroll-snap-type:x proximity;touch-action:pan-x;
  }
  html[data-gtt-design-mode="workbench"] #gtt-mobile-navigation .gtt-mobile-jumps::-webkit-scrollbar{
    display:none;
  }
  html[data-gtt-design-mode="workbench"] #gtt-mobile-navigation .gtt-mobile-jump{
    display:inline-flex;align-items:center;gap:6px;flex:0 0 auto;
    min-height:36px;padding:5px 10px;box-sizing:border-box;
    border:1px solid rgba(166,209,250,.28);border-radius:12px;
    color:#d8edff;background:rgba(97,159,230,.13);
    font:680 12px/1.2 Inter,system-ui,sans-serif;
    white-space:nowrap;cursor:pointer;scroll-snap-align:start;
  }
  html[data-gtt-design-mode="workbench"] #gtt-mobile-navigation .gtt-mobile-jump.is-selected{
    border-color:rgba(155,224,255,.62);
    background:rgba(107,182,244,.26);color:#f3fbff;
  }
  html[data-gtt-design-mode="workbench"] #gtt-mobile-navigation .gtt-mobile-jump .gtt-mobile-tab-icon{
    flex:0 0 21px;display:grid;place-items:center;
    width:21px;height:23px;margin:0;font-size:18px;line-height:1;
  }
  html[data-gtt-design-mode="workbench"] #gtt-mobile-navigation .gtt-mobile-jump .gtt-mobile-tab-icon img{
    display:block;width:21px;height:21px;max-width:21px;max-height:21px;
    object-fit:contain;image-rendering:pixelated;
  }
  html[data-gtt-design-mode="workbench"] #gtt-mobile-navigation .gtt-mobile-sheet-list{
    flex:1 1 auto;min-height:0;overflow-y:auto;overscroll-behavior:contain;
    padding:0 12px 20px;-webkit-overflow-scrolling:touch;
  }
  html[data-gtt-design-mode="workbench"] #gtt-mobile-navigation .gtt-mobile-category{
    border:1px solid rgba(169,210,251,.19);border-radius:13px;
    background:rgba(93,150,215,.08);margin-bottom:8px;overflow:clip;
  }
  html[data-gtt-design-mode="workbench"] #gtt-mobile-navigation .gtt-mobile-category-head{
    display:flex;align-items:center;gap:10px;min-height:50px;
    box-sizing:border-box;padding:7px 12px;cursor:pointer;
    color:#edf8ff;font:750 14px Inter,system-ui,sans-serif;list-style:none;
  }
  html[data-gtt-design-mode="workbench"] #gtt-mobile-navigation summary::-webkit-details-marker{display:none}
  html[data-gtt-design-mode="workbench"] #gtt-mobile-navigation .gtt-mobile-category-name{
    min-width:0;flex:1 1 auto;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;
  }
  html[data-gtt-design-mode="workbench"] #gtt-mobile-navigation .gtt-mobile-category-count{
    font-size:11px;color:#a8c7e5;border-radius:12px;padding:3px 7px;
    background:rgba(89,144,204,.18);
  }
  html[data-gtt-design-mode="workbench"] #gtt-mobile-navigation details > summary.gtt-mobile-category-head::after{
    content:'⌄';font-size:18px;color:#a4cce9;margin-left:2px;transform:rotate(0deg);
  }
  html[data-gtt-design-mode="workbench"] #gtt-mobile-navigation details[open] > summary.gtt-mobile-category-head::after{
    transform:rotate(180deg);
  }
  html[data-gtt-design-mode="workbench"] #gtt-mobile-navigation .gtt-mobile-category-head .gtt-mobile-tab-icon{
    margin:0;flex:0 0 29px;
  }
  html[data-gtt-design-mode="workbench"] #gtt-mobile-navigation .gtt-mobile-category-links{
    display:grid;gap:4px;padding:2px 7px 9px;
  }
  html[data-gtt-design-mode="workbench"] #gtt-mobile-navigation .gtt-mobile-page-link{
    display:flex;align-items:center;gap:11px;text-align:left;
    width:100%;min-height:47px;padding:7px 10px;
    border:1px solid transparent;border-radius:10px;
    background:rgba(84,147,215,.09);color:#e7f4ff;
    font:630 13px/1.35 Inter,system-ui,sans-serif;cursor:pointer;
    touch-action:manipulation;
  }
  html[data-gtt-design-mode="workbench"] #gtt-mobile-navigation .gtt-mobile-page-link:active{
    background:rgba(99,176,240,.28);
  }
  html[data-gtt-design-mode="workbench"] #gtt-mobile-navigation .gtt-mobile-page-icon{
    display:grid;place-items:center;flex:0 0 29px;width:29px;height:29px;
    object-fit:contain;image-rendering:pixelated;color:#9bd5fa;
  }
  html[data-gtt-design-mode="workbench"] #gtt-mobile-navigation .gtt-mobile-page-name{
    min-width:0;overflow-wrap:anywhere;
  }
  html[data-gtt-design-mode="workbench"] #gtt-mobile-navigation .gtt-mobile-no-results{
    padding:20px;text-align:center;color:#bfd8ea;
  }
  /* Lock only background document scrolling. touch-action:none on body
     also disables scrolling INSIDE the drawer on iOS. */
  html[data-gtt-design-mode="workbench"] body.gtt-mobile-menu-open{
    overflow:hidden!important;
  }
  html[data-gtt-design-mode="workbench"] #gtt-mobile-navigation .gtt-mobile-sheet-list{
    touch-action:pan-y;
  }
}
@media (max-width:380px) {
  html[data-gtt-design-mode="workbench"] #gtt-mobile-navigation .gtt-mobile-tab[data-gtt-mobile-group="home"].is-current{
    transform:translateY(-3px);padding-inline:1px;
  }
  html[data-gtt-design-mode="workbench"] #gtt-mobile-navigation .gtt-mobile-jump-head{
    padding-inline:12px;
  }
  html[data-gtt-design-mode="workbench"] #gtt-mobile-navigation .gtt-mobile-jumps{
    padding-inline:12px;
  }
  html[data-gtt-design-mode="workbench"] #wb2-shell .gtt-mobile-page-title{font-size:12px!important}
  html[data-gtt-design-mode="workbench"] body[data-theme] #wb2-shell .wb2-brand{
    flex-basis:33px!important;width:33px!important;min-width:33px!important;
  }
  html[data-gtt-design-mode="workbench"] body[data-theme] #wb2-shell .wb2-brand-img{
    width:31px!important;height:31px!important;min-width:31px!important;
  }
  html[data-gtt-design-mode="workbench"] body[data-theme] #wb2-shell .wb2-actions{
    gap:3px!important;
  }
}
@media (max-width:860px) and (orientation:landscape) and (max-height:600px),
       (pointer:coarse) and (orientation:landscape) and (max-height:600px) and (max-width:1100px){
  html[data-gtt-design-mode="workbench"]{
    --gtt-nav-height:calc(48px + env(safe-area-inset-top,0px));
    --gtt-mobile-top:var(--gtt-nav-height);
    --gtt-mobile-bottom:0px;
  }
  html[data-gtt-design-mode="workbench"] #gtt-mobile-navigation .gtt-mobile-tabs{
    display:none!important;
  }
  html[data-gtt-design-mode="workbench"] #wb2-shell .gtt-mobile-header-browse{
    display:inline-flex!important;
  }
  html[data-gtt-design-mode="workbench"] body[data-theme]:not([data-current-view="planner-v2"]):not([data-current-view="planner-v4"]):not([data-current-view="world-planner-v2"]) .main-area>#content.content {
    padding-bottom:18px!important;
  }
}
@media (max-width:860px) and (max-height:570px){
  html[data-gtt-design-mode="workbench"] #gtt-mobile-navigation .gtt-mobile-sheet-heading{padding-top:10px}
  html[data-gtt-design-mode="workbench"] #gtt-mobile-navigation .gtt-mobile-sheet h2{font-size:17px}
  html[data-gtt-design-mode="workbench"] #gtt-mobile-navigation .gtt-mobile-menu-search{padding-bottom:7px}
  html[data-gtt-design-mode="workbench"] #gtt-mobile-navigation .gtt-mobile-jump-head{padding-bottom:3px}
  html[data-gtt-design-mode="workbench"] #gtt-mobile-navigation .gtt-mobile-jumps{padding-bottom:5px}
}
@media(prefers-reduced-motion:reduce){
  html[data-gtt-design-mode="workbench"] #gtt-mobile-navigation *{
    scroll-behavior:auto!important;transition:none!important;animation:none!important;
  }
}
