.taxatie-more-toggle { display: none; }

@media (max-width: 700px) {
  html { scroll-padding-bottom: calc(80px + env(safe-area-inset-bottom)); }
  body { background: #f5f3ef; }
  .layout {
    display: block;
    width: 100%;
    min-height: 100dvh;
    margin: 0;
    border: 0;
    border-radius: 0;
  }
  .workspace {
    min-width: 0;
    min-height: 100dvh;
    padding: env(safe-area-inset-top) max(14px, env(safe-area-inset-right))
      calc(84px + env(safe-area-inset-bottom)) max(14px, env(safe-area-inset-left));
    background: #f5f3ef;
  }
  .layout > .sidebar {
    position: fixed;
    inset: auto 0 0;
    z-index: 20;
    display: block;
    width: 100%;
    height: auto;
    min-height: 0;
    margin: 0;
    padding: 6px max(10px, env(safe-area-inset-right))
      calc(6px + env(safe-area-inset-bottom)) max(10px, env(safe-area-inset-left));
    border: 0;
    border-top: 1px solid #dedbd7;
    border-radius: 0;
    background: #fff;
    box-shadow: 0 -4px 20px #2723210d;
  }
  .layout > .sidebar > :not(.side-nav) { display: none; }
  .side-nav {
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    align-items: stretch;
    width: 100%;
    margin: 0;
    gap: 3px;
  }
  .side-nav .nav-btn {
    display: flex;
    flex: 1 1 0;
    width: auto;
    min-width: 0;
    min-height: 48px;
    padding: 4px;
    gap: 4px;
  }
  .side-nav .nav-btn.taxatie-secondary-nav { display: none; }
  .side-nav .nav-btn small, .taxatie-more-toggle { font-size: 11px; font-weight: 650; }
  .side-nav .nav-btn[data-page="dashboard"] { order: 0; }
  .side-nav .nav-btn[data-page="appraisal"] { order: 1; }
  .side-nav .nav-btn[data-page="inventory"] { order: 2; }
  .side-nav .nav-btn[data-page="market"] { order: 3; }
  .taxatie-more-toggle { order: 4; }
  .taxatie-more-toggle::after { content: '•••'; order: -1; font-size: 13px; line-height: 17px; }
  .topbar { min-height: 62px; padding-inline: 0; }
  .topbar .notification, .topbar .account-avatar { min-width: 44px; min-height: 44px; }
  .page-heading { padding-inline: 0; flex-wrap: wrap; }
  .workspace .card, .workspace .panel { min-width: 0; }
  .workspace .card-heading { flex-wrap: wrap; }
  .workspace .btn, .login-card .btn { min-height: 44px; }
  input:not([type="checkbox"], [type="radio"], [type="range"], [type="file"]),
  select, textarea { font-size: 16px; }
  .tax-search form { flex-wrap: wrap; }
  .tax-search form > * { min-width: 0; }
  .tax-appraisal, .tax-tabs, .market-tabs { scroll-margin-top: 12px; }
  .bottom-note { flex-wrap: wrap; gap: 8px; }
  #toast { bottom: calc(76px + env(safe-area-inset-bottom)); }

  .taxatie-mobile-menu {
    position: fixed;
    inset: auto 0 0;
    width: 100%;
    max-width: none;
    max-height: 80dvh;
    margin: 0;
    padding: 18px max(16px, env(safe-area-inset-right))
      calc(18px + env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
    overflow-y: auto;
    border: 0;
    border-radius: 22px 22px 0 0;
    background: #faf9f6;
    color: #242322;
  }
  .taxatie-mobile-menu header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
  .taxatie-mobile-menu h2 { margin: 0; font-size: 23px; }
  .taxatie-menu-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .taxatie-mobile-menu .btn { min-height: 48px; justify-content: center; font-size: 14px; }
  .taxatie-mobile-menu .btn[aria-current="page"] { border-color: #292624; }
  .taxatie-install { width: 100%; margin-top: 14px; }
  .taxatie-mobile-menu [hidden] { display: none; }
}
