/* Pharmio.ai Web — Design System */

/* ── 1. Design Tokens ─────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Figtree:wght@400;500;600;700;800&family=Inter:wght@400;500;600;700&display=swap');

:root {
  --ph-mint:   #55D690;
  --ph-purple: #8676FF;
  --ph-navy:   #1A0B5B;
  --ph-bg:     #F8F9FD;
  --ph-white:  #ffffff;
  --ph-blue:   #4D49FF;
  --ph-ink:    #111111;
  --ph-muted:  #72757C;
  --ph-surface:#F5F5F5;
  --ph-line:   #E0E0E0;
  --ph-yellow: #FBD35D;
}

/* ── 2. Base ──────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

body {
  background-color: var(--ph-bg);
  color: var(--ph-ink);
  font-family: 'Figtree', 'Inter', 'Nunito', ui-sans-serif, system-ui, sans-serif;
  margin: 0;
  -webkit-font-smoothing: antialiased;
}

/* ── 3. App Shell ─────────────────────────────────────────────── */
.sidebar {
  width: 260px;
  min-height: 100vh;
  background: var(--ph-white);
  border-right: 1px solid #f1f5f9;
  position: fixed;
  top: 0;
  left: 0;
  display: flex;
  flex-direction: column;
  z-index: 40;
  overflow-y: auto;
}

.app-content {
  min-height: 100vh;
}

@media (min-width: 1024px) {
  .app-content { margin-left: 260px; }
}

/* Default page container. Pages can override max-width with a Tailwind
   utility (e.g. `max-w-3xl` for narrow forms) — Tailwind's class wins
   because its <style> block is injected after theme.css. */
.app-main {
  padding: 1rem;
  padding-bottom: 7rem;       /* room for the mobile bottom nav */
  max-width: 80rem;            /* 7xl — desktop-first */
  margin-left: auto;
  margin-right: auto;
}
@media (min-width: 1024px) {
  .app-main {
    padding: 2rem;
    padding-bottom: 2.5rem;
    margin-left: 0;
  }
}

/* ── 4. Sidebar Nav ───────────────────────────────────────────── */
.sidebar-nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 16px;
  border-radius: 12px;
  color: #64748b;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.18s;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
}
.sidebar-nav-item:hover {
  background-color: var(--ph-bg);
  color: var(--ph-navy);
}
.sidebar-nav-item.active {
  background-color: rgba(134, 118, 255, 0.09);
  color: var(--ph-purple);
}
.sidebar-nav-item.active iconify-icon { color: var(--ph-purple); }

/* ── 5. Bottom Nav (mobile) ───────────────────────────────────── */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--ph-white);
  border-top: 1px solid #f1f5f9;
  display: flex;
  z-index: 40;
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
.bottom-nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 4px 8px;
  gap: 2px;
  color: #94a3b8;
  font-size: 10px;
  font-weight: 700;
  text-decoration: none;
  transition: color 0.18s;
}
.bottom-nav-item.active { color: var(--ph-purple); }

/* ── 6. Landing Page Gradients ────────────────────────────────── */
.hero-gradient {
  background: linear-gradient(135deg, #0d0633 0%, #1A0B5B 35%, #2d1b8e 65%, #5b3fa6 100%);
}
.soft-gradient {
  background: linear-gradient(150deg, #eef0ff 0%, #f8f9fd 45%, #edfff5 100%);
}
.scan-promo-gradient {
  background: linear-gradient(135deg, var(--ph-navy) 0%, #2d1b8e 60%, #4a2dab 100%);
}

/* ── 7. Animations ────────────────────────────────────────────── */
.fade-in  { animation: fadeIn  0.4s ease-in-out forwards; }
.slide-up { animation: slideUp 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards; }

@keyframes fadeIn  { from { opacity: 0; }                          to { opacity: 1; } }
@keyframes slideUp { from { transform: translateY(20px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

/* ── 8. Circular Score Chart ──────────────────────────────────── */
.circular-chart { display: block; margin: 0 auto; max-width: 80%; max-height: 220px; }
.circle-bg  { fill: none; stroke: #e8ecf4; stroke-width: 3.8; }
.circle     { fill: none; stroke-width: 2.8; stroke-linecap: round; animation: progress 1s ease-out forwards; }
@keyframes progress { 0% { stroke-dasharray: 0 100; } }

/* ── 9. Form Components ───────────────────────────────────────── */
.ph-input {
  width: 100%;
  background: #f8fafc;
  border: 1.5px solid #e8ecf4;
  border-radius: 12px;
  padding: 12px 16px;
  font-size: 0.95rem;
  font-family: 'Nunito', sans-serif;
  color: var(--ph-navy);
  transition: border-color 0.2s;
  outline: none;
}
.ph-input:focus { border-color: var(--ph-purple); background: white; }
.ph-input::placeholder { color: #94a3b8; }

.ph-label {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #94a3b8;
  margin-bottom: 6px;
}

/* ── 10. Buttons ──────────────────────────────────────────────── */
.ph-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 14px;
  font-weight: 700;
  font-size: 1rem;
  font-family: 'Nunito', sans-serif;
  border: none;
  cursor: pointer;
  transition: all 0.18s;
  text-decoration: none;
}
.ph-btn:active { transform: scale(0.97); }
.ph-btn-navy   { background: var(--ph-navy);   color: white; box-shadow: 0 4px 20px rgba(26,11,91,0.25); }
.ph-btn-purple { background: var(--ph-purple); color: white; box-shadow: 0 4px 20px rgba(134,118,255,0.3); }
.ph-btn-mint   { background: var(--ph-mint);   color: white; box-shadow: 0 4px 20px rgba(85,214,144,0.3); }
.ph-btn-outline { background: transparent; color: var(--ph-navy); border: 2px solid #e8ecf4; }
.ph-btn-outline:hover { border-color: var(--ph-purple); color: var(--ph-purple); }
.ph-btn-ghost  { background: #f1f5f9; color: var(--ph-navy); }
.ph-btn-ghost:hover { background: #e2e8f0; }

/* ── 11. Cards ────────────────────────────────────────────────── */
.ph-card {
  background: var(--ph-white);
  border-radius: 20px;
  padding: 24px;
  border: 1px solid #f1f5f9;
  box-shadow: 0 1px 8px rgba(26, 11, 91, 0.04);
}

/* ── 12. File Upload Drop Zone ────────────────────────────────── */
.drop-zone {
  border: 2px dashed #dde2ef;
  border-radius: 20px;
  transition: all 0.2s;
  cursor: pointer;
  position: relative;
}
.drop-zone:hover, .drop-zone.drag-over {
  border-color: var(--ph-purple);
  background-color: rgba(134, 118, 255, 0.04);
}
.drop-zone input[type="file"] {
  position: absolute; inset: 0; opacity: 0; cursor: pointer;
}

/* ── 13. Toast Notifications ──────────────────────────────────── */
#toast-container {
  position: fixed;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}
@media (min-width: 1024px) { #toast-container { bottom: 32px; } }

.toast {
  padding: 12px 20px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.875rem;
  white-space: nowrap;
  animation: slideUp 0.3s ease-out forwards;
  pointer-events: auto;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}
.toast-success { background: var(--ph-navy); color: white; }
.toast-error   { background: #ef4444;         color: white; }
.toast-info    { background: var(--ph-purple); color: white; }

/* ── 14. Toggle Switch ────────────────────────────────────────── */
.ph-toggle {
  appearance: none; -webkit-appearance: none;
  width: 44px; height: 24px;
  background: #cbd5e1;
  border-radius: 999px;
  cursor: pointer;
  position: relative;
  transition: background 0.2s;
}
.ph-toggle::after {
  content: '';
  position: absolute;
  top: 3px; left: 3px;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: white;
  box-shadow: 0 1px 4px rgba(0,0,0,0.2);
  transition: transform 0.2s;
}
.ph-toggle:checked { background: var(--ph-purple); }
.ph-toggle:checked::after { transform: translateX(20px); }

/* ── 15. Goal / Toggle Cards ──────────────────────────────────── */
.goal-card { transition: all 0.2s; }
.goal-card.selected {
  background-color: rgba(85, 214, 144, 0.08) !important;
  border-color: var(--ph-mint) !important;
  box-shadow: 0 4px 16px rgba(85, 214, 144, 0.15);
}

/* ── 16. Scrollbar Hide ───────────────────────────────────────── */
.no-scrollbar::-webkit-scrollbar { display: none; }
.no-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }

/* ── 17. Auth Modal ───────────────────────────────────────────── */
.auth-modal-backdrop {
  position: fixed; inset: 0; z-index: 60;
  display: flex; align-items: center; justify-content: center;
  background: rgba(15, 10, 40, 0.55);
  backdrop-filter: blur(4px);
  padding: 16px;
}
.auth-modal-box {
  background: white;
  border-radius: 28px;
  padding: 40px;
  width: 100%;
  max-width: 440px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
}
@media (max-width: 640px) {
  .auth-modal-backdrop { align-items: flex-end; padding: 0; }
  .auth-modal-box { border-radius: 28px 28px 0 0; padding: 32px 24px; max-height: 90vh; }
}

/* ── 18. Supplement Image Grid ────────────────────────────────── */
.img-thumb {
  width: 72px; height: 72px;
  border-radius: 12px;
  object-fit: cover;
  border: 1.5px solid #f1f5f9;
}

/* ── 19. Wizard Steps ─────────────────────────────────────────── */
.step-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #e2e8f0;
  transition: all 0.3s;
}
.step-dot.active { background: var(--ph-purple); width: 24px; border-radius: 4px; }
.step-dot.done   { background: var(--ph-mint); }

/* --- New Pharmio visual system overrides --- */
body {
  background: #eeeeee;
  letter-spacing: 0;
}

h1, h2, h3, h4,
[style*="Poppins"] {
  font-family: 'Figtree', 'Inter', 'Nunito', ui-sans-serif, system-ui, sans-serif !important;
  letter-spacing: 0 !important;
}

.app-content {
  background: #eeeeee;
}

.app-main {
  width: 100%;
  max-width: 72rem;
  padding: 22px 16px 104px;
}

@media (min-width: 1024px) {
  .app-main {
    padding: 32px;
  }
}

.ph-page-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 24px;
}

.ph-eyebrow {
  color: var(--ph-muted);
  font-size: 13px;
  font-weight: 600;
  margin: 0 0 2px;
}

.ph-page-title {
  color: var(--ph-ink);
  font-size: clamp(34px, 5vw, 56px);
  font-weight: 800;
  line-height: 0.98;
  margin: 0;
}

.sidebar {
  width: 248px;
  background: #fff;
  border-right: 0;
  box-shadow: 0 24px 80px rgba(17,17,17,0.05);
}

@media (min-width: 1024px) {
  .app-content { margin-left: 248px; }
}

.ph-shell-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--ph-ink);
  font-size: 20px;
  font-weight: 800;
  text-decoration: none;
}

.ph-logo-tile {
  align-items: center;
  background: var(--ph-blue);
  border-radius: 12px;
  color: #fff;
  display: inline-flex;
  height: 34px;
  justify-content: center;
  width: 34px;
}

.ph-logo-tile svg {
  height: 20px;
  width: 20px;
}

.sidebar-nav-item {
  border-radius: 18px;
  color: var(--ph-ink);
  font-size: 14px;
  font-weight: 700;
  padding: 13px 14px;
}

.sidebar-nav-item:hover {
  background: var(--ph-surface);
  color: var(--ph-ink);
}

.sidebar-nav-item.active {
  background: var(--ph-surface);
  color: var(--ph-ink);
}

.sidebar-nav-item.active iconify-icon,
.sidebar-nav-item.active svg {
  color: var(--ph-ink);
}

.ph-secondary-nav .sidebar-nav-item {
  color: var(--ph-muted);
  font-size: 13px;
  font-weight: 650;
}

.ph-shell-topbar {
  align-items: center;
  background: rgba(255,255,255,0.86);
  border-bottom: 0;
  display: flex;
  gap: 16px;
  justify-content: space-between;
  padding: 14px 16px;
  position: sticky;
  top: 0;
  z-index: 35;
  backdrop-filter: blur(18px);
}

@media (min-width: 1024px) {
  .ph-shell-topbar {
    margin-left: 0;
    padding: 18px 32px 10px;
  }
}

.ph-shell-title {
  color: var(--ph-ink);
  font-size: 16px;
  font-weight: 800;
}

.ph-profile-chip {
  align-items: center;
  background: var(--ph-blue);
  border: 0;
  border-radius: 14px;
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  font-size: 15px;
  font-weight: 700;
  height: 42px;
  justify-content: center;
  overflow: hidden;
  text-decoration: none;
  width: 42px;
}

.ph-profile-chip img {
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.bottom-nav {
  background: rgba(255,255,255,0.94);
  border-top: 0;
  box-shadow: 0 -18px 44px rgba(17,17,17,0.08);
  justify-content: center;
  padding: 10px 18px calc(10px + env(safe-area-inset-bottom, 0px));
}

.bottom-nav-item {
  border-radius: 22px;
  color: var(--ph-ink);
  flex: 0 1 116px;
  font-size: 11px;
  font-weight: 700;
  gap: 3px;
  padding: 10px 12px;
}

.bottom-nav-item span { display: none; }
.bottom-nav-item.active {
  background: var(--ph-surface);
  color: var(--ph-ink);
}
.bottom-nav-item.active span { display: block; }

.ph-card {
  background: #fff;
  border: 0;
  border-radius: 24px;
  box-shadow: none;
  padding: 24px;
}

@media (max-width: 640px) {
  .ph-card {
    border-radius: 22px;
    padding: 20px;
  }
}

.ph-card-edge {
  margin-left: -16px;
  margin-right: -16px;
  border-radius: 0;
}

.ph-btn {
  border-radius: 999px;
  box-shadow: none;
  font-family: 'Figtree', 'Inter', 'Nunito', sans-serif;
  font-weight: 700;
  min-height: 48px;
  padding: 13px 24px;
}

.ph-btn-navy {
  background: var(--ph-ink);
  color: #fff;
  box-shadow: none;
}

.ph-btn-purple {
  background: var(--ph-blue);
  color: #fff;
  box-shadow: none;
}

.ph-btn-mint {
  background: var(--ph-mint);
  color: var(--ph-ink);
  box-shadow: none;
}

.ph-btn-ghost,
.ph-btn-outline {
  background: var(--ph-surface);
  border: 0;
  color: var(--ph-ink);
}

.ph-input {
  background: var(--ph-surface);
  border: 0;
  border-radius: 16px;
  color: var(--ph-ink);
  font-family: 'Figtree', 'Inter', 'Nunito', sans-serif;
  font-size: 16px;
  min-height: 52px;
}

.ph-input:focus {
  background: #fff;
  box-shadow: 0 0 0 2px var(--ph-blue);
}

.ph-label {
  color: var(--ph-muted);
  font-size: 12px;
  letter-spacing: 0;
  text-transform: none;
}

.auth-modal-backdrop {
  align-items: flex-end;
  background: rgba(17,17,17,0.28);
  backdrop-filter: blur(8px);
}

.auth-modal-box {
  border-radius: 28px 28px 0 0;
  box-shadow: 0 -28px 80px rgba(17,17,17,0.16);
  max-width: 560px;
  padding: 28px 24px 24px;
}

@media (min-width: 768px) {
  .auth-modal-backdrop {
    align-items: center;
  }
  .auth-modal-box {
    border-radius: 28px;
  }
}

.drop-zone {
  background: var(--ph-surface);
  border: 2px dashed #cfcfcf;
  border-radius: 24px;
}

.drop-zone:hover,
.drop-zone.drag-over {
  background: #f0f0ff;
  border-color: var(--ph-blue);
}

.toast {
  border-radius: 999px;
  font-family: 'Figtree', 'Inter', sans-serif;
}

.toast-success,
.toast-info {
  background: var(--ph-ink);
  color: #fff;
}

.ph-toggle {
  background: #d8d8d8;
}

.ph-toggle:checked {
  background: var(--ph-blue);
}

.goal-card.selected {
  background: #f1f0ff !important;
  border-color: var(--ph-blue) !important;
  box-shadow: none;
}

.step-dot {
  border-radius: 999px;
  height: 4px;
  width: 40px;
}

.step-dot.active {
  background: var(--ph-ink);
  border-radius: 999px;
  width: 40px;
}

.step-dot.done {
  background: var(--ph-ink);
}

.ph-quality-scale {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(5, minmax(0,1fr));
  margin: 22px 0 16px;
  position: relative;
}

.ph-quality-segment {
  border-radius: 999px;
  height: 20px;
}

.ph-quality-segment:nth-child(1) { background: #f4cfca; }
.ph-quality-segment:nth-child(2) { background: #f7dc68; }
.ph-quality-segment:nth-child(3) { background: #dff2cf; }
.ph-quality-segment:nth-child(4) { background: #bfccfb; }
.ph-quality-segment:nth-child(5) { background: #dcc4ef; }

.ph-quality-segment.is-active {
  transform: scaleY(1.28);
}

.ph-quality-ticker {
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  border-bottom: 18px solid var(--ph-ink);
  height: 0;
  position: absolute;
  top: 34px;
  transform: translateX(-50%);
  width: 0;
}

.ph-routine-row,
.ph-stack-row {
  align-items: center;
  background: var(--ph-surface);
  border-radius: 18px;
  display: flex;
  gap: 12px;
  padding: 12px;
}

.ph-row-thumb {
  align-items: center;
  background: #fff;
  border-radius: 12px;
  display: flex;
  height: 54px;
  justify-content: center;
  overflow: hidden;
  width: 54px;
}

.ph-row-thumb img {
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.ph-check-dot {
  align-items: center;
  background: #d0d0d0;
  border-radius: 999px;
  color: #fff;
  display: inline-flex;
  height: 22px;
  justify-content: center;
  width: 22px;
}

.ph-check-dot.is-taken {
  background: var(--ph-ink);
}

.hero-gradient,
.scan-promo-gradient {
  background: var(--ph-blue);
}

.soft-gradient {
  background: #eeeeee;
}

header a[href="index.html"] .w-8.h-8.rounded-xl,
div a[href="index.html"] .w-8.h-8.rounded-xl {
  background: var(--ph-blue) !important;
  color: #fff;
  position: relative;
}

header a[href="index.html"] .w-8.h-8.rounded-xl iconify-icon,
div a[href="index.html"] .w-8.h-8.rounded-xl iconify-icon {
  display: none;
}

header a[href="index.html"] .w-8.h-8.rounded-xl::before,
div a[href="index.html"] .w-8.h-8.rounded-xl::before {
  background: currentColor;
  content: "";
  height: 18px;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3.99 3.99a6.796 6.796 0 0 0 0 9.612l2.564 2.563l.495-.095h.001l.014-.003l.074-.018q.103-.024.315-.091c.282-.09.697-.243 1.21-.49c1.024-.493 2.438-1.364 3.939-2.866c1.501-1.501 2.372-2.915 2.866-3.939c.247-.512.4-.928.49-1.21a5 5 0 0 0 .109-.389l.003-.014l.095-.496l-2.563-2.563a6.796 6.796 0 0 0-9.611 0m13.428 3.816l-.032.103c-.11.343-.288.824-.568 1.404c-.56 1.162-1.525 2.718-3.156 4.349s-3.187 2.597-4.349 3.157a11 11 0 0 1-1.507.599l2.591 2.59a6.796 6.796 0 1 0 9.611-9.61z'/%3E%3C/svg%3E") center / contain no-repeat;
  width: 18px;
}

/* --- Portal visual system v2: closer to the new public landing page --- */
:root {
  --ph-blue-deep: #3834D8;
  --ph-lavender: #EFEDFF;
  --ph-card-shadow: 0 22px 54px rgba(17,17,17,0.06);
  --ph-tight-shadow: 0 14px 32px rgba(17,17,17,0.05);
}

body {
  background:
    radial-gradient(circle at 18% 6%, rgba(77,73,255,0.10), transparent 26rem),
    #F7F7F8;
  color: var(--ph-ink);
  font-family: 'Figtree', 'Inter', ui-sans-serif, system-ui, sans-serif !important;
}

.sidebar {
  background: rgba(255,255,255,0.92);
  border-right: 1px solid var(--ph-line);
  padding: 10px 0;
  width: 248px;
}

@media (min-width: 1024px) {
  .app-content { margin-left: 248px; }
}

.ph-shell-brand {
  align-items: center;
  color: var(--ph-ink);
  display: flex;
  font-size: 22px;
  font-weight: 800;
  gap: 12px;
  letter-spacing: 0;
  text-decoration: none;
}

.ph-logo-tile {
  align-items: center;
  background: var(--ph-blue);
  border-radius: 14px;
  box-shadow: 0 14px 28px rgba(77,73,255,0.22);
  color: #fff;
  display: inline-flex;
  height: 38px;
  justify-content: center;
  width: 38px;
}

.ph-logo-tile svg {
  height: 21px;
  width: 21px;
}

.sidebar-nav-item {
  border-radius: 18px;
  color: #72757C;
  font-size: 15px;
  font-weight: 800;
  margin: 2px 0;
  min-height: 48px;
  padding: 0 14px;
}

.sidebar-nav-item:hover {
  background: var(--ph-surface);
  color: var(--ph-ink);
}

.sidebar-nav-item.active {
  background: var(--ph-ink);
  color: #fff;
  box-shadow: 0 18px 32px rgba(17,17,17,0.14);
}

.ph-secondary-nav {
  border-color: var(--ph-line) !important;
}

.ph-shell-topbar {
  align-items: center;
  background: rgba(255,255,255,0.88);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--ph-line);
  display: flex;
  justify-content: space-between;
  min-height: 70px;
  padding: 12px 16px;
  position: sticky;
  top: 0;
  z-index: 35;
}

.ph-shell-title {
  color: var(--ph-ink);
  font-size: 18px;
  font-weight: 800;
}

.ph-profile-chip {
  align-items: center;
  background: var(--ph-blue);
  border: 0;
  border-radius: 14px;
  box-shadow: 0 14px 28px rgba(77,73,255,0.22);
  color: #fff;
  display: inline-flex;
  font-weight: 800;
  height: 42px;
  justify-content: center;
  overflow: hidden;
  width: 42px;
}

.ph-profile-chip img {
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.bottom-nav {
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(22px);
  border: 1px solid rgba(232,232,236,0.92);
  border-radius: 30px 30px 0 0;
  bottom: 0;
  box-shadow: 0 -18px 48px rgba(17,17,17,0.08);
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(3, minmax(0,1fr));
  left: 0;
  padding: 10px 16px 14px;
  position: fixed;
  right: 0;
  z-index: 40;
}

.bottom-nav-item {
  align-items: center;
  border-radius: 22px;
  color: var(--ph-ink);
  display: flex;
  flex-direction: column;
  font-size: 11px;
  font-weight: 800;
  gap: 3px;
  justify-content: center;
  min-height: 58px;
  text-decoration: none;
}

.bottom-nav-item:not(.active) span {
  display: none;
}

.bottom-nav-item.active {
  background: var(--ph-surface);
}

.app-main {
  max-width: 1180px;
  padding: 18px 16px 7.75rem;
}

@media (min-width: 1024px) {
  .app-main {
    padding: 44px;
    padding-bottom: 56px;
  }
}

.ph-page-title {
  color: var(--ph-ink) !important;
  font-size: clamp(42px, 5vw, 70px);
  font-weight: 800;
  letter-spacing: 0;
  line-height: 0.96;
}

.ph-eyebrow {
  color: var(--ph-muted) !important;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
}

.ph-card {
  background: #fff;
  border: 0;
  border-radius: 34px;
  box-shadow: var(--ph-card-shadow);
  color: var(--ph-ink);
  padding: 28px;
}

.ph-card:hover {
  box-shadow: 0 26px 64px rgba(17,17,17,0.08);
}

.ph-btn {
  border: 0;
  border-radius: 999px;
  box-shadow: none;
  display: inline-flex;
  font-weight: 800;
  gap: 9px;
  min-height: 48px;
  padding: 0 22px;
}

.ph-btn-navy,
.ph-btn-purple {
  background: var(--ph-ink) !important;
  color: #fff !important;
}

.ph-btn-blue {
  background: var(--ph-blue) !important;
  color: #fff !important;
}

.ph-btn-ghost,
.ph-btn-outline {
  background: var(--ph-surface) !important;
  color: var(--ph-ink) !important;
}

.ph-btn:hover {
  transform: translateY(-1px);
}

.ph-input {
  background: var(--ph-surface) !important;
  border: 0 !important;
  border-radius: 18px;
  color: var(--ph-ink);
  font-size: 16px;
  font-weight: 650;
  min-height: 54px;
  padding-left: 16px;
  padding-right: 16px;
  width: 100%;
}

.ph-input:focus {
  background: #fff !important;
  box-shadow: 0 0 0 2px var(--ph-blue) !important;
  outline: none;
}

.ph-label {
  color: var(--ph-muted);
  display: block;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  margin-bottom: 7px;
  text-transform: none;
}

.drop-zone {
  background: var(--ph-surface);
  border: 2px dashed #B9BAC1;
  border-radius: 28px;
}

.auth-modal-backdrop {
  align-items: flex-end;
  background: rgba(17,17,17,0.32);
  backdrop-filter: blur(12px);
}

.auth-modal-box {
  border-radius: 34px 34px 0 0;
  box-shadow: 0 -28px 80px rgba(17,17,17,0.18);
  padding: 32px 24px 24px;
}

@media (min-width: 768px) {
  .auth-modal-box {
    border-radius: 34px;
  }
}

.ph-routine-row,
.ph-stack-row {
  background: var(--ph-surface);
  border-radius: 22px;
  padding: 14px;
}

.ph-row-thumb {
  border-radius: 16px;
  height: 62px;
  width: 62px;
}

.ph-check-dot {
  background: #D0D0D2;
  height: 26px;
  width: 26px;
}

.ph-check-dot.is-taken {
  background: var(--ph-ink);
}

.ph-quality-scale {
  gap: 8px;
  margin: 24px 0 24px;
  padding-bottom: 32px;
}

.ph-quality-segment {
  height: 18px;
}

.ph-quality-segment.is-active {
  transform: none;
}

.ph-quality-ticker {
  border-bottom: 17px solid var(--ph-ink);
  top: 28px;
}

body[data-page="today"] .ph-card:first-of-type,
body[data-page="stack"] #supGrid .ph-card,
body[data-page="profile"] details.ph-card,
body[data-page="subscription"] .ph-card,
body[data-page="ask"] .ph-card,
body[data-page="recommendations"] .ph-card {
  border-radius: 34px;
}

body[data-page="today"] .circular-chart {
  filter: drop-shadow(0 12px 22px rgba(77,73,255,0.12));
}

body[data-page="today"] .circle-bg {
  stroke: var(--ph-surface);
}

body[data-page="today"] .circle {
  stroke: var(--ph-blue) !important;
}

body[data-page="stack"] #supGrid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.app-main > .flex.items-start.justify-between.mb-8,
.app-main > .flex.items-center.justify-between.mb-8 {
  align-items: flex-end;
  background:
    radial-gradient(circle at 85% 20%, rgba(77,73,255,0.16), transparent 18rem),
    #fff;
  border-radius: 40px;
  box-shadow: var(--ph-card-shadow);
  margin-bottom: 28px !important;
  padding: clamp(24px, 4vw, 38px);
}

.app-main > .flex.items-start.justify-between.mb-8 .ph-page-title,
.app-main > .flex.items-center.justify-between.mb-8 .ph-page-title {
  margin-top: 6px;
}

body[data-page="today"] .grid.grid-cols-2.lg\:grid-cols-4 > .ph-card {
  min-height: 170px;
}

body[data-page="today"] #streakCard {
  align-items: flex-start !important;
  background: var(--ph-ink);
  color: #fff;
}

body[data-page="today"] #streakCard p,
body[data-page="today"] #streakCard iconify-icon {
  color: #fff !important;
}

body[data-page="today"] #streakDays {
  color: #fff !important;
  font-size: 46px !important;
  line-height: 1;
}

body[data-page="today"] #progressBar {
  background: var(--ph-blue) !important;
}

body[data-page="today"] #scheduleList > div,
body[data-page="stack"] #bloodTestList > div,
body[data-page="profile"] details .flex.items-center.justify-between,
body[data-page="subscription"] li,
body[data-page="recommendations"] li {
  border-radius: 22px;
}

body[data-page="stack"] #supGrid .ph-card {
  padding: 14px;
}

body[data-page="stack"] #supGrid .ph-card img,
body[data-page="stack"] #supGrid .ph-card > div:first-child {
  height: 168px !important;
}

body[data-page="stack"] h2,
body[data-page="today"] h2,
body[data-page="profile"] h2,
body[data-page="subscription"] h2,
body[data-page="recommendations"] h2,
body[data-page="ask"] h2 {
  color: var(--ph-ink) !important;
  font-weight: 800 !important;
  letter-spacing: 0;
}

body[data-page="ask"] textarea,
body[data-page="ask"] input {
  border-radius: 24px !important;
}

body[data-page="ask"] #chatWindow,
body[data-page="ask"] .chat-window,
body[data-page="ask"] .ph-card {
  border-radius: 34px;
}

details.ph-card > summary {
  min-height: 58px;
}

details.ph-card[open] {
  padding-bottom: 30px;
}

.auth-modal-box h2,
.auth-modal-box h3 {
  color: var(--ph-ink) !important;
  font-family: 'Figtree', 'Inter', sans-serif !important;
  font-weight: 800 !important;
  letter-spacing: 0;
}

.auth-modal-box .bg-gray-100 {
  background: var(--ph-surface) !important;
}

.auth-modal-box .rounded-xl {
  border-radius: 22px !important;
}

.auth-modal-box .rounded-lg {
  border-radius: 18px !important;
}

body[data-page="stack"] #supGrid .ph-card img,
body[data-page="stack"] #supGrid .ph-card > div:first-child {
  border-radius: 24px;
}

body[data-page="profile"] .app-main {
  max-width: 980px;
}

body[data-page="profile"] #avatarContainer {
  background: var(--ph-blue) !important;
  border: 0 !important;
  border-radius: 24px !important;
  box-shadow: 0 18px 34px rgba(77,73,255,0.22);
  height: 92px !important;
  width: 92px !important;
}

body[data-page="profile"] #avatarIcon {
  color: #fff !important;
}

body[data-page="profile"] summary span,
body[data-page="profile"] #profileName,
body[data-page="profile"] .font-bold.text-ph-navy {
  color: var(--ph-ink) !important;
}

body[data-page="profile"] .grid.grid-cols-3 {
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
}

.ph-auth-page {
  align-items: center;
  background:
    radial-gradient(circle at 18% 18%, rgba(77,73,255,0.14), transparent 24rem),
    linear-gradient(180deg, #fff 0%, #F7F7F8 100%);
  display: flex;
  justify-content: center;
  min-height: 100vh;
  padding: 28px;
}

.ph-auth-card {
  background: #fff;
  border: 0;
  border-radius: 36px;
  box-shadow: 0 28px 72px rgba(17,17,17,0.10);
  padding: clamp(28px, 5vw, 42px);
  width: min(100%, 460px);
}

.ph-auth-card.text-center {
  text-align: center;
}

.ph-auth-brand {
  align-items: center;
  color: var(--ph-ink);
  display: inline-flex;
  font-size: 20px;
  font-weight: 800;
  gap: 10px;
  margin-bottom: 34px;
  text-decoration: none;
}

.ph-auth-title {
  color: var(--ph-ink);
  font-size: clamp(32px, 7vw, 46px);
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1;
  margin: 0 0 12px;
}

.ph-auth-copy {
  color: var(--ph-muted);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.5;
  margin: 0 0 28px;
}

.ph-auth-icon {
  align-items: center;
  background: var(--ph-lavender);
  border-radius: 24px;
  color: var(--ph-blue);
  display: inline-flex;
  height: 72px;
  justify-content: center;
  margin-bottom: 22px;
  width: 72px;
}

.ph-auth-icon iconify-icon {
  font-size: 34px;
}

.ph-auth-link {
  color: var(--ph-blue);
  font-weight: 800;
}

.ph-auth-card h1,
.ph-auth-card h2,
.ph-auth-card .font-bold.text-ph-navy,
.ph-auth-card .font-bold.text-lg {
  color: var(--ph-ink) !important;
  font-family: 'Figtree', 'Inter', sans-serif !important;
  font-size: clamp(30px, 6vw, 44px) !important;
  font-weight: 800 !important;
  letter-spacing: 0 !important;
  line-height: 1 !important;
}

.ph-auth-card p,
.ph-auth-card .text-gray-400 {
  color: var(--ph-muted) !important;
  font-size: 16px !important;
  font-weight: 500 !important;
  line-height: 1.5 !important;
}

.ph-auth-card .text-sm {
  font-size: 15px !important;
}

/* Standalone platform flows: goal wizard and one-off scan */
#loadingOverlay {
  background: var(--ph-blue) !important;
}

#loadingOverlay > div {
  background: transparent !important;
  color: #fff !important;
}

#wizardContent {
  background:
    radial-gradient(circle at 18% 6%, rgba(77,73,255,0.12), transparent 24rem),
    #F7F7F8;
}

#wizardContent > .bg-white.border-b {
  background: rgba(255,255,255,0.9) !important;
  backdrop-filter: blur(18px);
  border-color: var(--ph-line) !important;
  border-radius: 0 0 30px 30px;
  box-shadow: 0 14px 34px rgba(17,17,17,0.05);
}

#wizardContent h2 {
  color: var(--ph-ink) !important;
  font-family: 'Figtree', 'Inter', sans-serif !important;
  font-size: clamp(36px, 5vw, 62px) !important;
  font-weight: 800 !important;
  letter-spacing: 0;
  line-height: 0.98;
}

#wizardContent h2 + p {
  color: var(--ph-muted) !important;
  font-size: 17px !important;
  font-weight: 500;
  line-height: 1.5;
  max-width: 680px;
}

#wizardContent .fade-in:not(.hidden) {
  background: #fff;
  border-radius: 40px;
  box-shadow: var(--ph-card-shadow);
  padding: clamp(24px, 5vw, 44px);
}

#wizardContent #step5.fade-in:not(.hidden) {
  padding-bottom: clamp(34px, 6vw, 58px);
}

#wizardContent .grid[id$="Cards"] > button,
#wizardContent .goal-card {
  border-radius: 24px !important;
  min-height: 96px;
}

#wizardContent #stepNav {
  background: rgba(255,255,255,0.86);
  backdrop-filter: blur(18px);
  border: 1px solid rgba(232,232,236,0.9);
  border-radius: 30px;
  bottom: 18px;
  box-shadow: 0 18px 48px rgba(17,17,17,0.08);
  padding: 12px;
  position: sticky;
}

body:has(#stepUpload) header.sticky {
  background: rgba(255,255,255,0.9) !important;
  border-color: var(--ph-line) !important;
  backdrop-filter: blur(18px);
}

body:has(#stepUpload) .scan-promo-gradient {
  background:
    radial-gradient(circle at 82% 14%, rgba(255,255,255,0.22), transparent 18rem),
    var(--ph-blue) !important;
  border-radius: 0 0 42px 42px;
  padding-bottom: 72px !important;
  padding-top: 64px !important;
}

body:has(#stepUpload) .scan-promo-gradient h1 {
  font-family: 'Figtree', 'Inter', sans-serif !important;
  font-size: clamp(42px, 6vw, 72px) !important;
  font-weight: 800 !important;
  letter-spacing: 0;
  line-height: 0.98;
}

body:has(#stepUpload) main {
  margin-top: 0;
  max-width: 900px !important;
}

body:has(#stepUpload) .ph-card {
  border-radius: 36px;
}

body:has(#stepUpload) #addSupplementBtn {
  background: var(--ph-surface);
  border: 0 !important;
  border-radius: 999px !important;
  color: var(--ph-ink) !important;
  font-weight: 800;
}

/* Platform entry page (web/index.html) */
.ph-platform-entry {
  background:
    radial-gradient(circle at 18% 8%, rgba(77,73,255,0.12), transparent 28rem),
    #F7F7F8;
}

.ph-platform-entry header.sticky {
  background: rgba(255,255,255,0.9) !important;
  backdrop-filter: blur(18px);
  border-color: var(--ph-line) !important;
}

.ph-platform-entry header > div {
  max-width: 1180px !important;
  min-height: 74px;
}

.ph-platform-entry header .font-bold.text-xl {
  color: var(--ph-ink) !important;
  font-family: 'Figtree', 'Inter', sans-serif !important;
  font-size: 22px !important;
  font-weight: 800 !important;
}

.ph-platform-entry .soft-gradient {
  background:
    radial-gradient(circle at 82% 16%, rgba(77,73,255,0.13), transparent 22rem),
    linear-gradient(180deg, #fff 0%, #F7F7F8 100%) !important;
}

.ph-platform-entry .soft-gradient > div {
  max-width: 1180px !important;
  padding-bottom: 64px !important;
  padding-top: 74px !important;
}

.ph-platform-entry .fade-in > .inline-flex {
  background: var(--ph-lavender) !important;
  border: 0 !important;
  border-radius: 999px !important;
  box-shadow: none !important;
  color: var(--ph-blue) !important;
}

.ph-platform-entry .fade-in > .inline-flex span:last-child {
  color: var(--ph-blue) !important;
  font-size: 13px !important;
  font-weight: 800 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
}

.ph-platform-entry h1 {
  color: var(--ph-ink) !important;
  font-family: 'Figtree', 'Inter', sans-serif !important;
  font-size: clamp(52px, 7vw, 88px) !important;
  font-weight: 800 !important;
  letter-spacing: 0 !important;
  line-height: 0.96 !important;
  max-width: 760px;
}

.ph-platform-entry h1 .text-ph-purple {
  color: var(--ph-blue) !important;
}

.ph-platform-entry .platform-hero-copy {
  color: var(--ph-muted) !important;
  display: block !important;
  font-size: 21px !important;
  font-weight: 500 !important;
  line-height: 1.52 !important;
  margin-top: 28px;
}

.ph-platform-entry .platform-hero-copy + p {
  display: none;
}

.ph-platform-entry .slide-up > .bg-white {
  border: 0 !important;
  border-radius: 34px !important;
  box-shadow: 0 34px 80px rgba(17,17,17,0.14) !important;
  max-width: 390px !important;
  padding: 28px !important;
}

.ph-platform-entry .slide-up > .bg-white::before {
  color: var(--ph-muted);
  content: "Today";
  display: block;
  font-size: 14px;
  font-weight: 800;
  margin-bottom: 18px;
}

.ph-platform-entry .slide-up .bg-ph-bg {
  background: var(--ph-surface) !important;
  border-radius: 24px !important;
  padding: 20px !important;
}

.ph-platform-entry .slide-up .absolute {
  background: var(--ph-ink) !important;
  border-radius: 999px !important;
  box-shadow: 0 18px 38px rgba(17,17,17,0.18) !important;
}

.ph-platform-entry .border-y {
  border-color: var(--ph-line) !important;
}

.ph-platform-entry #features,
.ph-platform-entry section.bg-ph-bg {
  background: #F7F7F8 !important;
}

.ph-platform-entry #features h2,
.ph-platform-entry #how-it-works h2,
.ph-platform-entry section.bg-ph-bg h2 {
  color: var(--ph-ink) !important;
  font-family: 'Figtree', 'Inter', sans-serif !important;
  font-size: clamp(36px, 5vw, 62px) !important;
  font-weight: 800 !important;
  letter-spacing: 0 !important;
  line-height: 1 !important;
}

.ph-platform-entry #features .ph-card {
  min-height: 260px;
}

.ph-platform-entry .scan-promo-gradient {
  background:
    radial-gradient(circle at 80% 16%, rgba(255,255,255,0.22), transparent 20rem),
    var(--ph-blue) !important;
}

.ph-platform-entry #how-it-works {
  background: #fff !important;
}

.ph-platform-entry footer {
  border-color: var(--ph-line) !important;
}

.ph-platform-entry footer a[href="#"] {
  display: none;
}

@media (max-width: 700px) {
  .ph-platform-entry h1 {
    font-size: 46px !important;
  }

  .ph-platform-entry .soft-gradient > div {
    padding-top: 50px !important;
  }
}

/* Literal landing-page composition for platform.pharmio.ai entry */
.ph-platform-entry > header,
.ph-platform-entry > section,
.ph-platform-entry > div.border-y,
.ph-platform-entry > footer {
  display: none !important;
}

.platform-v2 {
  background:
    radial-gradient(circle at 16% 12%, rgba(77,73,255,0.12), transparent 28rem),
    #F7F7F8;
  color: var(--ph-ink);
  font-family: 'Figtree', 'Inter', ui-sans-serif, system-ui, sans-serif;
  min-height: 100vh;
}

.platform-container {
  margin: 0 auto;
  width: min(1120px, calc(100% - 40px));
}

.platform-topbar {
  background: rgba(255,255,255,0.88);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--ph-line);
  position: sticky;
  top: 0;
  z-index: 45;
}

.platform-nav {
  align-items: center;
  display: flex;
  gap: 24px;
  height: 72px;
  justify-content: space-between;
}

.platform-brand,
.platform-actions,
.platform-links,
.platform-hero-actions,
.platform-note,
.platform-footer-row,
.platform-footer-row nav {
  align-items: center;
  display: flex;
}

.platform-brand {
  color: var(--ph-ink);
  font-size: 22px;
  font-weight: 800;
  gap: 10px;
  text-decoration: none;
}

.platform-brand-mark {
  align-items: center;
  background: var(--ph-blue);
  border-radius: 12px;
  box-shadow: 0 14px 28px rgba(77,73,255,0.22);
  color: #fff;
  display: inline-flex;
  height: 36px;
  justify-content: center;
  width: 36px;
}

.platform-brand-mark svg {
  height: 20px;
  width: 20px;
}

.platform-links {
  gap: 26px;
}

.platform-links a,
.platform-footer a {
  color: var(--ph-muted);
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
}

.platform-actions,
.platform-hero-actions {
  gap: 12px;
}

.platform-btn {
  align-items: center;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  display: inline-flex;
  font: inherit;
  font-size: 16px;
  font-weight: 800;
  justify-content: center;
  min-height: 50px;
  padding: 0 22px;
  text-decoration: none;
  white-space: nowrap;
}

.platform-btn-dark {
  background: var(--ph-ink);
  color: #fff;
}

.platform-btn-blue {
  background: var(--ph-blue);
  color: #fff;
}

.platform-btn-soft {
  background: var(--ph-surface);
  color: var(--ph-ink);
}

.platform-btn-light {
  background: #fff;
  color: var(--ph-ink);
}

.platform-hero {
  background:
    radial-gradient(circle at 84% 16%, rgba(77,73,255,0.13), transparent 22rem),
    linear-gradient(180deg, #fff 0%, #F7F7F8 100%);
  padding: 74px 0 54px;
}

.platform-hero-grid {
  align-items: center;
  display: grid;
  gap: 58px;
  grid-template-columns: minmax(0, 1.04fr) minmax(360px, .96fr);
}

.platform-eyebrow {
  background: var(--ph-lavender);
  border-radius: 999px;
  color: var(--ph-blue);
  display: inline-flex;
  font-size: 13px;
  font-weight: 800;
  min-height: 34px;
  padding: 0 14px;
  align-items: center;
}

.platform-hero h1,
.platform-section-head h2,
.platform-blue-band h2,
.platform-cta h2 {
  color: var(--ph-ink);
  font-size: clamp(46px, 6.6vw, 86px);
  font-weight: 800;
  letter-spacing: 0;
  line-height: .96;
  margin: 22px 0 0;
}

.platform-lede {
  color: var(--ph-muted);
  font-size: 21px;
  font-weight: 500;
  line-height: 1.52;
  margin: 28px 0 34px;
  max-width: 640px;
}

.platform-note {
  color: var(--ph-muted);
  font-size: 14px;
  font-weight: 700;
  gap: 9px;
  margin: 20px 0 0;
}

.platform-note svg {
  color: var(--ph-blue);
  height: 19px;
  width: 19px;
}

.platform-product-shot {
  min-height: 680px;
  position: relative;
}

.platform-app-frame {
  background: #fff;
  border: 1px solid rgba(232,232,236,.9);
  border-radius: 38px;
  box-shadow: 0 34px 80px rgba(17,17,17,.16);
  margin: 0 auto;
  min-height: 610px;
  padding: 28px 18px 18px;
  width: min(370px, 100%);
}

.platform-frame-head {
  align-items: center;
  display: flex;
  justify-content: space-between;
}

.platform-frame-head span,
.platform-supp-row small,
.platform-supp-row em {
  color: var(--ph-muted);
  display: block;
  font-style: normal;
  font-weight: 650;
}

.platform-frame-head strong {
  display: block;
  font-size: 34px;
  font-weight: 800;
  line-height: 1;
}

.platform-avatar {
  align-items: center;
  background: var(--ph-blue);
  border-radius: 14px;
  color: #fff !important;
  display: inline-flex !important;
  font-weight: 800 !important;
  height: 42px;
  justify-content: center;
  width: 42px;
}

.platform-week {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(7, 1fr);
  margin: 24px 0 14px;
}

.platform-week span {
  align-items: center;
  border: 1px solid #cfd0d5;
  border-radius: 999px;
  color: var(--ph-muted);
  display: flex;
  font-size: 12px;
  font-weight: 800;
  height: 30px;
  justify-content: center;
}

.platform-week .done {
  background: var(--ph-blue);
  border-color: var(--ph-blue);
  color: #fff;
}

.platform-week .today {
  background: #fff;
  border-style: dashed;
  color: var(--ph-ink);
  outline: 7px solid var(--ph-surface);
}

.platform-streak {
  font-size: 13px;
  font-weight: 800;
  margin: 0 0 14px;
}

.platform-routine {
  background: #fff;
  border: 1px solid #F0F0F2;
  border-radius: 22px;
  box-shadow: 0 16px 34px rgba(17,17,17,.06);
  margin-top: 12px;
  padding: 14px;
}

.platform-routine-title {
  font-size: 15px;
  font-weight: 800;
  margin-bottom: 12px;
}

.platform-supp-row {
  align-items: center;
  background: var(--ph-surface);
  border-radius: 18px;
  display: grid;
  gap: 12px;
  grid-template-columns: 54px 1fr 28px;
  padding: 10px;
}

.platform-supp-row + .platform-supp-row {
  margin-top: 10px;
}

.platform-supp-row strong {
  color: var(--ph-ink);
  display: block;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.15;
}

.platform-bottle {
  align-items: center;
  background: linear-gradient(155deg, #111 0%, #24242A 50%, #5E7B56 100%);
  border-radius: 14px;
  color: #fff;
  display: flex;
  font-size: 11px;
  font-weight: 800;
  height: 54px;
  justify-content: center;
  width: 54px;
}

.platform-bottle.orange { background: linear-gradient(155deg, #222 0%, #3E2C24 48%, #D88C48 100%); }
.platform-bottle.blue { background: linear-gradient(155deg, #1D2433 0%, #263A64 48%, #7FB8E7 100%); }

.platform-check {
  align-items: center;
  background: var(--ph-ink);
  border-radius: 999px;
  color: #fff;
  display: flex;
  height: 26px;
  justify-content: center;
  width: 26px;
}

.platform-check.empty {
  background: #D0D0D2;
}

.platform-floating-card,
.platform-score-card {
  background: #fff;
  border: 1px solid rgba(232,232,236,.9);
  box-shadow: 0 26px 70px rgba(17,17,17,.14);
  position: absolute;
}

.platform-floating-card {
  border-radius: 24px;
  left: 0;
  padding: 16px;
  top: 82px;
  width: 174px;
}

.platform-floating-icon {
  align-items: center;
  background: var(--ph-lavender);
  border-radius: 16px;
  color: var(--ph-blue);
  display: flex;
  height: 48px;
  justify-content: center;
  width: 48px;
}

.platform-floating-icon svg {
  height: 24px;
  width: 24px;
}

.platform-floating-card strong,
.platform-floating-card span:last-child {
  display: block;
}

.platform-floating-card strong {
  font-size: 17px;
  font-weight: 800;
  line-height: 1.15;
  margin-top: 13px;
}

.platform-floating-card span:last-child {
  color: var(--ph-muted);
  font-size: 13px;
  font-weight: 650;
  margin-top: 6px;
}

.platform-score-card {
  border-radius: 28px;
  bottom: 34px;
  padding: 24px;
  right: 0;
  width: 312px;
}

.platform-score-card h2 {
  font-size: 30px;
  font-weight: 800;
  margin: 0 0 12px;
}

.platform-score-card > span {
  background: var(--ph-lavender);
  border-radius: 999px;
  color: var(--ph-blue);
  display: inline-flex;
  font-weight: 800;
  padding: 10px 16px;
}

.platform-scale {
  display: grid;
  gap: 7px;
  grid-template-columns: repeat(5, 1fr);
  margin: 22px 0 18px;
  padding-bottom: 28px;
  position: relative;
}

.platform-scale i {
  border-radius: 999px;
  display: block;
  height: 18px;
}

.platform-scale i:nth-child(1) { background: #F2D2CF; }
.platform-scale i:nth-child(2) { background: #F6D55D; }
.platform-scale i:nth-child(3) { background: #DFF2CF; }
.platform-scale i:nth-child(4) { background: #BFCDFC; }
.platform-scale i:nth-child(5) { background: #DCC4EF; }

.platform-scale b {
  border-bottom: 16px solid var(--ph-ink);
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  height: 0;
  left: calc(50% - 10px);
  position: absolute;
  top: 28px;
  width: 0;
}

.platform-score-card p {
  color: var(--ph-muted);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.45;
  margin: 0;
}

.platform-trust {
  background: #fff;
  border-bottom: 1px solid var(--ph-line);
  border-top: 1px solid var(--ph-line);
  padding: 18px 0;
}

.platform-trust-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.platform-trust-list span {
  background: var(--ph-surface);
  border-radius: 999px;
  color: var(--ph-muted);
  font-size: 14px;
  font-weight: 800;
  padding: 10px 14px;
}

.platform-section {
  padding: 92px 0;
}

.platform-soft {
  background: #F7F7F8;
}

.platform-section-head {
  margin: 0 auto 42px;
  max-width: 700px;
  text-align: center;
}

.platform-section-head h2,
.platform-blue-band h2,
.platform-cta h2 {
  color: var(--ph-ink);
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1;
  margin: 0;
}

.platform-section-head p,
.platform-blue-band p,
.platform-cta p {
  color: var(--ph-muted);
  font-size: 19px;
  font-weight: 500;
  line-height: 1.5;
  margin: 16px 0 0;
}

.platform-feature-grid,
.platform-steps {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(3, 1fr);
}

.platform-feature-grid article,
.platform-steps article {
  background: #fff;
  border: 1px solid rgba(232,232,236,.9);
  border-radius: 30px;
  box-shadow: 0 14px 30px rgba(17,17,17,.04);
  min-height: 230px;
  padding: 28px;
}

.platform-feature-grid span,
.platform-steps span {
  align-items: center;
  background: var(--ph-lavender);
  border-radius: 999px;
  color: var(--ph-blue);
  display: inline-flex;
  font-weight: 800;
  min-height: 34px;
  padding: 0 12px;
}

.platform-feature-grid h3,
.platform-steps h3 {
  color: var(--ph-ink);
  font-size: 24px;
  font-weight: 800;
  margin: 22px 0 12px;
}

.platform-feature-grid p,
.platform-steps p {
  color: var(--ph-muted);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.45;
  margin: 0;
}

.platform-blue-band {
  background: var(--ph-blue);
  color: #fff;
}

.platform-blue-band .platform-eyebrow {
  background: rgba(255,255,255,.18);
  color: #fff;
}

.platform-blue-band h2,
.platform-blue-band p {
  color: #fff;
}

.platform-blue-band p {
  opacity: .78;
}

.platform-scan-grid {
  align-items: center;
  display: grid;
  gap: 58px;
  grid-template-columns: minmax(0, .96fr) minmax(320px, .74fr);
}

.platform-scan-card {
  background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 34px;
  padding: 26px;
}

.platform-scan-card .platform-supp-row {
  background: #fff;
}

.platform-scan-card ul {
  display: grid;
  gap: 10px;
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
}

.platform-scan-card li {
  background: rgba(255,255,255,.92);
  border-radius: 16px;
  color: var(--ph-ink);
  font-weight: 800;
  padding: 14px;
}

.platform-cta {
  background: #fff;
  padding: 96px 0;
}

.platform-cta-panel {
  background: var(--ph-ink);
  border-radius: 42px;
  color: #fff;
  overflow: hidden;
  padding: 58px;
  position: relative;
}

.platform-cta-panel::after {
  background: var(--ph-blue);
  border-radius: 999px;
  content: "";
  height: 360px;
  opacity: .82;
  position: absolute;
  right: -96px;
  top: -132px;
  width: 360px;
}

.platform-cta h2,
.platform-cta p,
.platform-cta .platform-hero-actions {
  position: relative;
  z-index: 1;
}

.platform-cta h2 {
  color: #fff;
  max-width: 760px;
}

.platform-cta p {
  color: rgba(255,255,255,.74);
  max-width: 720px;
}

.platform-footer {
  background: #fff;
  border-top: 1px solid var(--ph-line);
  padding: 30px 0;
}

.platform-footer-row {
  color: var(--ph-muted);
  font-size: 14px;
  font-weight: 650;
  gap: 24px;
  justify-content: space-between;
}

.platform-footer-row nav {
  gap: 18px;
}

@media (max-width: 980px) {
  .platform-links { display: none; }
  .platform-hero-grid,
  .platform-scan-grid,
  .platform-feature-grid,
  .platform-steps {
    grid-template-columns: 1fr;
  }
  .platform-product-shot { min-height: 780px; }
}

@media (max-width: 700px) {
  .platform-container { width: min(100% - 28px, 1120px); }
  .platform-brand span:last-child { display: none; }
  .platform-actions .platform-btn-soft { display: none; }
  .platform-actions .platform-btn { min-height: 42px; padding: 0 14px; font-size: 14px; }
  .platform-hero { padding-top: 52px; }
  .platform-hero h1 { font-size: 46px; }
  .platform-hero-actions { align-items: stretch; flex-direction: column; }
  .platform-product-shot { min-height: auto; }
  .platform-floating-card,
  .platform-score-card {
    margin-top: 14px;
    position: relative;
    width: 100%;
  }
  .platform-floating-card { left: auto; top: auto; }
  .platform-score-card { bottom: auto; right: auto; }
  .platform-cta-panel { border-radius: 30px; padding: 32px 20px; }
  .platform-footer-row { align-items: flex-start; flex-direction: column; }
}

/* --- Platform workspace v3: landing + mobile app convergence --- */
:root {
  --ph-navy: #111111;
  --ph-purple: #4D49FF;
  --ph-blue: #4D49FF;
  --ph-mint: #79D857;
  --ph-bg: #F4F4F5;
  --ph-surface: #F4F4F5;
  --ph-line: #E8E8EC;
  --ph-muted: #6F7179;
  --ph-lavender: #EFEDFF;
  --ph-ink: #111111;
}

body:not(.platform-entry) {
  background:
    radial-gradient(circle at 14% 4%, rgba(77, 73, 255, .08), transparent 30rem),
    #F7F7F8;
  color: var(--ph-ink);
  font-family: "Figtree", Inter, ui-sans-serif, system-ui, sans-serif !important;
}

body:not(.platform-entry) [style*="Poppins"],
body:not(.platform-entry) [style*="Nunito"] {
  font-family: inherit !important;
}

.sidebar {
  width: 264px;
  padding: 12px 10px;
  background: rgba(255, 255, 255, .94);
  border-right: 1px solid var(--ph-line);
  box-shadow: none;
}

.sidebar > .px-5.py-5 {
  padding: 12px 12px 28px;
}

.sidebar-nav-item {
  min-height: 48px;
  margin: 3px 0;
  padding: 0 15px;
  border-radius: 16px;
  color: var(--ph-muted);
  font-size: 15px;
  font-weight: 700;
}

.sidebar-nav-item:hover {
  color: var(--ph-ink);
  background: var(--ph-soft);
}

.sidebar-nav-item.active {
  color: var(--ph-blue);
  background: var(--ph-lavender);
  box-shadow: none;
}

.sidebar-nav-item.active iconify-icon,
.sidebar-nav-item.active svg {
  color: var(--ph-blue);
}

.app-content {
  min-height: 100vh;
  background: transparent;
}

.ph-shell-topbar {
  min-height: 72px;
  border-bottom: 1px solid rgba(232, 232, 236, .9);
  background: rgba(247, 247, 248, .88);
  backdrop-filter: blur(18px);
}

.ph-profile-chip {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: var(--ph-blue);
  box-shadow: 0 14px 28px rgba(77, 73, 255, .2);
}

.app-main {
  width: min(100% - 32px, 1320px);
  max-width: none !important;
  margin-right: auto;
  margin-left: auto;
  padding: 28px 0 116px;
}

.ph-page-title {
  color: var(--ph-ink) !important;
  font-size: clamp(38px, 4vw, 56px);
  font-weight: 800;
  line-height: 1;
}

.ph-eyebrow {
  margin-bottom: 7px;
  color: var(--ph-blue) !important;
  font-size: 13px;
  font-weight: 800;
}

.app-main > .flex.items-start.justify-between.mb-8,
.app-main > .flex.items-center.justify-between.mb-8 {
  min-height: 112px;
  margin-bottom: 26px !important;
  padding: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.ph-card {
  padding: 24px;
  border: 1px solid rgba(232, 232, 236, .88);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 16px 38px rgba(17, 17, 17, .045);
}

.ph-card:hover {
  box-shadow: 0 18px 44px rgba(17, 17, 17, .065);
}

.ph-btn {
  min-height: 50px;
  padding: 0 22px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 700;
}

.ph-btn-navy,
.ph-btn-purple {
  color: #fff !important;
  background: var(--ph-ink) !important;
  box-shadow: 0 16px 32px rgba(17, 17, 17, .12);
}

.ph-btn-ghost,
.ph-btn-outline {
  color: var(--ph-ink) !important;
  background: var(--ph-soft) !important;
}

.ph-input {
  min-height: 54px;
  border: 1px solid transparent !important;
  border-radius: 16px;
  background: var(--ph-soft) !important;
  font-size: 15px;
  font-weight: 600;
}

.ph-input:focus {
  border-color: var(--ph-blue) !important;
  background: #fff !important;
  box-shadow: 0 0 0 4px rgba(77, 73, 255, .1) !important;
}

.auth-modal-box {
  border-radius: 28px 28px 0 0;
  box-shadow: 0 -24px 70px rgba(17, 17, 17, .16);
}

.bottom-nav {
  border-radius: 26px 26px 0 0;
}

.bottom-nav-item {
  border-radius: 18px;
}

.bottom-nav-item.active {
  color: var(--ph-ink);
  background: var(--ph-soft);
}

body[data-page="stack"] #supGrid {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
}

body[data-page="stack"] #supGrid .ph-card {
  border-radius: 24px;
}

body[data-page="stack"] #supGrid .ph-card img,
body[data-page="stack"] #supGrid .ph-card > div:first-child {
  height: 188px !important;
  border-radius: 18px;
}

body[data-page="stack"] #bloodTestList > div,
body[data-page="today"] #scheduleList > div {
  border-radius: 18px;
  background: var(--ph-soft);
}

body[data-page="today"] #streakCard {
  color: var(--ph-ink);
  background: #fff;
}

body[data-page="today"] #streakCard p,
body[data-page="today"] #streakCard iconify-icon,
body[data-page="today"] #streakDays {
  color: var(--ph-ink) !important;
}

body[data-page="today"] #streakCard iconify-icon {
  color: #F04C32 !important;
}

body[data-page="today"] .circular-chart text {
  fill: var(--ph-ink) !important;
}

body[data-page="today"] .grid.grid-cols-2.lg\:grid-cols-4 > .ph-card {
  min-height: 154px;
}

.ph-dashboard-alignment-card {
  min-width: 0;
  min-height: 154px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.ph-dashboard-alignment-label {
  margin: 10px 0 17px;
  color: var(--ph-ink);
  font-size: clamp(25px, 2.4vw, 34px);
  font-weight: 800;
  line-height: 1;
}

.ph-dashboard-alignment-scale {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 7px;
  padding-bottom: 24px;
}

.ph-dashboard-alignment-scale > span {
  height: 18px;
  border-radius: 999px;
}

.ph-dashboard-alignment-scale .is-poor { background: #F2D2CE; }
.ph-dashboard-alignment-scale .is-needs { background: #F6D55D; }
.ph-dashboard-alignment-scale .is-good { background: #DCEFCF; }
.ph-dashboard-alignment-scale .is-very-good { background: #BFCDFC; }
.ph-dashboard-alignment-scale .is-excellent { background: #D9C7EF; }

.ph-dashboard-alignment-scale > b {
  position: absolute;
  top: 27px;
  width: 0;
  height: 0;
  border-right: 8px solid transparent;
  border-bottom: 14px solid var(--ph-ink);
  border-left: 8px solid transparent;
  transform: translateX(-50%);
  transition: left .28s ease;
}

.ph-web-week-card {
  padding: 22px 24px;
  border: 1px solid var(--ph-line);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 16px 38px rgba(17, 17, 17, .045);
}

.ph-web-week-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}

.ph-web-week-head h2 {
  margin: 0;
  color: var(--ph-ink);
  font-size: 20px;
  font-weight: 800;
}

.ph-web-week-head > span {
  color: var(--ph-muted);
  font-size: 12px;
  font-weight: 600;
}

.ph-web-week-strip {
  display: grid;
  grid-template-columns: repeat(7, minmax(54px, 1fr));
  gap: 10px;
}

.ph-web-week-day {
  min-width: 0;
  display: grid;
  justify-items: center;
  gap: 7px;
  padding: 8px 4px;
  border: 2px solid transparent;
  border-radius: 18px;
}

.ph-web-week-day.is-today {
  border-color: var(--ph-line);
  background: #fff;
}

.ph-web-week-label {
  color: var(--ph-muted);
  font-size: 12px;
  font-weight: 700;
}

.ph-web-week-marker {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1.5px solid #C8C9CE;
  border-radius: 999px;
  color: var(--ph-muted);
  font-size: 13px;
  font-weight: 700;
}

.ph-web-week-day.is-empty:not(.is-today) .ph-web-week-marker,
.ph-web-week-day.is-partial .ph-web-week-marker {
  border-style: dashed;
}

.ph-web-week-day.is-complete .ph-web-week-marker {
  border-color: var(--ph-blue);
  color: #fff;
  background: var(--ph-blue);
}

.ph-web-week-day.is-partial .ph-web-week-marker {
  border-color: #A8A6F8;
  color: var(--ph-blue);
  background: var(--ph-lavender);
}

.ph-web-week-day.is-future .ph-web-week-marker {
  color: #8B8D94;
  background: #fff;
}

body[data-page="ask"] textarea {
  min-height: 150px;
}

body[data-page="ask"] #historyList > div {
  border: 1px solid var(--ph-line);
  border-radius: 18px;
  background: #fff;
}

body[data-page="profile"] #avatarContainer {
  width: 96px !important;
  height: 96px !important;
  border-radius: 24px !important;
}

body[data-page="profile"] details.ph-card,
body[data-page="subscription"] .ph-card,
body[data-page="ask"] .ph-card,
body[data-page="today"] .ph-card {
  border-radius: 24px;
}

body[data-page="subscription"] #plansGrid {
  gap: 20px;
}

body[data-page="subscription"] #plansGrid > .ph-card {
  min-height: 100%;
}

@media (min-width: 768px) {
  .auth-modal-backdrop {
    align-items: center;
    padding: 24px;
  }

  .auth-modal-box {
    border-radius: 28px;
  }
}

@media (min-width: 1024px) {
  .app-content {
    margin-left: 264px;
  }

  .ph-shell-topbar {
    min-height: 76px;
    justify-content: flex-end;
    padding: 0 max(32px, calc((100% - 1320px) / 2));
  }

  .ph-shell-topbar > div:first-child {
    display: none;
  }

  .app-main {
    width: min(100% - 64px, 1320px);
    padding: 34px 0 72px;
  }

  body[data-page="profile"] .app-main,
  body[data-page="ask"] .app-main {
    width: min(100% - 64px, 1120px);
  }

  body[data-page="ask"] #chatInterface {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(320px, .8fr);
    gap: 22px;
    align-items: start;
  }

  body[data-page="ask"] #chatInterface > .ph-card {
    grid-column: 1;
  }

  body[data-page="ask"] #historySection {
    grid-column: 2;
    grid-row: 1 / span 2;
    position: sticky;
    top: 100px;
    padding: 24px;
    border: 1px solid var(--ph-line);
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 16px 38px rgba(17, 17, 17, .045);
  }
}

/* One-off scan: public desktop composition without hero overlap. */
.ph-scan-page header.sticky {
  border-color: rgba(232, 232, 236, .85) !important;
  background: rgba(255, 255, 255, .9) !important;
  backdrop-filter: blur(18px);
}

.ph-scan-page header > div {
  min-height: 72px;
  max-width: 1120px !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

.ph-scan-page header a[href="index.html"] .w-8.h-8 {
  width: 36px !important;
  height: 36px !important;
  border-radius: 12px !important;
  background: var(--ph-blue) !important;
  box-shadow: 0 14px 28px rgba(77, 73, 255, .22);
}

.ph-scan-page .scan-promo-gradient {
  padding: 58px 20px 62px !important;
  border-radius: 0 !important;
  background:
    radial-gradient(circle at 82% 12%, rgba(255, 255, 255, .2), transparent 20rem),
    var(--ph-blue) !important;
}

.ph-scan-page .scan-promo-gradient h1 {
  max-width: 780px;
  margin-right: auto;
  margin-left: auto;
  font-family: inherit !important;
  font-size: clamp(42px, 6vw, 68px) !important;
  font-weight: 800 !important;
  line-height: 1;
}

.ph-scan-page .scan-promo-gradient p {
  max-width: 660px;
  font-size: 18px;
  line-height: 1.5;
}

.ph-scan-page main,
body:has(#stepUpload) main {
  width: min(100% - 40px, 1120px);
  max-width: 1120px !important;
  margin-top: 0 !important;
  padding: 38px 0 72px !important;
}

.ph-scan-page .ph-card {
  border-radius: 24px;
}

.ph-scan-page #supplementSlots > div {
  border-color: var(--ph-line) !important;
  border-radius: 20px !important;
  background: var(--ph-soft);
}

.ph-scan-page #addSupplementBtn {
  min-height: 50px;
  border: 1px dashed #B9BAC1 !important;
  border-radius: 999px !important;
  color: var(--ph-muted) !important;
  background: #fff;
}

.ph-scan-page #scanBtn,
.ph-scan-page #payBtn,
.ph-scan-page #wizardContinueBtn {
  background: var(--ph-ink) !important;
}

.ph-scan-page #stepPreview,
.ph-scan-page #stepWizard,
.ph-scan-page #stepResult {
  max-width: 920px;
  margin-right: auto;
  margin-left: auto;
}

@media (min-width: 900px) {
  .ph-scan-page #stepUpload:not(.hidden) {
    display: grid;
    grid-template-columns: minmax(0, 1.28fr) minmax(320px, .72fr);
    gap: 24px;
    align-items: start;
  }

  .ph-scan-page #stepUpload > .ph-card {
    margin-bottom: 0 !important;
  }

  .ph-scan-page #stepUpload > .ph-card:last-child {
    position: sticky;
    top: 98px;
  }
}

/* Goal wizard and support-auth pages share the same public design language. */
#wizardContent {
  background:
    radial-gradient(circle at 16% 12%, rgba(77, 73, 255, .1), transparent 26rem),
    #F7F7F8;
}

#wizardContent > .bg-white.border-b {
  position: sticky;
  top: 0;
  z-index: 30;
  max-width: none !important;
  padding-right: max(20px, calc((100% - 1120px) / 2));
  padding-left: max(20px, calc((100% - 1120px) / 2));
  background: rgba(255, 255, 255, .9) !important;
  backdrop-filter: blur(18px);
}

#wizardContent > .flex-1 > .w-full {
  max-width: 1120px !important;
}

#wizardContent .fade-in:not(.hidden) {
  border: 1px solid var(--ph-line);
  border-radius: 28px;
  box-shadow: 0 18px 48px rgba(17, 17, 17, .055);
}

.ph-auth-page {
  background:
    radial-gradient(circle at 22% 18%, rgba(77, 73, 255, .13), transparent 25rem),
    #F7F7F8 !important;
}

.ph-auth-card {
  max-width: 470px;
  border: 1px solid var(--ph-line);
  border-radius: 30px;
  box-shadow: 0 26px 70px rgba(17, 17, 17, .09);
}

@media (max-width: 700px) {
  .ph-scan-page main,
  body:has(#stepUpload) main {
    width: min(100% - 28px, 1120px);
    padding-top: 24px !important;
  }

  .ph-scan-page .scan-promo-gradient {
    padding: 44px 18px 46px !important;
  }

  .ph-scan-page .scan-promo-gradient h1 {
    font-size: 42px !important;
  }

  .app-main > .flex.items-start.justify-between.mb-8,
  .app-main > .flex.items-center.justify-between.mb-8 {
    min-height: auto;
    padding-top: 12px;
  }

  .ph-web-week-card {
    padding: 18px 12px;
  }

  .ph-web-week-head > span {
    display: none;
  }

  .ph-web-week-strip {
    gap: 3px;
    grid-template-columns: repeat(7, minmax(38px, 1fr));
  }

  .ph-web-week-marker {
    width: 30px;
    height: 30px;
  }
}

/* Profile form clarity */
body[data-page="profile"] .ph-profile-fields {
  padding-top: 8px;
}

body[data-page="profile"] .ph-profile-detail-grid {
  gap: 22px 24px !important;
}

body[data-page="profile"] .ph-profile-fields .ph-label {
  margin-bottom: 8px;
  color: #565861;
  font-weight: 700;
}

body[data-page="profile"] .ph-profile-fields .ph-input {
  border: 1.5px solid #d8d9df !important;
  background: #fff !important;
  box-shadow: 0 1px 2px rgba(17, 17, 17, 0.03);
}

body[data-page="profile"] .ph-profile-fields .ph-input:hover {
  border-color: #b9bbc4 !important;
}

body[data-page="profile"] .ph-profile-fields .ph-input:focus {
  border-color: var(--ph-blue) !important;
  background: #fff !important;
  box-shadow: 0 0 0 4px rgba(77, 73, 255, 0.1) !important;
}

body[data-page="profile"] .ph-profile-meals {
  margin-top: 26px;
  padding-top: 24px;
  border-top: 1px solid var(--ph-line);
}

body[data-page="profile"] .ph-profile-meals .grid {
  gap: 16px;
}

body[data-page="profile"] #heightImperial .flex {
  gap: 12px;
}
