/* ============ OurMedHistory base styles ============ */
:root { --shell-max: 480px; }

html, body { font-family: 'Inter', system-ui, sans-serif; }
.font-display { font-family: 'Plus Jakarta Sans', 'Inter', sans-serif; }

[x-cloak] { display: none !important; }

.card-stat-mini {
  display:flex; flex-direction:column; align-items:center; justify-content:center;
  gap:6px; padding:12px 8px; border-radius:14px; background:#fff;
  box-shadow:0 2px 8px rgba(0,0,0,.04);
}

/* Mobile-first phone shell. On md+ widens up gracefully */
.phone-shell-md {
  max-width: var(--shell-max);
  margin: 0 auto;
  min-height: 100vh;
  padding-bottom: 96px;
  background: #f3f4f6;
  position: relative;
}
@media (min-width: 768px) {
  :root { --shell-max: 720px; }
  .phone-shell-md { padding: 0 0 96px 0; }
}
@media (min-width: 1024px) {
  :root { --shell-max: 980px; }
  body { background: linear-gradient(180deg,#eef2ff 0%,#f3f4f6 100%); }
  .phone-shell-md {
    margin: 24px auto; min-height: calc(100vh - 48px);
    border-radius: 24px;
    box-shadow: 0 12px 40px rgba(0,0,0,.06);
    overflow: hidden; background: #f3f4f6;
  }
}

.topbar-md {
  position: sticky; top: 0; z-index: 30;
  background: rgba(255,255,255,.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 14px;
  border-bottom: 1px solid rgba(0,0,0,.05);
}

.bottom-nav-md {
  position: sticky; bottom: 0; z-index: 30;
  display: grid; grid-template-columns: 1fr 1fr 80px 1fr 1fr;
  align-items: end;
  padding: 8px 8px 10px; gap: 4px;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid rgba(0,0,0,.05);
}
.bn {
  display:flex; flex-direction:column; align-items:center; justify-content:center;
  gap:2px; font-size:10px; padding:6px 0; opacity:.75; color:inherit;
}
.bn:hover { opacity:1; }
.bn-fab {
  width:64px; height:64px; border-radius:9999px;
  display:flex; align-items:center; justify-content:center;
  background: linear-gradient(135deg,#7c3aed 0%,#06b6d4 100%);
  color:#fff; box-shadow: 0 8px 24px rgba(124,58,237,.35);
  transform: translateY(-12px); margin: 0 auto;
}

/* Lists / cards */
.list-row {
  display:flex; align-items:center; gap:12px;
  background:#fff; border-radius:14px; padding:12px 14px;
  box-shadow:0 1px 4px rgba(0,0,0,.04); margin-bottom:8px;
}
.list-row__avatar {
  width:42px; height:42px; border-radius:12px;
  display:flex; align-items:center; justify-content:center;
  background:#ede9fe; color:#6d28d9; flex-shrink:0; overflow:hidden;
}
.list-row__avatar img { width:100%; height:100%; object-fit:cover; }
.list-row__txt { flex:1; min-width:0; }
.list-row__title { font-weight:600; }
.list-row__sub { font-size:12px; opacity:.7; }

.allergy-banner {
  background: linear-gradient(135deg, #fef2f2, #fee2e2);
  border: 1px solid #fecaca;
  color: #991b1b;
  border-radius: 14px;
  padding: 12px 14px;
  display: flex; align-items: center; gap: 10px;
  margin: 8px 0;
}

/* Star rating */
.stars { display:flex; gap:2px; }
.stars svg { width:14px; height:14px; }

.kbd-flag { font-size:18px; line-height:1; }

/* Empty state */
.empty {
  text-align:center; padding:40px 20px; opacity:.7;
}
