/* Sprout as a Mac app (html.is-desktop, set by the app's preload script) */
.is-desktop .sidebar { padding-top: 52px; }                 /* room for the window's traffic lights */
.is-desktop .topbar { -webkit-app-region: drag; }           /* drag the window by its top bar */
.is-desktop .topbar :is(button, input, a, label, .search, kbd) { -webkit-app-region: no-drag; }
.is-desktop .app-card { display: none; }
.is-desktop body { -webkit-user-select: none; user-select: none; }  /* app chrome isn't selectable text… */
.is-desktop :is(input, textarea, [contenteditable], .msg p, .wp-field, .tx-main, .msg-plan) { -webkit-user-select: text; user-select: text; } /* …content is */
@media (max-width: 900px) {
  .is-desktop .topbar { padding-left: 84px; }                /* sidebar collapses; keep clear of the traffic lights */
  .is-desktop .sidebar { padding-top: 52px; }
}

/* Mac window layout: like Notes or Finder, the sidebar runs flush to the window's edges, so the
   traffic lights sit inside it instead of on top of a floating card's rounded corner. */
@media (min-width: 901px) {
  .is-desktop .app { padding: 0 16px 0 0; }
  .is-desktop .sidebar { top: 0; height: 100vh; border-radius: 0; border-right: 1px solid var(--line); padding-top: 60px; }
  .is-desktop .sidebar::before { content: ''; position: absolute; inset: 0 0 auto; height: 52px; -webkit-app-region: drag; } /* drag the window by the sidebar's top strip */
  .is-desktop .main { padding: 16px 0; }
}
