/* Compact account/time row and persistent learning tabs on narrow screens. */
@media(max-width:899px){
  html.n1-mobile-navigation{--n1-bottom-navigation:calc(64px + env(safe-area-inset-bottom))}
  html.n1-mobile-navigation body{padding-bottom:var(--n1-bottom-navigation)}
  html.n1-mobile-navigation .n1-bubble-nav{inset:calc(12px + env(safe-area-inset-top)) calc(14px + env(safe-area-inset-right)) auto calc(14px + env(safe-area-inset-left));gap:0}
  html.n1-mobile-navigation .n1-bubble-nav .n1-bubble-brand{display:grid;grid-template-columns:minmax(0,1fr) 128px;grid-template-rows:44px 44px;gap:8px 10px;width:100%;max-width:none;align-items:center;pointer-events:none}
  html.n1-mobile-navigation .n1-bubble-brand #n1UserButton,html.n1-mobile-navigation .n1-bubble-brand .n1-theme-switch{pointer-events:auto}
  html.n1-mobile-navigation .n1-bubble-brand #n1UserButton{grid-row:1;grid-column:1;width:fit-content;min-width:0;max-width:100%;min-height:44px;height:44px;padding:0 12px;font-size:12px;overflow:hidden}
  html.n1-mobile-navigation .n1-bubble-brand #n1UserButton>span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  html.n1-mobile-navigation .n1-bubble-brand .n1-theme-switch{grid-row:2;grid-column:1/-1;justify-self:start;max-width:100%;padding:3px;box-sizing:border-box}
  html.n1-mobile-navigation .n1-bubble-brand .n1-theme-switch button{min-width:44px;min-height:44px;padding:0 10px}
  html.n1-mobile-navigation #floatingTimer.timer-widget.timer-floating-dock{inset:calc(12px + env(safe-area-inset-top)) calc(14px + env(safe-area-inset-right)) auto auto;width:128px!important;height:44px!important;min-width:0;min-height:0;border-radius:14px;container-type:normal;cursor:pointer;touch-action:manipulation}
  html.n1-mobile-navigation #floatingTimer .timer-body{display:grid;grid-template-rows:minmax(0,1fr) 2px;align-content:center;gap:3px;height:100%;padding:7px 9px 5px;border:0}
  html.n1-mobile-navigation #floatingTimer .timer-nav-meta{display:none}
  html.n1-mobile-navigation #floatingTimer .timer-display{align-self:center;font-size:16px;line-height:1.1;text-align:center;letter-spacing:0;font-variant-numeric:tabular-nums;white-space:nowrap}
  html.n1-mobile-navigation #floatingTimer .timer-progress{display:block;height:2px;margin:0}
  html.n1-mobile-navigation #floatingTimer .timer-progress span{background:var(--accent)}
  html.n1-mobile-navigation #timerMenu{z-index:9900;max-width:calc(100vw - 16px);max-height:calc(var(--n1-visual-height,100dvh) - 112px - var(--n1-bottom-navigation))!important;overflow-y:auto;overscroll-behavior:contain}
  html.n1-mobile-navigation .n1-bubble-overlay.is-bottom-bar{inset:auto 0 var(--n1-viewport-bottom,0px);display:block;width:100%;height:var(--n1-bottom-navigation);padding:4px max(6px,env(safe-area-inset-right)) calc(4px + env(safe-area-inset-bottom)) max(6px,env(safe-area-inset-left));overflow:visible;box-sizing:border-box;border:0;border-top:1px solid var(--line);border-radius:0;background:var(--surface);box-shadow:0 -4px 18px #0000000a;opacity:1;visibility:visible;transition:none}
  html.n1-mobile-navigation .is-bottom-bar .n1-bubble-panel{display:block;width:100%;height:100%;margin:0;padding:0;border:0;border-radius:0;background:transparent;box-shadow:none}
  html.n1-mobile-navigation .is-bottom-bar .n1-bubble-heading{display:none}
  html.n1-mobile-navigation .is-bottom-bar .n1-bubble-list{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:2px;height:100%}
  html.n1-mobile-navigation .is-bottom-bar .n1-bubble-pill{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;width:100%;height:56px;min-height:56px;padding:4px 1px;border:0;border-radius:10px;background:transparent;box-shadow:none;font-size:10px;text-align:center;transform:none;animation:none}
  html.n1-mobile-navigation .is-bottom-bar .n1-bubble-pill:is(:hover,:focus-visible,[aria-current=page]){background:var(--accent-soft);color:var(--accent-dark);box-shadow:none;transform:none}
  html.n1-mobile-navigation .is-bottom-bar .n1-bubble-icon{width:22px;height:22px;background:transparent;box-shadow:none;transform:none}
  html.n1-mobile-navigation .is-bottom-bar .n1-bubble-icon::before,html.n1-mobile-navigation .is-bottom-bar .n1-bubble-icon::after{display:none}
  html.n1-mobile-navigation .is-bottom-bar .n1-bubble-icon svg{width:22px;height:22px}
  html.n1-mobile-navigation .is-bottom-bar .n1-bubble-content{display:block;max-width:100%;font-size:10px;line-height:1.3;opacity:1;transform:none;transition:none;white-space:nowrap}
  html.n1-mobile-navigation .react-shell main{padding-top:calc(132px + env(safe-area-inset-top));padding-bottom:24px;padding-inline:16px}
  html.n1-mobile-navigation .react-shell .topbar{margin-inline:-16px;padding-inline:22px}
  html.n1-mobile-navigation .n1-back-to-top{bottom:calc(var(--n1-bottom-navigation) + var(--n1-viewport-bottom,0px) + 18px)}
  html.n1-mobile-navigation .toast{bottom:calc(var(--n1-bottom-navigation) + var(--n1-viewport-bottom,0px) + 12px)}
}
