/* ══════════════════════════════
   WORKSPACE
══════════════════════════════ */
.workspace {
  flex: 1; overflow-y: auto; overflow-x: hidden;
  padding-bottom: calc(var(--bottom-nav-height) + env(safe-area-inset-bottom) + 16px);
  background: var(--bg-app);
  /* Smooth scroll */
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
}
.workspace__inner { padding: 16px; max-width: 1100px; margin: 0 auto; }
@media(min-width:768px){
  .workspace { padding-bottom: 32px; }
  .workspace__inner { padding: 24px 32px; }
}

/* Pull-to-refresh indicator */
.ptr-indicator {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  height: 0; overflow: hidden;
  font-size: 12px; color: var(--text-muted);
  transition: height .2s ease;
}
.ptr-indicator.visible { height: 44px; }

/* Page header */
.page-header {
  display: flex; align-items: flex-start;
  justify-content: space-between; gap: 16px; margin-bottom: 20px;
}
.page-header__title { font-size: 22px; font-weight: 800; color: var(--text-primary); }
.page-header__subtitle { font-size: 13px; color: var(--text-secondary); margin-top: 2px; }
.page-header__actions { display:flex; gap:8px; flex-wrap:wrap; justify-content:flex-end; flex-shrink:0; }

/* Empty state */
.empty-state {
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 56px 24px; text-align: center;
}
.empty-state__icon {
  width: 64px; height: 64px; background: var(--gray-100);
  border-radius: 50%; display: flex; align-items: center;
  justify-content: center; margin-bottom: 20px;
  color: var(--text-muted); font-size: 28px;
}
.empty-state__title { font-size: 16px; font-weight: 700; color: var(--text-primary); margin-bottom: 8px; }
.empty-state__desc  { font-size: 13px; color: var(--text-secondary); max-width: 280px; margin-bottom: 24px; line-height: 1.6; }

/* Page loading */
.page-loading {
  display: flex; align-items: center; justify-content: center;
  min-height: 200px; color: var(--text-muted); gap: 10px; font-size: 13px;
}
