/* v170 — utility header + scalable navigation; mobile keeps its five-item dock. */
#shop-navigation, #nav-toggle, #nav-backdrop { display: none; }
@media (min-width: 737px) {
  #app { position: relative; --nav-width: 224px; --nav-top: 72px; }
  .topbar { height: var(--nav-top); min-height: var(--nav-top); padding: 0 24px; gap: 20px; position: relative; z-index: 220; }
  .topbar-left { gap: 20px; min-width: 0; }
  .topbar-right { gap: 14px; min-width: 0; }
  .app-logo { font-size: 16px; }
  .app-logo span { font-size: 13px; font-weight: 400; opacity: .8; }
  #user-display { max-width: 140px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  #online-avatars { max-width: 108px; overflow: hidden; }
  #sync-badge { max-width: 160px; overflow: hidden; text-overflow: ellipsis; font-size: 11px !important; }
  .user-dropdown { top: 68px; max-width: calc(100vw - 32px); }
  #nav-toggle { display: flex; align-items: center; justify-content: center; gap: 8px; flex-shrink: 0; min-height: 42px; padding: 8px 12px; color: var(--ci-header-text); background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.25); border-radius: 12px; font: inherit; font-size: 13px; cursor: pointer; }
  #nav-toggle:hover { background: rgba(255,255,255,.17); }
  #nav-toggle svg { width: 20px; height: 20px; }
  #shop-navigation { position: absolute; top: var(--nav-top); bottom: 0; left: 0; width: var(--nav-width); box-sizing: border-box; background: var(--ci-cream); border-right: 1px solid var(--ci-border); padding: 24px 14px 16px; z-index: 215; flex-direction: column; gap: 18px; overflow-y: auto; scrollbar-width: thin; }
  .nav-open #shop-navigation { display: flex; }
  .nav-heading { padding: 0 10px; display: flex; justify-content: space-between; align-items: center; color: var(--ci-dark); font-size: 15px; font-weight: 700; }
  .nav-heading small { font-size: 10px; color: var(--ci-gold); }
  .nav-search { display: block; }
  .nav-search > span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  #nav-search { box-sizing: border-box; width: 100%; min-height: 40px; padding: 9px 12px; border: 1px solid var(--ci-border); border-radius: 10px; background: color-mix(in srgb, var(--ci-cream) 50%, var(--ci-surface)); color: var(--ci-dark); font: inherit; font-size: 12px; }
  #shop-navigation nav { flex: 1 0 auto; }
  #shop-navigation .topbar-tabs { display: flex !important; flex-direction: column; align-items: stretch; overflow: visible; gap: 5px; }
  #shop-navigation .tab { flex: 0 0 auto; box-sizing: border-box; min-height: 46px; height: auto; padding: 11px 12px; margin: 0; gap: 12px; white-space: normal; overflow-wrap: anywhere; line-height: 1.45; font-size: 13px; border: 1px solid transparent !important; border-radius: 11px !important; color: var(--ci-dark) !important; background: transparent !important; }
  #shop-navigation .tab:hover { background: var(--ci-gold-pale) !important; border-color: var(--ci-border) !important; }
  #shop-navigation .tab[aria-current="page"] { background: var(--ci-header) !important; color: var(--ci-header-text) !important; border-color: var(--ci-header) !important; font-weight: 700; box-shadow: 0 3px 8px #00000012; }
  #shop-navigation .tab[data-nav-filtered] { display: none !important; }
  .nav-symbol { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; flex-shrink: 0; color: inherit; }
  .nav-symbol svg { display: block; width: 22px; height: 22px; }
  #nav-empty { margin: 0; padding: 0 10px; font-size: 12px; color: var(--ci-dark); }
  .nav-tools { border-top: 1px solid var(--ci-border); padding-top: 16px; }
  .nav-tools[hidden] { display: none; }
  .nav-tools > small { display: block; padding: 0 10px 8px; color: var(--ci-dark); opacity: .6; font-size: 10px; }
  #shop-navigation .nav-tools button { width: 100%; min-height: 40px; justify-content: flex-start; gap: 10px; padding: 9px 12px !important; margin-top: 4px; border: 1px solid var(--ci-border) !important; border-radius: 10px !important; color: var(--ci-dark) !important; background: transparent !important; font-size: 12px !important; }
  #shop-navigation .nav-tools button:hover { background: var(--ci-gold-pale) !important; }
}
@media (min-width: 1100px) {
  #app.nav-open > .view, #app.nav-open > #close-reminder-banner { margin-left: var(--nav-width); }
}
@media (min-width: 737px) and (max-width: 1099px) {
  #app { --nav-width: 260px; }
  .topbar { padding: 0 16px; gap: 12px; }
  .topbar-left { gap: 12px; }
  .app-logo span, .topbar-right .role-badge, #online-avatars { display: none !important; }
  #user-display { max-width: 100px; }
  #shop-navigation { box-shadow: 12px 0 30px #00000020; }
  .nav-open #nav-backdrop { display: block; position: absolute; inset: var(--nav-top) 0 0; background: #15100c66; border: 0; z-index: 214; cursor: pointer; }
}
@media print {
  #shop-navigation, #nav-toggle, #nav-backdrop { display: none !important; }
  #app.nav-open > .view, #app.nav-open > #close-reminder-banner { margin-left: 0 !important; }
}
