/* Site PM — mobile-first builder UI */
#pmApp { min-height: calc(100vh - 120px); padding-bottom: 72px; }
.pm-header { padding: 0 0 12px; }
.pm-header h2 { font-size: 22px; font-weight: 700; margin: 0 0 4px; }
.pm-header p { font-size: 13px; color: var(--muted); margin: 0; }
.pm-back { border: none; background: none; color: var(--accent); font-size: 14px; padding: 0; margin-bottom: 10px; cursor: pointer; font-family: inherit; min-height: 44px; }
.pm-tabs { display: flex; gap: 6px; margin-bottom: 14px; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.pm-tab {
  flex-shrink: 0; padding: 10px 16px; border: 1px solid var(--line); border-radius: 999px;
  background: #fff; font-size: 13px; font-weight: 600; cursor: pointer; font-family: inherit; min-height: 44px;
}
.pm-tab.active { background: var(--navy); color: #fff; border-color: var(--navy); }
.pm-bottom-nav {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 40;
  display: flex; background: #fff; border-top: 1px solid var(--line);
  padding: 6px 8px calc(6px + env(safe-area-inset-bottom));
  max-width: 100%;
}
.pm-nav-btn {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 2px; border: none; background: none; font-size: 10px; font-weight: 600; color: var(--muted);
  cursor: pointer; font-family: inherit; min-height: 52px; padding: 4px;
}
.pm-nav-btn.active { color: var(--accent); }
.pm-nav-icon { font-size: 20px; line-height: 1; }
.pm-project-card {
  display: block; width: 100%; text-align: left; background: #fff; border: 1px solid var(--line);
  border-radius: 12px; padding: 16px; margin-bottom: 10px; cursor: pointer; font-family: inherit;
}
.pm-project-card:active { background: #f8fafc; }
.pm-project-name { font-size: 16px; font-weight: 700; margin-bottom: 4px; }
.pm-project-meta { font-size: 12px; color: var(--muted); }
.pm-status { display: inline-block; font-size: 10px; font-weight: 700; text-transform: uppercase; padding: 3px 8px; border-radius: 999px; background: #e8f0fb; color: var(--accent); margin-top: 8px; }
.pm-task-row {
  display: flex; align-items: flex-start; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line);
}
.pm-task-row:last-child { border-bottom: none; }
.pm-task-check { width: 22px; height: 22px; margin-top: 2px; flex-shrink: 0; accent-color: var(--accent); }
.pm-task-title { font-size: 15px; font-weight: 600; }
.pm-task-meta { font-size: 12px; color: var(--muted); margin-top: 4px; }
.pm-task-overdue { color: var(--danger); font-weight: 600; }
.pm-badge { font-size: 10px; font-weight: 700; padding: 2px 7px; border-radius: 4px; background: #fef3c7; color: #92400e; margin-left: 6px; }
.pm-badge.done { background: #EAF3DE; color: #166534; }
.pm-badge.confirmed { background: #dbeafe; color: #1e40af; }
.pm-timeline-item { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.pm-timeline-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--accent); margin-top: 6px; flex-shrink: 0; }
.pm-photo-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.pm-photo-item { aspect-ratio: 1; border-radius: 10px; overflow: hidden; background: #e5e7eb; border: none; padding: 0; cursor: pointer; }
.pm-photo-item img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pm-cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; font-size: 12px; }
.pm-cal-head { text-align: center; font-weight: 600; color: var(--muted); padding: 6px 0; }
.pm-cal-day {
  min-height: 44px; border: 1px solid var(--line); border-radius: 8px; padding: 4px;
  background: #fff; text-align: left; cursor: pointer; font-family: inherit; font-size: 11px;
}
.pm-cal-day.has-tasks { border-color: var(--accent); background: #f0f7ff; }
.pm-cal-day.today { box-shadow: inset 0 0 0 2px var(--accent); }
.pm-cal-day.other { opacity: .45; }
.pm-cal-num { font-weight: 700; font-size: 12px; }
.pm-cal-count { color: var(--accent); font-weight: 600; margin-top: 2px; }
.pm-empty { text-align: center; padding: 32px 16px; color: var(--muted); font-size: 14px; }
.pm-fab-row { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.pm-voice-btn {
  flex: 1; min-height: 52px; border: 2px solid var(--accent); background: #f0f7ff; color: var(--accent);
  border-radius: 12px; font-size: 15px; font-weight: 700; cursor: pointer; font-family: inherit;
}
.pm-voice-btn.listening { background: var(--accent); color: #fff; animation: pm-pulse 1s infinite; }
@keyframes pm-pulse { 50% { opacity: .7; } }
.pm-form-row { margin-bottom: 12px; }
.pm-form-row label { display: block; font-size: 11px; font-weight: 600; color: var(--muted); text-transform: uppercase; margin-bottom: 5px; }
.pm-form-row input, .pm-form-row textarea, .pm-form-row select {
  width: 100%; padding: 12px; border: 1.5px solid var(--line); border-radius: 10px;
  font-size: 16px; font-family: inherit;
}
.pm-actions { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.pm-btn-sm { padding: 10px 14px; font-size: 13px; border-radius: 8px; border: 1px solid var(--line); background: #fff; cursor: pointer; font-family: inherit; min-height: 44px; }
.pm-btn-sm.primary { background: var(--accent); color: #fff; border-color: var(--accent); }
@media (min-width: 768px) {
  #pmApp { max-width: 720px; }
  .pm-bottom-nav { max-width: 720px; left: 50%; transform: translateX(-50%); border-radius: 12px 12px 0 0; }
}
