.site-home-link {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  border: 1px solid currentColor;
  border-radius: 6px;
  color: #23634d;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.site-home-link:hover { background: #eaf1eb; }
.admin-home {
  display: inline-flex;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  margin-right: 10px;
  vertical-align: middle;
}
.admin-home img { display: block; border-radius: 8px; }
.site-home-link:focus-visible,
.admin-home:focus-visible,
.site-back-to-top:focus-visible {
  outline: 3px solid #8bc1aa;
  outline-offset: 4px;
}

.site-back-to-top {
  position: fixed;
  z-index: 1000;
  right: max(20px, env(safe-area-inset-right));
  bottom: max(20px, env(safe-area-inset-bottom));
  display: grid;
  width: 50px;
  height: 50px;
  place-items: center;
  border: 1px solid #ffffff50;
  border-radius: 50%;
  background: #123a35;
  box-shadow: 0 8px 24px #102b2633;
  color: #fff;
  cursor: pointer;
  font: 700 28px/1 system-ui, sans-serif;
  transition: transform .18s ease, background-color .18s ease;
}

.site-back-to-top:hover { background: #087e68; transform: translateY(-2px); }
.site-back-to-top[hidden] { display: none !important; }
body.has-bottom-nav .site-back-to-top {
  right: max(18px, env(safe-area-inset-right));
  bottom: calc(82px + env(safe-area-inset-bottom));
}

@media (prefers-reduced-motion: reduce) {
  .site-back-to-top { transition: none; }
}
