/* X TagDeck web viewer - browse-only tweaks on top of tags.css */
.side-new { display: none; }
.tag-row .icon-btn { display: none; }
.side-foot { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.web-last { font-size: 12px; }
.web-menu, .web-shade { display: none; }
.web-empty-btn { display: block; margin: 0 auto; }
.web-empty-btn[hidden] { display: none; }
.tag-row.excluded::after { content: none; }

body { padding-bottom: env(safe-area-inset-bottom); }

@media (max-width: 760px) {
  body { flex-direction: row; }
  #side {
    position: fixed; top: 0; bottom: 0; left: 0; z-index: 50;
    width: min(300px, 86vw); height: 100%;
    padding-top: env(safe-area-inset-top);
    border-right: 1px solid var(--border); border-bottom: 0;
    transform: translateX(-102%); transition: transform 0.2s ease;
  }
  #tagList { max-height: none; }
  .tag-row { padding: 9px 8px; }
  .tag-row .sel { width: 18px; height: 18px; }
  .tag-row .twisty { width: 24px; height: 24px; flex-basis: 24px; font-size: 13px; }
  html.web-drawer-open #side { transform: none; box-shadow: 0 0 24px rgba(0, 0, 0, 0.3); }
  html.web-drawer-open .web-shade { display: block; position: fixed; inset: 0; z-index: 40; background: rgba(0, 0, 0, 0.35); }
  html.web-drawer-open body { overflow: hidden; }
  .web-menu { display: inline-flex; }
  .toolbar { padding-top: max(10px, env(safe-area-inset-top)); flex-wrap: wrap; }
  #title { font-size: 18px; }
  #items.media { grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 4px; }
  .filterbar .fsep { display: none; }
}
