/* PWA / telefonas: apatinė skirtukų juosta vietoj šoninio meniu, saugios zonos, „standalone" režimas */
.tabbar { display: none; }
.brand-link { text-decoration: none; color: inherit; }
.side a.brand-link:hover { background: transparent; }
@media (max-width: 860px) {
  .side .nav-link { display: none; }
  .side { padding: 6px 12px; align-items: center; }
  .side .brand { flex-basis: auto; flex: 1; padding: 4px 0; }
  .side .brand h1 { font-size: 16px; }
  .side-foot { flex-basis: auto; padding: 0; gap: 2px 10px; }
  .tabbar { position: fixed; bottom: 0; left: 0; right: 0; z-index: 30; display: grid; grid-template-columns: repeat(4, 1fr); background: var(--surface-1); border-top: 1px solid var(--border); padding-bottom: env(safe-area-inset-bottom); box-shadow: 0 -4px 16px rgba(20,24,29,.06); }
  .tabbar a { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; padding: 8px 4px 6px; min-height: 58px; text-decoration: none; color: var(--text-muted); font-size: 11px; font-weight: 600; letter-spacing: .01em; }
  .tabbar a .ic { font-size: 21px; line-height: 1; }
  .tabbar a[aria-current="page"] { color: var(--accent); }
  .tabbar a:focus-visible { outline: 2px solid var(--accent); outline-offset: -3px; border-radius: 8px; }
  .tabbar .badge { position: absolute; top: 5px; left: calc(50% + 6px); font-family: var(--font-display); font-size: 10px; font-weight: 700; background: var(--critical); color: #fff; border-radius: 999px; padding: 1px 5px; min-width: 16px; text-align: center; }
  .tabbar .badge.muted-badge { background: var(--surface-2); color: var(--text-secondary); border: 1px solid var(--border); }
  .wrap { padding-bottom: calc(84px + env(safe-area-inset-bottom)); }
  .top .in { padding-top: max(8px, env(safe-area-inset-top)); }
}
@media (display-mode: standalone) {
  .side .brand .sub { display: none; }
  body { -webkit-tap-highlight-color: transparent; overscroll-behavior-y: none; }
}
