/* Mobile / small-screen degradation: one fullscreen window at a time. */

@media (max-width: 768px) {
  #activities-btn span { display: none; }
  #tb-center { position: static; transform: none; }
  #tb-center, #clock-btn { margin-left: auto; }

  #desktop-icons {
    position: absolute;
    inset: 44px 0 0 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(84px, 1fr));
    grid-auto-rows: min-content; /* rows hug content; don't stretch across the screen */
    align-content: start;
    gap: 4px;
    padding: 8px;
    max-height: none;
  }
  .desk-icon { width: auto; height: auto; }

  .window { min-width: 0; min-height: 0; }

  #ov-windows { padding: 12px; }
  .ov-thumb { width: 78vw; }

  #calendar-popover, #system-popover { width: min(92vw, 380px); }
  #calendar-popover { left: 4vw !important; }

  .files-side { width: 132px; }
  .files-toolbar .fsearch { width: 90px; }

  .article { padding: 28px 18px 80px; }
  .ff-page { padding: 30px 18px 80px; }
  .post-row .pr-tags { display: none; }
}
