/* ============================================================
   LAKFINTER — desktop.css
   Applies when body[data-mode="desktop"] — set by app.js based on
   viewport width, or overridden by the mode-toggle button. Scoped
   (rather than a @media query) so the manual override actually works
   regardless of the real screen width.
   ============================================================ */

body[data-mode="desktop"] {
  .bottom-nav {
    display: none;
  }

  .sidebar {
    width: 220px;
    flex-shrink: 0;
    background: var(--paper-raised);
    border-right: 1px solid var(--rule);
    display: flex;
    flex-direction: column;
    height: 100vh;
    position: sticky;
    top: 0;
  }

  .sidebar-brand {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-5) var(--space-4);
    border-bottom: 1px solid var(--rule);
  }

  .sidebar-mark {
    color: var(--gold);
    font-size: 20px;
  }

  .sidebar-title {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 18px;
  }

  .sidebar-nav {
    flex: 1;
    padding: var(--space-3);
    padding-bottom: 96px; /* clears the fixed .shell-controls panel pinned below */
    display: flex;
    flex-direction: column;
    gap: var(--space-1);
    overflow-y: auto;
  }

  /* shell-controls renders as a fixed-position panel pinned to the
     bottom-left of the viewport, lining up visually with the sidebar
     column since the sidebar always occupies that same width and edge. */
  .shell-controls {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 220px;
    padding: var(--space-3);
    border-top: 1px solid var(--rule);
    background: var(--paper-raised);
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
  }

  .mode-toggle-btn {
    width: 100%;
    padding: var(--space-2) var(--space-3);
    background: transparent;
    border: 1px solid var(--rule-strong);
    border-radius: var(--radius-sm);
    color: var(--ink-muted);
    font-size: 12px;
  }
  .mode-toggle-btn:hover {
    background: var(--paper);
    color: var(--ink);
  }

  .sidebar-logout {
    width: 100%;
  }

  /* Desktop home grid gets more breathing room across 3 columns */
  .home-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
