@media (max-width:760px) {
  body { overflow-x: hidden; overflow-y: auto; overscroll-behavior: auto; }
  .login-card { width: 100%; min-height: 100dvh; padding: max(34px,env(safe-area-inset-top) + 20px) 22px 22px; }
  .login-logo { width: 92px; height: 92px; }
  .login-card h1 { font-size: 31px; }
  .login-card p { font-size: 15px; }
  .login-card input, .login-card button { min-height: 52px; border-radius: 16px; font-size: 16px; }
  .workspace { grid-template-columns: 1fr; min-height: 100dvh; }
  .sidebar { position: static; z-index: 20; width: 100%; height: auto; min-height: 100dvh; padding: calc(env(safe-area-inset-top) + 8px) 12px calc(18px + env(safe-area-inset-bottom)); overflow: visible; }
  .workspace.mobile-editor-open .sidebar,
  .workspace.non-notes-module .sidebar { min-height: auto; padding-bottom: 8px; }
  .workspace.mobile-editor-open .sidebar-module,
  .workspace.non-notes-module .sidebar-module { display: none !important; }
  .sidebar-topline { position: sticky; top: 0; z-index: 40; margin: calc(-1 * (env(safe-area-inset-top) + 8px)) -12px 4px; padding: calc(env(safe-area-inset-top) + 8px) 12px 8px; background: rgba(13,16,20,.98); border-bottom: 1px solid rgba(255,255,255,.06); }
  .brand-logo { width: 32px; flex-basis: 32px; }
  .brand-logo img { width: 30px; height: 30px; }
  .module-switch-button, .desktop-menu-trigger { width: 36px; min-width: 36px; height: 36px; }
  .desktop-menu { position: fixed; top: calc(env(safe-area-inset-top) + 56px); right: 10px; width: min(280px,calc(100vw - 20px)); }
  .search-input { min-height: 50px; font-size: 16px; }
  .item { min-height: 50px; border-radius: 16px; padding-top: 10px; padding-bottom: 10px; font-size: 15px; background: rgba(255,255,255,.035); }
  .item.active { background: rgba(255,138,34,.16); }
  .workspace-main { min-height: 0; }
  .app-view { min-height: 0; }
  .workspace:not(.mobile-editor-open):not(.non-notes-module) .workspace-main { display: none; }
  .workspace.mobile-editor-open .workspace-main,
  .workspace.non-notes-module .workspace-main { display: block; }
  .editor { padding: 12px 14px calc(20px + env(safe-area-inset-bottom)); }
  .editor-head { display: flex; margin-bottom: 8px; }
  .editor.page-selected .editor-layout, .editor-layout { display: block; }
  .title { font-size: 28px; padding: 8px 0 4px; }
  .toolbar { flex-wrap: nowrap; overflow-x: auto; overflow-y: hidden; margin: 0 -14px; padding: 6px 14px 8px; }
  .toolbar button, .color-tool { flex: 0 0 auto; min-height: 38px; border-radius: 13px; }
  .content { min-height: 42vh; padding: 10px 2px 28px 0; font-size: 17px; line-height: 1.62; }
  .attachments-column, .editor.page-selected .attachments-column { display: block; position: static; margin-top: 18px; }
  .editor.folder-selected .attachments-column { display: none; }
  .attachments-panel { max-height: none; overflow: visible; }
  .attachment-row { grid-template-columns: minmax(0,1fr) auto auto; }
  .attachment-meta { display: none; }
  .modal { padding: 10px; align-items: end; }
  .modal-card { width: 100%; max-height: calc(100dvh - 28px); border-radius: 24px 24px 14px 14px; padding: 16px; }
  .admin-form { grid-template-columns: 1fr; }
  .user-row { grid-template-columns: 1fr auto; }
  .user-row em { grid-column: 1 / -1; }
  .module-placeholder { min-height: 65vh; padding: 30px 22px; }
}
