/* Personal Health Dashboard — واکنش‌گرا. موبایل اولویت اصلی است. */
@media (max-width: 899px) {
  .phd { grid-template-columns: 1fr; }
  .phd-side { display: none; }
  .phd-main { padding: 14px 12px calc(96px + env(safe-area-inset-bottom)); }
  .phd-bottom { display: grid; grid-template-columns: repeat(6, 1fr); position: fixed; z-index: 800; inset-inline: 0; bottom: 0; background: #fff; border-top: 1px solid var(--line); padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); box-shadow: 0 -4px 16px rgba(0, 0, 0, .05); }
  .phd-bn { border: 0; background: none; display: flex; flex-direction: column; align-items: center; gap: 2px; min-height: 52px; padding: 4px 0; font-size: 10.5px; color: #6b7280; border-radius: 12px; line-height: 1.3; }
  .phd-bn .phd-ic { width: 22px; height: 22px; } .phd-bn.on { color: var(--g); font-weight: 700; background: var(--g-soft); }
  .phd-more { display: flex; flex-direction: column; position: fixed; z-index: 850; inset-inline-start: 10px; bottom: calc(74px + env(safe-area-inset-bottom)); background: #fff; border-radius: 16px; box-shadow: 0 10px 30px rgba(0, 0, 0, .2); padding: 6px; min-width: 210px; }
  .phd-more[hidden] { display: none; }
  .phd-more-item { display: flex; align-items: center; gap: 10px; padding: 12px; border: 0; background: none; border-radius: 10px; text-align: right; color: inherit; text-decoration: none; font-size: 15px; min-height: 46px; }
  .phd-more-item.on { background: var(--g-soft); color: var(--g); }
  .phd-cards { grid-template-columns: 1fr 1fr; } .phd-meals { grid-template-columns: 1fr; } .phd-quick { grid-template-columns: 1fr 1fr; }
  .phd-toasts { bottom: calc(84px + env(safe-area-inset-bottom)); }
}
@media (max-width: 420px) {
  .phd-cards { grid-template-columns: 1fr; } .phd h1 { font-size: 20px; }
  .phd-hbar { grid-template-columns: 70px 1fr; } .phd-hbar-v { grid-column: 1 / -1; }
}
@media (min-width: 900px) {
  .phd-modal { align-items: center; } .phd-sheet { border-radius: 20px; }
  .phd-toasts { bottom: 24px; }
  .phd-quick { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
}
