.health-app {
  background: #f5f7fb;
  color: #1f2937;
}

.admin-app {
  --admin-header-height: 82px;
}

html.admin-dashboard-page,
html.admin-dashboard-page body.admin-app,
html.admin-dashboard-page .container-scroller,
html.admin-dashboard-page .main-panel,
html.admin-dashboard-page .admin-content,
html.admin-dashboard-page .sidebar .nav,
html.admin-dashboard-page .table-responsive,
html.admin-dashboard-page .admin-compact-list {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

html.admin-dashboard-page::-webkit-scrollbar,
html.admin-dashboard-page body.admin-app::-webkit-scrollbar,
html.admin-dashboard-page .container-scroller::-webkit-scrollbar,
html.admin-dashboard-page .main-panel::-webkit-scrollbar,
html.admin-dashboard-page .admin-content::-webkit-scrollbar,
html.admin-dashboard-page .sidebar .nav::-webkit-scrollbar,
html.admin-dashboard-page .table-responsive::-webkit-scrollbar,
html.admin-dashboard-page .admin-compact-list::-webkit-scrollbar {
  display: none;
  height: 0;
  width: 0;
}

html,
body.health-app,
body.health-app * {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

html::-webkit-scrollbar,
body.health-app::-webkit-scrollbar,
body.health-app *::-webkit-scrollbar {
  display: none;
  height: 0;
  width: 0;
}

.health-app a {
  text-decoration: none;
}

.health-brand,
.health-brand-mini {
  align-items: center;
  color: #111827;
  display: inline-flex;
  font-weight: 800;
  gap: 10px;
  letter-spacing: 0;
}

.health-brand img,
.health-brand-mini img,
.auth-brand img,
.info-footer-brand-title img,
.system-logo-image {
  display: block;
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.health-brand-mark,
.health-brand-mini {
  align-items: center;
  border-radius: 8px;
  box-shadow: 0 0 0 1px rgba(17, 24, 39, .08);
  display: inline-flex;
  flex: 0 0 34px;
  height: 34px;
  justify-content: center;
  overflow: hidden;
  width: 34px;
}

.health-brand-mark i,
.health-brand-mini i {
  display: none;
}

.health-brand-mini {
  padding: 0;
}

.navbar .dropdown-bordered {
  border: 1px solid #d6dde8;
  border-radius: 8px;
  color: #364152;
  font-weight: 600;
  min-width: auto;
}

.health-app .btn {
  --bs-btn-font-size: 13px;
  --bs-btn-padding-x: 14px;
  --bs-btn-padding-y: 9px;
  align-items: center;
  border-radius: 8px;
  display: inline-flex;
  font-weight: 800;
  gap: 6px;
  justify-content: center;
  line-height: 1.15;
  min-height: 36px;
}

.health-app .btn.btn-sm {
  --bs-btn-font-size: 12px;
  --bs-btn-padding-x: 11px;
  --bs-btn-padding-y: 7px;
  min-height: 30px;
}

.health-app .btn.btn-icon {
  flex: 0 0 38px;
  height: 38px;
  min-height: 38px;
  padding: 0;
  width: 38px;
}

.health-app .btn.btn-icon-text .btn-icon-prepend {
  margin-right: 0;
}

.sidebar .nav .nav-item .nav-link {
  min-height: 40px;
}

.health-app .sidebar .nav .nav-item {
  padding: 2px 10px;
}

.health-app .sidebar .nav .nav-item .nav-link,
.health-app .sidebar .nav .nav-item .nav-link .menu-title,
.health-app .sidebar .nav .nav-item .nav-link .menu-icon,
.health-app.sidebar-icon-only .sidebar .nav .nav-item .nav-link i.menu-icon {
  color: #94a3b8 !important;
}

.health-app .sidebar .nav .nav-item .nav-link {
  border-radius: 8px;
  padding-bottom: 10px;
  padding-top: 10px;
}

.health-app .sidebar .nav .nav-item .nav-link:hover,
.health-app .sidebar .nav .nav-item .nav-link:focus {
  background: #f8fafc;
  color: #64748b !important;
}

.health-app .sidebar .nav .nav-item .nav-link:hover .menu-title,
.health-app .sidebar .nav .nav-item .nav-link:hover .menu-icon,
.health-app .sidebar .nav .nav-item .nav-link:focus .menu-title,
.health-app .sidebar .nav .nav-item .nav-link:focus .menu-icon {
  color: #64748b !important;
}

.health-app .sidebar .nav .nav-item .nav-link.active,
.health-app .sidebar .nav .nav-item.active .nav-link {
  background: var(--ng-health-primary-subtle);
  box-shadow: inset 3px 0 0 var(--ng-health-primary);
  color: var(--ng-health-primary) !important;
}

.health-app .sidebar .nav .nav-item .nav-link.active .menu-title,
.health-app .sidebar .nav .nav-item .nav-link.active .menu-icon,
.health-app .sidebar .nav .nav-item.active .nav-link .menu-title,
.health-app .sidebar .nav .nav-item.active .nav-link .menu-icon,
.health-app.sidebar-icon-only .sidebar .nav .nav-item .nav-link.active i.menu-icon,
.health-app.sidebar-icon-only .sidebar .nav .nav-item.active .nav-link i.menu-icon {
  color: var(--ng-health-primary) !important;
}

.health-app.sidebar-icon-only .sidebar .nav .nav-item {
  padding: 3px 8px;
}

.health-app.sidebar-icon-only .sidebar .nav .nav-item .nav-link {
  border-radius: 8px;
  padding: 10px 0;
}

.sidebar .nav .nav-item .nav-link .menu-title {
  white-space: normal;
}

.admin-app .container-scroller {
  min-height: 100vh;
  overflow: visible !important;
}

body.admin-app > .container-scroller > .navbar.default-layout.fixed-top {
  bottom: auto !important;
  height: var(--admin-header-height);
  left: 0 !important;
  margin: 0 !important;
  position: fixed !important;
  right: 0 !important;
  top: 0 !important;
  transform: none !important;
  width: 100% !important;
  z-index: 1200 !important;
}

body.admin-app > .container-scroller > .navbar.default-layout.fixed-top .navbar-brand-wrapper,
body.admin-app > .container-scroller > .navbar.default-layout.fixed-top .navbar-menu-wrapper {
  min-height: var(--admin-header-height);
}

body.admin-app > .container-scroller > .navbar.default-layout.fixed-top .navbar-menu-wrapper > .navbar-nav:first-child,
body.admin-app > .container-scroller > .navbar.default-layout.fixed-top .navbar-menu-wrapper > .navbar-nav:first-child > .nav-item {
  align-self: flex-start;
  position: relative !important;
  top: 0;
  transform: none !important;
  z-index: 1202;
}

body.admin-app > .container-scroller > .navbar.default-layout.fixed-top .welcome-text,
body.admin-app > .container-scroller > .navbar.default-layout.fixed-top .welcome-sub-text {
  display: block !important;
  position: relative !important;
  transform: none !important;
  z-index: 1203;
}

.admin-app .page-body-wrapper {
  padding-top: var(--admin-header-height) !important;
}

@media (min-width: 992px) {
  .health-app .sidebar {
    bottom: 0;
    height: auto;
    left: 0;
    overflow: hidden;
    position: fixed;
    top: 82px;
  }

  .health-app .sidebar .nav {
    height: 100%;
    margin-bottom: 0;
    overflow-x: hidden;
    overflow-y: auto;
    padding-bottom: 24px;
  }

  .health-app .main-panel {
    margin-left: 220px;
    width: calc(100% - 220px);
  }

  .health-app.sidebar-icon-only .main-panel {
    margin-left: 70px;
    width: calc(100% - 70px);
  }
}

@media (min-width: 992px) {
  .admin-app .navbar .navbar-brand-wrapper,
  .admin-app .navbar .navbar-menu-wrapper {
    position: relative;
    z-index: 1201;
  }

  .admin-app .sidebar {
    bottom: 0;
    height: 100vh;
    left: 0;
    min-height: 100vh;
    overflow: visible;
    padding-top: var(--admin-header-height);
    position: fixed;
    top: 0;
    z-index: 1190;
  }

  .admin-app .sidebar .nav {
    height: calc(100vh - var(--admin-header-height));
    margin-bottom: 0;
    max-height: calc(100vh - var(--admin-header-height));
    overflow-x: hidden;
    overflow-y: auto;
    padding-bottom: 34px;
  }

  .admin-app .main-panel {
    margin-left: 220px;
    width: calc(100% - 220px);
  }

  .admin-app.sidebar-icon-only .main-panel {
    margin-left: 70px;
    width: calc(100% - 70px);
  }
}

@media (max-width: 991px) {
  .health-app .page-body-wrapper {
    padding-top: 72px;
  }

  .health-app .sidebar-offcanvas {
    max-height: calc(100vh - 72px);
    min-height: calc(100vh - 72px);
    top: 72px;
  }

  .health-app .sidebar-offcanvas .nav {
    margin-bottom: 0;
    padding-top: 0;
  }

  .health-app .sidebar .nav:not(.sub-menu) > .nav-item:first-child {
    margin-top: 0;
  }

  .admin-app .sidebar-offcanvas {
    height: calc(100vh - var(--admin-header-height));
    max-height: calc(100vh - var(--admin-header-height));
    overflow-y: auto;
    top: var(--admin-header-height);
  }
}

.page-panel-expanded {
  flex: 0 0 100%;
  max-width: 100%;
  width: 100%;
}

.auth-page {
  min-height: 100vh;
}

.auth-shell {
  align-items: center;
  background: linear-gradient(135deg, #143a5a 0%, #117f73 54%, #2563eb 100%);
  display: flex;
  justify-content: center;
  min-height: 100vh;
  padding: 18px;
}

.auth-panel {
  backdrop-filter: blur(6px);
  background: rgba(255, 255, 255, .94);
  border-radius: 8px;
  box-shadow: 0 22px 60px rgba(17, 24, 39, .22);
  max-width: 400px;
  padding: 28px;
  width: 100%;
}

.auth-brand {
  align-items: center;
  color: #111827;
  display: flex;
  font-size: 18px;
  font-weight: 800;
  gap: 10px;
  margin-bottom: 20px;
}

.auth-panel h1 {
  color: #111827;
  font-size: 24px;
  font-weight: 800;
  margin-bottom: 8px;
}

.auth-panel p {
  color: #6b7280;
  margin-bottom: 16px;
}

.auth-form {
  margin-top: 14px;
}

.auth-password-field {
  position: relative;
}

.auth-password-field .form-control {
  padding-right: 50px;
}

.auth-password-toggle {
  align-items: center;
  background: transparent;
  border: 0;
  border-radius: 8px;
  color: #64748b;
  display: inline-flex;
  font-size: 20px;
  height: 38px;
  justify-content: center;
  padding: 0;
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 38px;
}

.auth-password-toggle:hover,
.auth-password-toggle:focus {
  background: var(--ng-health-primary-subtle);
  color: var(--ng-health-primary);
}

.auth-password-toggle:focus {
  outline: 3px solid rgba(15, 118, 110, .2);
  outline-offset: 2px;
}

.auth-message {
  background: #fff1f2;
  border: 1px solid #fecdd3;
  border-radius: 8px;
  color: #9f1239;
  font-size: 13px;
  margin-bottom: 16px;
  padding: 12px 14px;
}

.auth-switch {
  align-items: center;
  color: #6b7280;
  display: flex;
  font-size: 13px;
  gap: 8px;
  justify-content: center;
  margin-top: 18px;
}

.auth-switch a {
  color: #117f73;
  font-weight: 800;
}

.health-app .content-wrapper {
  background: #f5f7fb;
}

body[data-page="dashboard"] .page-panel:not(#overview):not(#metrics),
body[data-page="profile"] .page-panel:not(#profile),
body[data-page="metrics"] .page-panel:not(#metrics),
body[data-page="progress"] .page-panel:not(#progress),
body[data-page="recommendations"] .page-panel:not(#recommendations),
body[data-page="chat"] .page-panel:not(#chat),
body[data-page="food"] .page-panel:not(#food),
body[data-page="logs"] .page-panel:not(#logs),
body[data-page="symptoms"] .page-panel:not(#symptoms),
body[data-page="analytics"] .page-panel:not(#analytics),
body[data-page="feedback"] .page-panel:not(#feedback) {
  display: none !important;
}

body[data-page="profile"] #profile,
body[data-page="metrics"] #metrics,
body[data-page="progress"] #progress,
body[data-page="recommendations"] #recommendations,
body[data-page="chat"] #chat,
body[data-page="food"] #food,
body[data-page="logs"] #logs,
body[data-page="symptoms"] #symptoms,
body[data-page="analytics"] #analytics,
body[data-page="feedback"] #feedback {
  flex: 0 0 100%;
  max-width: 100%;
  width: 100%;
}

.health-hero {
  align-items: stretch;
  background: linear-gradient(135deg, #143a5a 0%, #117f73 58%, #2563eb 100%);
  border-radius: 8px;
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(0, 1fr) 290px;
  min-height: 210px;
  overflow: hidden;
  padding: 22px;
  position: relative;
}

.health-hero:before {
  background-image:
    radial-gradient(circle at 15% 20%, rgba(255, 255, 255, .16) 0 1px, transparent 1px),
    radial-gradient(circle at 65% 70%, rgba(255, 255, 255, .12) 0 1px, transparent 1px);
  background-size: 28px 28px, 42px 42px;
  content: "";
  inset: 0;
  opacity: .55;
  position: absolute;
}

.health-hero-content,
.health-hero-panel {
  position: relative;
  z-index: 1;
}

.health-hero-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 830px;
}

.health-eyebrow {
  color: rgba(255, 255, 255, .78);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .04em;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.health-hero h2 {
  color: #fff;
  font-size: 27px;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 16px;
  max-width: 790px;
}

.health-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.health-hero-panel {
  align-items: center;
  align-self: center;
  background: rgba(17, 24, 39, .3);
  border: 1px solid rgba(255, 255, 255, .24);
  border-radius: 8px;
  display: flex;
  gap: 14px;
  min-height: 126px;
  padding: 18px;
}

.hero-plate {
  background: #fff;
  border: 6px solid rgba(255, 255, 255, .55);
  border-radius: 50%;
  box-shadow: 0 18px 40px rgba(7, 23, 42, .24);
  display: grid;
  flex: 0 0 88px;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  height: 88px;
  overflow: hidden;
  width: 88px;
}

.plate-segment {
  display: block;
}

.plate-protein {
  background: #ef7d56;
  grid-row: 1 / span 2;
}

.plate-carb {
  background: #f3c44f;
}

.plate-veg {
  background: #58a55c;
}

.health-card {
  border: 0;
  border-radius: 8px;
  box-shadow: 0 12px 30px rgba(31, 41, 55, .08);
}

.health-card .card-body {
  padding: 24px;
}

.card-subtitle {
  color: #6b7280;
  font-size: 13px;
  margin-bottom: 0;
}

.metric-card .card-body {
  min-height: 148px;
}

.metric-icon {
  align-items: center;
  border-radius: 8px;
  display: inline-flex;
  font-size: 22px;
  height: 38px;
  justify-content: center;
  margin-bottom: 12px;
  width: 38px;
}

.bg-primary-subtle {
  background: #dbeafe;
  color: #1d4ed8;
}

.bg-info-subtle {
  background: #dbeafe;
  color: #1d4ed8;
}

.bg-warning-subtle {
  background: #fef3c7;
  color: #b45309;
}

.bg-danger-subtle {
  background: #fee2e2;
  color: #b91c1c;
}

.metric-label {
  color: #6b7280;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .03em;
  margin-bottom: 7px;
  text-transform: uppercase;
}

.metric-card h3 {
  color: #111827;
  font-weight: 800;
  font-size: 22px;
  margin-bottom: 8px;
}

.daily-calorie-card {
  border-left: 4px solid #117f73;
}

.daily-calorie-card h3 {
  color: #111827;
  font-size: 26px;
  font-weight: 900;
  margin-bottom: 8px;
}

.daily-calorie-split {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 16px;
}

.calorie-split-item {
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 14px;
}

.calorie-split-item span {
  color: #64748b;
  display: block;
  font-size: 12px;
  font-weight: 800;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.calorie-split-item strong {
  color: #111827;
  display: block;
  font-size: 18px;
  font-weight: 900;
  margin-bottom: 4px;
}

.calorie-split-item small,
.daily-calorie-note {
  color: #64748b;
  font-size: 12px;
  font-weight: 700;
}

.calorie-progress-card {
  border-left: 4px solid #2563eb;
}

.calorie-progress-card h3 {
  color: #111827;
  font-size: 21px;
  font-weight: 900;
  margin-bottom: 6px;
}

.calorie-progress-status {
  color: #64748b;
  font-weight: 700;
}

.calorie-progress-status.is-low {
  color: #0e7490;
}

.calorie-progress-status.is-good {
  color: #15803d;
}

.calorie-progress-status.is-high {
  color: #dc2626;
  font-weight: 800;
}

.calorie-progress-layout {
  align-items: center;
  display: grid;
  gap: 20px;
  grid-template-columns: minmax(210px, 280px) minmax(0, 1fr);
}

.calorie-ring-panel {
  align-items: center;
  display: grid;
  gap: 12px;
  justify-items: center;
}

.calorie-ring {
  --progress: 0%;
  --ring-color: #2563eb;
  align-items: center;
  background: conic-gradient(var(--ring-color) var(--progress), #e5e7eb 0);
  border-radius: 50%;
  display: flex;
  height: 160px;
  justify-content: center;
  width: 160px;
}

.calorie-ring.progress-low {
  --ring-color: #0e7490;
}

.calorie-ring.progress-good {
  --ring-color: #16a34a;
}

.calorie-ring.progress-high {
  --ring-color: #dc2626;
}

.calorie-ring.progress-neutral {
  --ring-color: #94a3b8;
}

.calorie-ring.progress-low .calorie-ring-inner strong {
  color: #0e7490;
}

.calorie-ring.progress-low .calorie-ring-inner span {
  color: #0e7490;
}

.calorie-ring.progress-good .calorie-ring-inner strong {
  color: #15803d;
}

.calorie-ring.progress-good .calorie-ring-inner span {
  color: #15803d;
}

.calorie-ring.progress-high .calorie-ring-inner strong {
  color: #dc2626;
}

.calorie-ring.progress-high .calorie-ring-inner span {
  color: #dc2626;
}

.calorie-ring-inner {
  align-items: center;
  background: #ffffff;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px #e5e7eb;
  display: flex;
  flex-direction: column;
  height: 132px;
  justify-content: center;
  width: 132px;
}

.calorie-ring-inner strong {
  color: #111827;
  font-size: 30px;
  font-weight: 900;
  line-height: 1;
}

.calorie-ring-inner span,
.calorie-ring-summary span {
  color: #64748b;
  font-size: 12px;
  font-weight: 800;
}

.calorie-ring-summary {
  display: grid;
  gap: 4px;
  justify-items: center;
  text-align: center;
}

.calorie-ring-summary strong {
  color: #111827;
  font-size: 18px;
  font-weight: 900;
}

.meal-progress-list {
  display: grid;
  gap: 12px;
}

.meal-progress-item {
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  display: grid;
  gap: 10px;
  padding: 14px;
}

.meal-progress-item div:first-child {
  align-items: center;
  display: flex;
  gap: 12px;
  justify-content: space-between;
}

.meal-progress-item span {
  color: #64748b;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.meal-progress-item strong {
  color: #111827;
  font-size: 15px;
  font-weight: 900;
  text-align: right;
}

.meal-progress-track {
  background: #e5e7eb;
  border-radius: 999px;
  height: 8px;
  overflow: hidden;
}

.meal-progress-track span {
  background: #117f73;
  border-radius: inherit;
  display: block;
  height: 100%;
  transition: width .25s ease;
  width: 0;
}

.status-pill {
  align-items: center;
  background: #eef2ff;
  border-radius: 999px;
  color: var(--ng-health-primary);
  display: inline-flex;
  font-size: 12px;
  font-weight: 700;
  gap: 6px;
  padding: 8px 12px;
  white-space: nowrap;
}

.progress-score-panel {
  background: linear-gradient(135deg, #143a5a, #117f73);
  border-radius: 8px;
  color: #fff;
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: 18px;
}

.progress-score-panel span,
.progress-stat-grid span {
  display: block;
  font-size: 12px;
  font-weight: 800;
  margin-bottom: 6px;
  text-transform: uppercase;
}

.progress-score-panel span {
  color: rgba(255, 255, 255, .76);
}

.progress-score-panel strong {
  display: block;
  font-size: 27px;
  font-weight: 900;
  line-height: 1;
}

.progress-stat-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.progress-stat-grid div {
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 13px;
}

.progress-stat-grid span {
  color: #64748b;
}

.progress-stat-grid strong {
  color: #111827;
  display: block;
  font-size: 18px;
  font-weight: 900;
}

.achievement-list,
.activity-list {
  display: grid;
  gap: 10px;
}

.achievement-item,
.activity-item {
  align-items: center;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  padding: 12px 14px;
}

.achievement-item {
  align-items: flex-start;
}

.achievement-item > div {
  flex: 1 1 auto;
  min-width: 0;
}

.achievement-item i {
  color: #94a3b8;
  flex: 0 0 24px;
  font-size: 22px;
  line-height: 1.2;
}

.achievement-item.earned {
  background: #ecfdf5;
  border-color: #a7f3d0;
}

.achievement-item.earned i {
  color: #047857;
}

.achievement-item strong,
.activity-item strong {
  color: #111827;
  display: block;
  font-size: 14px;
  font-weight: 900;
}

.achievement-item span,
.activity-item span,
.activity-empty {
  color: #64748b;
  display: block;
  font-size: 12px;
}

.achievement-item em,
.activity-item em {
  color: var(--ng-health-primary);
  flex: 0 0 auto;
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
  text-transform: uppercase;
}

.achievement-item > em {
  min-width: 86px;
  text-align: right;
}

.activity-source-note {
  align-items: flex-start;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 8px;
  color: #475569;
  display: flex;
  font-size: 12px;
  font-weight: 800;
  gap: 8px;
  padding: 10px 12px;
}

.activity-source-note i {
  color: var(--ng-health-primary);
  font-size: 18px;
  line-height: 1;
}

.activity-item p {
  color: #64748b;
  font-size: 12px;
  margin: 4px 0 0;
}

.activity-empty {
  background: #f8fafc;
  border: 1px dashed #cbd5e1;
  border-radius: 8px;
  padding: 14px;
  text-align: center;
}

.profile-avatar-image {
  background: #e5e7eb;
  display: inline-block;
  object-fit: cover;
}

.user-dropdown .nav-link {
  align-items: center;
  display: inline-flex;
  justify-content: center;
}

#navProfileImage.profile-avatar-image {
  flex: 0 0 40px;
  height: 40px;
  max-height: 40px;
  max-width: 40px;
  width: 40px;
}

#profileMenuImage.profile-avatar-image {
  display: block;
  height: 72px;
  margin-left: auto;
  margin-right: auto;
  max-height: 72px;
  max-width: 72px;
  width: 72px;
}

.user-dropdown .navbar-dropdown {
  max-width: min(320px, calc(100vw - 32px));
  overflow: hidden;
}

.profile-photo-panel {
  align-items: center;
  background: #f8fafc;
  border: 1px solid #dbe3ef;
  border-radius: 8px;
  display: flex;
  gap: 18px;
  padding: 16px;
}

.profile-photo-preview {
  aspect-ratio: 1;
  background: #e5e7eb;
  border: 3px solid #fff;
  border-radius: 50%;
  box-shadow: 0 8px 22px rgba(17, 24, 39, .12);
  flex: 0 0 96px;
  height: 96px;
  object-fit: cover;
  width: 96px;
}

.profile-photo-copy {
  min-width: 0;
}

.profile-photo-title {
  color: #111827;
  display: block;
  font-size: 15px;
  font-weight: 900;
  margin-bottom: 10px;
}

.profile-photo-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.profile-photo-help {
  align-items: flex-start;
  display: flex;
  flex-direction: column;
  margin-top: 8px;
}

.profile-photo-note {
  color: #64748b;
  display: block;
  font-size: 12px;
  font-weight: 700;
}

.profile-photo-error {
  color: #b91c1c;
  display: block;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.35;
  margin-top: 6px;
}

.profile-print-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.profile-print-sheet {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .96), rgba(255, 255, 255, .98)),
    repeating-linear-gradient(0deg, rgba(226, 232, 240, .45) 0, rgba(226, 232, 240, .45) 1px, transparent 1px, transparent 34px);
  border: 1px solid #dbe3ef;
  border-radius: 8px;
  box-shadow: 0 18px 44px rgba(15, 23, 42, .08);
  color: #111827;
  padding: 24px;
  position: relative;
}

.profile-print-sheet:before {
  background: linear-gradient(90deg, var(--ng-health-primary), #2563eb, #0f766e);
  border-radius: 8px 8px 0 0;
  content: "";
  height: 5px;
  left: -1px;
  position: absolute;
  right: -1px;
  top: -1px;
}

.profile-print-header {
  align-items: flex-start;
  border-bottom: 1px solid #e5e7eb;
  display: flex;
  gap: 18px;
  justify-content: space-between;
  padding-bottom: 20px;
}

.profile-print-identity {
  align-items: center;
  display: flex;
  gap: 16px;
  min-width: 0;
}

.profile-print-avatar {
  aspect-ratio: 1;
  background: #e5e7eb;
  border: 4px solid #fff;
  border-radius: 50%;
  box-shadow: 0 10px 28px rgba(17, 24, 39, .14);
  flex: 0 0 112px;
  height: 112px;
  object-fit: cover;
  width: 112px;
}

.profile-print-identity span,
.profile-print-section-title span,
.profile-print-grid span,
.profile-print-list-block > div > span,
.profile-print-stamp span,
.profile-print-metrics span {
  color: #64748b;
  display: block;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .08em;
  line-height: 1.2;
  text-transform: uppercase;
}

.profile-print-identity h3 {
  color: #111827;
  font-size: 30px;
  font-weight: 900;
  line-height: 1.1;
  margin: 7px 0 6px;
  overflow-wrap: anywhere;
}

.profile-print-identity p {
  color: #475569;
  font-size: 13px;
  font-weight: 800;
  margin: 0;
  overflow-wrap: anywhere;
}

.profile-print-stamp {
  border: 2px solid rgba(15, 118, 110, .38);
  border-radius: 8px;
  color: var(--ng-health-primary);
  flex: 0 0 auto;
  min-width: 130px;
  padding: 11px 14px;
  text-align: center;
}

.profile-print-stamp strong {
  color: var(--ng-health-primary);
  display: block;
  font-size: 16px;
  font-weight: 900;
  margin-top: 4px;
  text-transform: uppercase;
}

.profile-print-metrics {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 18px;
}

.profile-print-metrics div,
.profile-print-grid div,
.profile-print-list-block > div {
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  min-width: 0;
  padding: 14px;
}

.profile-print-metrics strong {
  color: #111827;
  display: block;
  font-size: 22px;
  font-weight: 900;
  line-height: 1.1;
  margin-top: 8px;
  overflow-wrap: anywhere;
}

.profile-print-metrics small {
  color: #64748b;
  display: block;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
  margin-top: 5px;
}

.profile-print-section {
  border-top: 1px solid #e5e7eb;
  margin-top: 22px;
  padding-top: 20px;
}

.profile-print-section-title {
  align-items: center;
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

.profile-print-section-title i {
  color: var(--ng-health-primary);
  font-size: 18px;
}

.profile-print-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.profile-print-grid-wide {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.profile-print-grid strong {
  color: #111827;
  display: block;
  font-size: 15px;
  font-weight: 900;
  line-height: 1.35;
  margin-top: 7px;
  overflow-wrap: anywhere;
}

.profile-print-list-block {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.profile-print-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 10px;
}

.profile-print-tags em,
.profile-print-empty {
  border-radius: 999px;
  display: inline-flex;
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
  line-height: 1.2;
  padding: 7px 9px;
}

.profile-print-tags em {
  background: #e0f2fe;
  color: #075985;
}

.profile-print-tags.warning em {
  background: #fff1f2;
  color: #be123c;
}

.profile-print-tags.food em {
  background: #ecfdf5;
  color: #047857;
}

.profile-print-empty {
  background: #f1f5f9;
  color: #64748b;
}

.profile-edit-offcanvas {
  border-left: 1px solid #dbe3ef;
  box-shadow: -22px 0 44px rgba(15, 23, 42, .18);
  max-width: 100vw;
  width: min(760px, 100vw) !important;
}

.profile-edit-offcanvas .offcanvas-header {
  align-items: flex-start;
  background: #fff;
  border-bottom: 1px solid #e5e7eb;
  gap: 16px;
  padding: 22px 24px;
}

.profile-edit-offcanvas .offcanvas-title {
  color: #111827;
  font-size: 20px;
  font-weight: 900;
  line-height: 1.25;
  margin-top: 4px;
}

.profile-edit-offcanvas .offcanvas-body {
  background: #f8fafc;
  overflow-x: hidden;
  padding: 20px 24px 24px;
}

.profile-edit-offcanvas .profile-photo-panel,
.profile-edit-offcanvas .health-form {
  background: #fff;
}

.profile-edit-offcanvas .health-form {
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 18px;
}

.profile-nutritionist-panel {
  align-items: flex-start;
  background: #f8fafc;
  border: 1px solid #dbe3ef;
  border-left: 4px solid var(--ng-health-primary);
  border-radius: 8px;
  display: flex;
  gap: 16px;
  justify-content: space-between;
  padding: 16px;
}

.profile-nutritionist-copy {
  min-width: 0;
}

.profile-nutritionist-panel strong {
  color: #111827;
  display: block;
  font-size: 16px;
  font-weight: 900;
  margin-bottom: 6px;
}

.profile-nutritionist-panel p {
  color: #64748b;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 6px;
}

.profile-nutritionist-panel small {
  color: var(--ng-health-primary);
  display: block;
  font-size: 12px;
  font-weight: 800;
}

.profile-nutritionist-meals {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 12px;
}

.profile-nutritionist-meals span {
  background: #fff;
  border: 1px solid #dbeafe;
  border-radius: 8px;
  color: #364152;
  display: block;
  font-size: 12px;
  font-weight: 800;
  padding: 10px;
}

.profile-nutritionist-meals strong {
  color: var(--ng-health-primary);
  font-size: 11px;
  margin-bottom: 3px;
  text-transform: uppercase;
}

.profile-nutritionist-meals em {
  color: #64748b;
  display: block;
  font-style: normal;
  font-weight: 700;
  margin-top: 3px;
}

.profile-action-approved {
  border-left-color: #047857;
}

.profile-action-disapproved {
  border-left-color: #b91c1c;
}

.profile-action-recommendation {
  border-left-color: var(--ng-health-primary);
}

.profile-action-pending {
  border-left-color: #d97706;
}

.profile-action-review {
  border-left-color: var(--ng-health-primary);
}

.profile-action-badge {
  align-self: flex-start;
}

.profile-action-badge-approved {
  background: #047857;
}

.profile-action-badge-disapproved {
  background: #b91c1c;
}

.profile-action-badge-recommendation {
  background: var(--ng-health-primary);
}

.profile-action-badge-pending {
  background: #d97706;
}

.profile-action-badge-review {
  background: var(--ng-health-primary);
}

.profile-leaderboard-panel {
  background: #ffffff;
  border: 1px solid #dbe3ef;
  border-radius: 8px;
  padding: 16px;
}

.dashboard-leaderboard-panel {
  border-left: 4px solid #047857;
  width: 100%;
}

.profile-leaderboard-header {
  align-items: flex-start;
  display: flex;
  gap: 16px;
  justify-content: space-between;
  margin-bottom: 14px;
}

.profile-leaderboard-header strong {
  color: #111827;
  display: block;
  font-size: 17px;
  font-weight: 900;
  margin-bottom: 5px;
}

.profile-leaderboard-header p {
  color: #64748b;
  font-size: 13px;
  font-weight: 700;
  margin: 0;
}

.profile-leaderboard-trophy {
  align-items: center;
  background: #dcfce7;
  border-radius: 8px;
  color: #047857;
  display: inline-flex;
  flex: 0 0 44px;
  font-size: 24px;
  height: 44px;
  justify-content: center;
  width: 44px;
}

.profile-leaderboard-list {
  display: grid;
  gap: 10px;
}

.profile-leaderboard-item {
  align-items: center;
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  display: grid;
  gap: 12px;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  min-height: 78px;
  padding: 12px;
}

.profile-leaderboard-item.is-high-rank {
  background: linear-gradient(135deg, #ecfdf5 0%, #f8fafc 100%);
  border-color: #86efac;
}

.profile-leaderboard-item.is-leader {
  background: linear-gradient(135deg, #dcfce7 0%, #ecfdf5 100%);
  border-color: #22c55e;
}

.profile-leaderboard-item.is-current-user {
  box-shadow: inset 0 0 0 2px rgba(49, 84, 159, .2);
}

.profile-leaderboard-rank {
  align-items: center;
  background: var(--ng-health-primary);
  border-radius: 8px;
  color: #fff;
  display: inline-flex;
  font-size: 13px;
  font-weight: 900;
  height: 42px;
  justify-content: center;
  width: 42px;
}

.profile-leaderboard-item.is-high-rank .profile-leaderboard-rank {
  background: #16a34a;
}

.profile-leaderboard-item.is-leader .profile-leaderboard-rank {
  background: #047857;
}

.profile-leaderboard-member {
  min-width: 0;
}

.profile-leaderboard-member strong {
  color: #111827;
  display: block;
  font-size: 14px;
  font-weight: 900;
  margin-bottom: 3px;
}

.profile-leaderboard-member small {
  color: #64748b;
  display: block;
  font-size: 12px;
  font-weight: 700;
}

.profile-leaderboard-score {
  align-items: flex-end;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 86px;
  text-align: right;
}

.profile-leaderboard-score > strong {
  color: var(--ng-health-primary);
  font-size: 22px;
  font-weight: 900;
  line-height: 1;
}

.profile-leaderboard-item.is-high-rank .profile-leaderboard-score > strong {
  color: #047857;
}

.profile-leaderboard-score > span {
  color: #64748b;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.profile-leaderboard-score div {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  justify-content: flex-end;
}

.profile-leaderboard-plan,
.profile-leaderboard-you {
  border-radius: 999px;
  display: inline-flex;
  font-size: 10px;
  font-weight: 900;
  padding: 5px 7px;
  text-transform: uppercase;
}

.profile-leaderboard-plan {
  background: #dcfce7;
  color: #047857;
}

.profile-leaderboard-you {
  background: #dbeafe;
  color: var(--ng-health-primary);
}

.profile-leaderboard-empty {
  background: #f8fafc;
  border: 1px dashed #cbd5e1;
  border-radius: 8px;
  color: #64748b;
  font-size: 13px;
  font-weight: 800;
  padding: 14px;
  text-align: center;
}

.leaderboard-formula {
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  color: #475569;
  display: grid;
  font-size: 12px;
  font-weight: 700;
  gap: 4px;
  line-height: 1.45;
  margin-top: 12px;
  padding: 10px 12px;
}

.leaderboard-formula:empty {
  display: none;
}

.leaderboard-formula strong {
  color: #111827;
}

.leaderboard-formula span,
.leaderboard-formula small {
  color: #64748b;
  display: block;
  font-size: 12px;
}

.health-form .form-label {
  align-items: flex-end;
  color: #374151;
  display: flex;
  font-size: 12px;
  font-weight: 800;
  justify-content: flex-start;
  line-height: 1.2;
  margin-bottom: 6px;
  min-height: 18px;
  text-align: left;
  width: 100%;
}

.health-form .row > [class*="col-"] {
  align-items: stretch;
  display: flex;
  flex-direction: column;
  text-align: left;
}

.health-form .row > [class*="col-"] > .form-control,
.health-form .row > [class*="col-"] > .form-select,
.health-form .row > [class*="col-"] > .input-group,
.health-form .row > [class*="col-"] > .profile-checklist-dropdown {
  width: 100%;
}

.health-form .row.align-items-end > [class*="col-"] {
  align-self: stretch;
}

.health-form .row.align-items-end > [class*="col-"] > .btn:only-child {
  margin-top: auto;
}

.health-form .form-control,
.health-form .form-select,
.chat-form .form-control,
.food-filter .form-select {
  border-color: #dbe3ef;
  border-radius: 8px;
  min-height: 44px;
}

.profile-checklist-dropdown {
  position: relative;
}

.profile-checklist-toggle {
  align-items: center;
  background-color: #fff;
  color: #111827;
  cursor: pointer;
  display: block;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
  overflow: hidden;
  padding: 12px 38px 12px 14px;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
  width: 100%;
}

.profile-checklist-toggle.is-placeholder {
  color: #64748b;
  font-weight: 600;
}

.profile-checklist-menu {
  border: 1px solid #dbe3ef;
  border-radius: 8px;
  box-shadow: 0 18px 40px rgba(15, 23, 42, .16);
  margin-top: 6px;
  max-height: min(420px, calc(100vh - 160px));
  min-width: 100%;
  overflow-y: auto;
  padding: 12px;
  width: 100%;
}

.profile-checklist-dropdown .profile-checklist-menu.show {
  inset: 100% auto auto 0 !important;
  margin-top: 6px !important;
  transform: none !important;
  z-index: 1080;
}

.profile-checklist-options {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.profile-checklist-option {
  align-items: center;
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  color: #334155;
  cursor: pointer;
  display: flex;
  font-size: 13px;
  font-weight: 800;
  gap: 8px;
  line-height: 1.25;
  min-height: 40px;
  padding: 9px 10px;
}

.profile-checklist-option:hover,
.profile-checklist-option:focus-within {
  background: var(--ng-health-primary-subtle);
  border-color: #99f6e4;
  color: var(--ng-health-primary-dark);
}

.profile-checklist-option .form-check-input {
  flex: 0 0 auto;
  margin: 0;
}

.profile-checklist-note {
  background: var(--ng-health-primary-subtle);
  border: 1px solid #99f6e4;
  border-radius: 8px;
  color: var(--ng-health-primary-dark);
  font-size: 12px;
  font-weight: 800;
  grid-column: 1 / -1;
  line-height: 1.45;
  padding: 10px 12px;
}

.profile-checklist-other {
  border-top: 1px solid #e5e7eb;
  margin-top: 10px;
  padding-top: 10px;
}

.profile-checklist-other .form-label {
  margin-bottom: 6px;
}

.profile-checklist-summary {
  color: #64748b;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.45;
  margin-top: 6px;
}

.meal-log-form > [class*="col-"] {
  align-items: stretch;
  display: flex;
  flex-direction: column;
  min-height: 92px;
  min-width: 0;
  text-align: left;
}

.meal-log-form .form-label {
  flex: 0 0 18px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.meal-log-form .form-control,
.meal-log-form .form-select,
.meal-log-form .profile-checklist-dropdown {
  flex: 0 0 auto;
  min-width: 0;
  width: 100%;
}

.meal-log-form .profile-checklist-summary {
  flex: 0 0 18px;
  line-height: 18px;
  max-height: 18px;
  min-height: 18px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.meal-log-form .meal-log-submit-slot {
  justify-content: flex-start;
  padding-top: 24px;
}

.meal-log-form .meal-log-submit-slot .btn {
  margin-top: 0;
}

.health-form .btn {
  min-width: 128px;
}

.health-form .btn.btn-sm {
  min-width: 112px;
}

@media (min-width: 768px) {
  .health-form .btn.w-100 {
    width: auto !important;
  }
}

@media (max-width: 575px) {
  .profile-checklist-options {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767px) {
  .meal-log-form > [class*="col-"] {
    min-height: auto;
  }

  .meal-log-form .meal-log-submit-slot {
    padding-top: 0;
  }
}

@media (max-width: 991px) {
  .profile-print-metrics,
  .profile-print-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .profile-print-grid-wide,
  .profile-print-list-block {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 575px) {
  .profile-print-actions,
  .profile-print-header,
  .profile-print-identity {
    align-items: flex-start;
    flex-direction: column;
  }

  .profile-print-actions {
    width: 100%;
  }

  .profile-print-actions .btn,
  .profile-edit-offcanvas .health-form > .btn {
    justify-content: center;
    width: 100%;
  }

  .profile-print-sheet {
    padding: 18px;
  }

  .profile-print-avatar {
    flex-basis: 92px;
    height: 92px;
    width: 92px;
  }

  .profile-print-metrics,
  .profile-print-grid {
    grid-template-columns: 1fr;
  }

  .profile-print-stamp {
    width: 100%;
  }

  .profile-edit-offcanvas .offcanvas-header,
  .profile-edit-offcanvas .offcanvas-body {
    padding-left: 16px;
    padding-right: 16px;
  }

  .profile-edit-offcanvas .health-form {
    padding: 14px;
  }
}

.validation-box {
  border-radius: 8px;
  font-size: 13px;
  margin-bottom: 16px;
  padding: 12px 14px;
}

.validation-box:not(.validation-box-success):not(.validation-box-processing) {
  background: #fff1f2;
  border: 1px solid #fecdd3;
  color: #9f1239;
}

.validation-box-processing {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  color: #1d4ed8;
  font-weight: 700;
}

.validation-box-success {
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: #047857;
  font-weight: 700;
}

.meal-log-summary {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 4px 0 18px;
}

.meal-log-summary-item {
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 14px;
}

.meal-log-summary-item span {
  color: #64748b;
  display: block;
  font-size: 12px;
  font-weight: 900;
  margin-bottom: 6px;
  text-transform: uppercase;
}

.meal-log-summary-item strong {
  color: #111827;
  display: block;
  font-size: 18px;
  font-weight: 900;
}

.meal-estimate-badge {
  background: var(--ng-health-primary-soft);
  border-radius: 999px;
  color: var(--ng-health-primary-dark);
  display: inline-flex;
  font-size: 12px;
  font-weight: 900;
  padding: 7px 10px;
  white-space: nowrap;
}

.system-notice {
  background: var(--ng-health-primary);
  border-radius: 8px;
  box-shadow: 0 18px 40px rgba(17, 24, 39, .18);
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  max-width: min(420px, calc(100vw - 32px));
  padding: 14px 18px;
  position: fixed;
  right: 24px;
  top: 116px;
  z-index: 1200;
}

.system-notice.notice-error {
  background: #b91c1c;
}

.confirmation-list {
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  overflow: hidden;
}

.confirmation-list div {
  align-items: flex-start;
  display: grid;
  gap: 12px;
  grid-template-columns: 130px minmax(0, 1fr);
  padding: 12px 14px;
}

.confirmation-list div + div {
  border-top: 1px solid #e5e7eb;
}

.confirmation-list span {
  color: #64748b;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.confirmation-list strong {
  color: #111827;
  font-size: 13px;
  overflow-wrap: anywhere;
}

.recommendation-score {
  align-items: center;
  background: var(--ng-health-clinical-soft);
  border-radius: 8px;
  color: #1d4ed8;
  display: flex;
  flex-direction: column;
  min-width: 88px;
  padding: 12px;
}

.recommendation-score span {
  font-size: 24px;
  font-weight: 800;
  line-height: 1;
}

.recommendation-score small {
  color: #5b6b78;
  font-weight: 700;
  margin-top: 5px;
}

.recommendation-validation-note {
  align-items: flex-start;
  background: #fff7ed;
  border: 1px solid #fed7aa;
  border-left: 4px solid #d97706;
  border-radius: 8px;
  color: #374151;
  display: flex;
  gap: 12px;
  margin-bottom: 18px;
  padding: 13px 14px;
}

.recommendation-validation-note i {
  color: #d97706;
  flex: 0 0 auto;
  font-size: 22px;
  line-height: 1;
  margin-top: 2px;
}

.recommendation-validation-note strong {
  color: #111827;
  display: block;
  font-size: 14px;
  font-weight: 900;
  margin-bottom: 3px;
}

.recommendation-validation-note span {
  color: #4b5563;
  display: block;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.45;
}

.recommendation-validation-note.nutritionist-approved,
.recommendation-validation-note.nutritionist-advised {
  background: #ecfdf5;
  border-color: #a7f3d0;
  border-left-color: #047857;
}

.recommendation-validation-note.nutritionist-approved i,
.recommendation-validation-note.nutritionist-advised i {
  color: #047857;
}

.recommendation-validation-note.nutritionist-disapproved {
  background: #fff1f2;
  border-color: #fecdd3;
  border-left-color: #be123c;
}

.recommendation-validation-note.nutritionist-disapproved i {
  color: #be123c;
}

.macro-card {
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 16px;
}

.macro-card .macro-value {
  color: #111827;
  font-size: 23px;
  font-weight: 800;
}

.macro-card .macro-label {
  color: #6b7280;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.meal-plan-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.meal-plan-heading {
  align-items: flex-end;
  display: flex;
  justify-content: space-between;
  margin-bottom: 12px;
}

.meal-plan-heading h5,
.nutritionist-suggested-header h5 {
  color: #111827;
  font-size: 16px;
  font-weight: 900;
  margin: 0 0 4px;
}

.meal-plan-heading p,
.nutritionist-suggested-header p {
  color: #64748b;
  font-size: 13px;
  font-weight: 700;
  margin: 0;
}

.portion-guide {
  margin-bottom: 18px;
}

.portion-guide:empty {
  display: none;
}

.portion-guide-heading {
  margin-bottom: 10px;
}

.portion-guide-heading strong {
  color: #111827;
  display: block;
  font-size: 15px;
  font-weight: 900;
}

.portion-guide-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.portion-guide-item {
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 12px;
}

.portion-guide-item strong {
  color: var(--ng-health-primary);
  display: block;
  font-size: 14px;
  font-weight: 900;
}

.portion-guide-item span {
  color: #111827;
  display: block;
  font-size: 12px;
  font-weight: 900;
  margin-top: 2px;
}

.portion-guide-item p {
  color: #64748b;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.4;
  margin: 6px 0 0;
}

.meal-card {
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  min-height: 150px;
  padding: 16px;
}

.meal-card-badge {
  align-items: center;
  background: #dcfce7;
  border-radius: 999px;
  color: #047857;
  display: inline-flex;
  font-size: 11px;
  font-weight: 900;
  margin-bottom: 12px;
  padding: 6px 9px;
  text-transform: uppercase;
}

.meal-card h5 {
  color: #111827;
  font-size: 16px;
  font-weight: 800;
  margin-bottom: 10px;
}

.meal-card p {
  color: #4b5563;
  margin-bottom: 12px;
}

.meal-card .portion {
  background: #ecfeff;
  border-radius: 8px;
  color: #0e7490;
  display: inline-flex;
  font-size: 12px;
  font-weight: 800;
  padding: 7px 10px;
}

.meal-plan-empty {
  background: #f8fafc;
  border: 1px dashed #cbd5e1;
  border-radius: 8px;
  color: #64748b;
  font-size: 13px;
  font-weight: 800;
  grid-column: 1 / -1;
  padding: 16px;
  text-align: center;
}

.nutritionist-suggested-section {
  background: linear-gradient(135deg, #ecfdf5 0%, #eff6ff 100%);
  border: 1px solid #a7f3d0;
  border-left: 4px solid #047857;
  border-radius: 8px;
  margin-bottom: 18px;
  padding: 16px;
}

.nutritionist-suggested-header {
  align-items: flex-start;
  display: flex;
  gap: 14px;
  justify-content: space-between;
  margin-bottom: 14px;
}

.nutritionist-suggested-badge {
  align-items: center;
  background: #047857;
  border-radius: 999px;
  color: #fff;
  display: inline-flex;
  flex: 0 0 auto;
  font-size: 12px;
  font-weight: 900;
  gap: 6px;
  padding: 8px 11px;
}

.nutritionist-suggested-badge.profile-action-badge-approved {
  background: #047857;
}

.nutritionist-suggested-badge.profile-action-badge-disapproved {
  background: #b91c1c;
}

.nutritionist-suggested-badge.profile-action-badge-recommendation {
  background: var(--ng-health-primary);
}

.nutritionist-suggested-badge.profile-action-badge-pending {
  background: #d97706;
}

.nutritionist-suggested-badge.profile-action-badge-review {
  background: var(--ng-health-primary);
}

.nutritionist-suggested-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.nutritionist-suggested-card {
  background: rgba(255, 255, 255, .9);
  border-color: #a7f3d0;
  box-shadow: 0 10px 24px rgba(4, 120, 87, .08);
  min-height: 0;
}

.explain-box {
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 18px;
}

.explain-box-header {
  align-items: center;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  min-width: 0;
}

.explain-box-header h5 {
  min-width: 0;
}

.explain-box-header #modelBlend {
  flex: 0 1 auto;
  line-height: 1.35;
  max-width: 58%;
  overflow-wrap: anywhere;
  text-align: right;
  white-space: normal;
}

.explain-box h5 {
  color: #111827;
  font-size: 16px;
  font-weight: 800;
}

.explain-box li {
  color: #4b5563;
  margin-bottom: 8px;
}

.chat-window {
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  height: 300px;
  margin-bottom: 14px;
  overflow-y: auto;
  padding: 16px;
}

.chat-message {
  border-radius: 8px;
  max-width: 88%;
  overflow-wrap: anywhere;
  padding: 11px 13px;
}

.chat-message-reply-in {
  animation: chat-reply-in .42s cubic-bezier(.22, 1, .36, 1) both;
  transform-origin: left bottom;
}

.chat-message.ai {
  align-self: flex-start;
  background: #eff6ff;
  color: var(--ng-health-primary);
}

.chat-message.user {
  align-self: flex-end;
  background: var(--ng-health-primary);
  color: #fff;
}

.chat-message-typing {
  align-items: center;
  display: inline-flex;
  gap: 5px;
  min-height: 38px;
  min-width: 62px;
}

.chat-message-typing span {
  animation: chat-typing-dot 1s ease-in-out infinite;
  background: currentColor;
  border-radius: 50%;
  display: block;
  height: 7px;
  opacity: .42;
  width: 7px;
}

.chat-message-typing span:nth-child(2) {
  animation-delay: .14s;
}

.chat-message-typing span:nth-child(3) {
  animation-delay: .28s;
}

@keyframes chat-reply-in {
  from {
    filter: blur(2px);
    opacity: 0;
    transform: translateY(10px) scale(.98);
  }
  to {
    filter: blur(0);
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes chat-typing-dot {
  0%,
  80%,
  100% {
    opacity: .35;
    transform: translateY(0);
  }
  40% {
    opacity: 1;
    transform: translateY(-4px);
  }
}

.quick-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.chip {
  background: #fff;
  border: 1px solid #dbe3ef;
  border-radius: 999px;
  color: #364152;
  font-size: 12px;
  font-weight: 700;
  padding: 8px 12px;
}

.chat-form {
  display: grid;
  gap: 10px;
  grid-template-columns: 1fr 48px;
}

.chat-pending-action {
  align-items: center;
  background: #fff7ed;
  border: 1px solid #fed7aa;
  border-radius: 8px;
  color: #9a3412;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  margin-bottom: 14px;
  padding: 12px;
}

.chat-pending-action span {
  font-size: 13px;
  font-weight: 800;
}

.chat-pending-action div {
  display: inline-flex;
  flex: 0 0 auto;
  gap: 8px;
}

.floating-chat {
  bottom: 86px;
  pointer-events: none;
  position: fixed;
  right: 24px;
  transition: opacity .16s ease, transform .16s ease, visibility .16s ease;
  z-index: 1190;
}

body[data-page="chat"] .floating-chat {
  display: none;
}

.floating-chat-toggle {
  align-items: center;
  animation: mascot-float 3.6s ease-in-out infinite;
  background: transparent;
  border: 0;
  border-radius: 50%;
  display: inline-flex;
  height: 52px;
  justify-content: center;
  overflow: hidden;
  padding: 0;
  pointer-events: auto;
  position: relative;
  transform-origin: center bottom;
  will-change: transform, filter;
  width: 52px;
}

.floating-chat-toggle:hover,
.floating-chat-toggle:focus {
  background: transparent;
  filter: drop-shadow(0 10px 18px rgba(15, 23, 42, .2));
}

.floating-chat-toggle.has-pending:after {
  background: #c27c21;
  border: 3px solid #fff;
  border-radius: 50%;
  content: "";
  height: 16px;
  position: absolute;
  right: 3px;
  top: 3px;
  width: 16px;
}

.floating-chat-mascot {
  animation: mascot-sway 4.8s ease-in-out infinite;
  display: block;
  height: 64px;
  object-fit: contain;
  object-position: center bottom;
  transform: translateY(7px);
  width: 64px;
}

@keyframes mascot-float {
  0%,
  100% {
    filter: drop-shadow(0 10px 14px rgba(15, 23, 42, .16));
    transform: translateY(0) rotate(-1deg);
  }

  50% {
    filter: drop-shadow(0 18px 20px rgba(15, 23, 42, .22));
    transform: translateY(-9px) rotate(1deg);
  }
}

@keyframes mascot-sway {
  0%,
  100% {
    transform: translateY(7px) rotate(-1deg);
  }

  50% {
    transform: translateY(5px) rotate(1deg);
  }
}

.floating-chat-panel {
  background: #fff;
  border: 1px solid #dbe3ef;
  border-radius: 8px;
  bottom: 70px;
  box-shadow: 0 24px 60px rgba(15, 23, 42, .22);
  display: flex;
  flex-direction: column;
  max-height: min(500px, calc(100vh - 150px));
  overflow: hidden;
  pointer-events: auto;
  position: absolute;
  right: 0;
  width: min(340px, calc(100vw - 28px));
}

.floating-chat-header {
  align-items: center;
  background: #143a5a;
  color: #fff;
  display: flex;
  justify-content: space-between;
  padding: 14px;
}

.floating-chat-title {
  align-items: center;
  display: flex;
  gap: 10px;
}

.floating-chat-avatar {
  align-items: center;
  background: transparent;
  border-radius: 50%;
  display: inline-flex;
  flex: 0 0 34px;
  height: 34px;
  justify-content: center;
  overflow: hidden;
  width: 34px;
}

.floating-chat-avatar img {
  display: block;
  height: 44px;
  object-fit: contain;
  object-position: center bottom;
  transform: translateY(5px);
  width: 44px;
}

.floating-chat-header strong,
.floating-chat-header span {
  display: block;
}

.floating-chat-header span {
  color: rgba(255, 255, 255, .72);
  font-size: 12px;
  font-weight: 700;
}

.floating-chat-window {
  background: #f8fafc;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 250px;
  overflow-y: auto;
  padding: 14px;
}

.floating-chat-window .chat-message.ai {
  margin-left: 30px;
  position: relative;
}

.floating-chat-window .chat-message.ai:before {
  background: transparent url("/assets/images/mascot-footer.png") center bottom / 34px auto no-repeat;
  border: 0;
  border-radius: 50%;
  content: "";
  height: 26px;
  left: -32px;
  position: absolute;
  top: 0;
  width: 26px;
}

.floating-chat-form {
  border-top: 1px solid #e5e7eb;
  display: grid;
  gap: 8px;
  grid-template-columns: 1fr 44px;
  padding: 12px;
}

.floating-chat-form .form-control {
  border-color: #dbe3ef;
  border-radius: 8px;
  min-height: 42px;
}

.floating-chat-panel .chat-pending-action {
  border-left: 0;
  border-radius: 0;
  border-right: 0;
  margin-bottom: 0;
}

.food-filter {
  max-width: 245px;
}

.food-availability-form {
  margin-bottom: 16px;
}

.food-availability-controls {
  align-items: center;
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(0, 1fr) auto auto;
}

.food-availability-controls .form-control {
  border-color: #dbe3ef;
  border-radius: 8px;
  min-height: 40px;
}

.food-availability-status {
  margin-bottom: 16px;
}

.food-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(0, 1fr);
}

.food-category-section {
  background: #ffffff;
  border: 1px solid #dbe3ef;
  border-radius: 8px;
  padding: 14px;
  scroll-margin-top: 112px;
}

.food-category-heading {
  align-items: center;
  border-bottom: 1px solid #e5e7eb;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  margin-bottom: 12px;
  padding-bottom: 12px;
}

.food-category-title {
  align-items: center;
  display: flex;
  gap: 10px;
  min-width: 0;
}

.food-category-icon {
  align-items: center;
  background: #ecfeff;
  border-radius: 8px;
  color: var(--ng-health-primary);
  display: inline-flex;
  flex: 0 0 auto;
  font-size: 22px;
  height: 38px;
  justify-content: center;
  width: 38px;
}

.food-category-code {
  color: #0f766e;
  display: block;
  font-size: 10px;
  font-weight: 900;
  line-height: 1.3;
  text-transform: uppercase;
}

.food-category-heading h5 {
  color: #111827;
  font-size: 15px;
  font-weight: 900;
  line-height: 1.25;
  margin: 0;
}

.food-category-heading strong {
  background: #f1f5f9;
  border-radius: 999px;
  color: #475569;
  flex: 0 0 auto;
  font-size: 11px;
  font-weight: 900;
  padding: 7px 10px;
  text-transform: uppercase;
}

.food-category-counts {
  align-items: flex-end;
  display: flex;
  flex: 0 0 auto;
  flex-direction: column;
  gap: 4px;
  text-align: right;
}

.food-category-counts span {
  color: #64748b;
  display: block;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.2;
}

.food-category-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  scroll-margin-top: 112px;
}

.food-pagination {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: space-between;
  margin-top: 16px;
}

.food-category-pagination {
  border-top: 1px solid #e5e7eb;
  margin-top: 14px;
  padding-top: 12px;
}

.food-pagination-summary {
  color: #64748b;
  font-size: 12px;
  font-weight: 800;
}

.food-pagination-controls {
  align-items: center;
  display: inline-flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
}

.food-pagination-button {
  align-items: center;
  background: #ffffff;
  border: 1px solid #dbe3ef;
  border-radius: 8px;
  color: var(--ng-health-primary);
  display: inline-flex;
  font-size: 13px;
  font-weight: 900;
  height: 34px;
  justify-content: center;
  min-width: 34px;
  padding: 0 10px;
}

.food-pagination-button:hover,
.food-pagination-button:focus {
  background: var(--ng-health-primary-subtle);
  border-color: #99f6e4;
}

.food-pagination-button.active {
  background: var(--ng-health-primary);
  border-color: var(--ng-health-primary);
  color: #ffffff;
}

.food-pagination-button:disabled {
  cursor: not-allowed;
  opacity: .45;
}

.food-pagination-ellipsis {
  color: #94a3b8;
  font-size: 13px;
  font-weight: 900;
  padding: 0 2px;
}

.food-card {
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  min-height: 172px;
  padding: 15px;
}

.food-card-top {
  align-items: flex-start;
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.food-card-actions {
  display: inline-flex;
  gap: 6px;
}

.food-action-button {
  align-items: center;
  background: #fff;
  border: 1px solid #dbe3ef;
  border-radius: 8px;
  color: var(--ng-health-primary);
  display: inline-flex;
  font-size: 16px;
  height: 32px;
  justify-content: center;
  padding: 0;
  width: 32px;
}

.food-action-button:hover,
.food-action-button:focus {
  background: var(--ng-health-primary-subtle);
  border-color: #99f6e4;
}

.food-action-danger {
  color: #b91c1c;
}

.food-action-danger:hover,
.food-action-danger:focus {
  background: #fff1f2;
  border-color: #fecdd3;
}

.food-card-available {
  background: #f0fdfa;
  border-color: #5eead4;
}

.food-card .food-icon {
  align-items: center;
  background: #eef2ff;
  border-radius: 8px;
  color: var(--ng-health-primary);
  display: inline-flex;
  font-size: 24px;
  height: 42px;
  justify-content: center;
  margin-bottom: 12px;
  width: 42px;
}

.food-card h5 {
  color: #111827;
  font-size: 15px;
  font-weight: 800;
  margin-bottom: 6px;
}

.food-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 8px;
}

.food-card .available-badge,
.food-group-badge {
  background: #d1fae5;
  border-radius: 999px;
  color: #047857;
  display: inline-flex;
  line-height: 1.25;
  max-width: 100%;
  font-size: 10px;
  font-weight: 900;
  padding: 4px 7px;
  text-transform: uppercase;
}

.food-group-badge {
  background: #e0f2fe;
  color: #0369a1;
}

.food-card p {
  color: #6b7280;
  font-size: 12px;
  margin-bottom: 10px;
}

.food-card .nutrients {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.food-card .nutrients span {
  background: #f3f4f6;
  border-radius: 999px;
  color: #374151;
  font-size: 11px;
  font-weight: 800;
  padding: 5px 8px;
}

.table thead th {
  color: #4b5563;
  font-size: 12px;
  font-weight: 800;
}

.meal-log-table {
  min-width: 820px;
  table-layout: fixed;
  width: 100%;
}

.meal-log-table th,
.meal-log-table td {
  line-height: 1.35;
  padding: 16px;
  vertical-align: middle;
}

.meal-log-table th:nth-child(1),
.meal-log-table td:nth-child(1) {
  width: 100px;
}

.meal-log-table th:nth-child(2),
.meal-log-table td:nth-child(2) {
  width: 88px;
}

.meal-log-table th:nth-child(5),
.meal-log-table td:nth-child(5) {
  width: 118px;
}

.meal-log-table th:nth-child(6),
.meal-log-table td:nth-child(6) {
  width: 132px;
}

.meal-log-table th:nth-child(3),
.meal-log-table td:nth-child(3),
.meal-log-table th:nth-child(4),
.meal-log-table td:nth-child(4) {
  min-width: 0;
  overflow-wrap: anywhere;
  white-space: normal;
}

.meal-log-table td:nth-child(5) {
  white-space: nowrap;
}

.meal-log-table td:nth-child(6),
.meal-log-table td .badge {
  line-height: 1.25;
  white-space: normal;
}

.meal-log-table td .badge,
.meal-log-table .meal-estimate-badge {
  max-width: 100%;
}

#mealLogTable,
#patternList,
#symptomLogList {
  scroll-margin-top: 112px;
}

.list-pagination {
  border-top: 1px solid #e5e7eb;
  margin-top: 14px;
  padding-top: 12px;
}

.pattern-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.pattern-item {
  border: 1px solid #e5e7eb;
  border-left: 4px solid #0e7490;
  border-radius: 8px;
  padding: 14px;
}

.pattern-item strong {
  color: #111827;
  display: block;
  margin-bottom: 5px;
}

.pattern-item span {
  color: #6b7280;
  font-size: 13px;
}

.symptom-log-panel {
  border-top: 1px solid #e5e7eb;
  padding-top: 18px;
}

.symptom-log-header {
  align-items: flex-start;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  margin-bottom: 12px;
}

.symptom-log-header h5 {
  color: #111827;
  font-size: 16px;
  font-weight: 900;
  margin: 0;
}

.symptom-log-count {
  background: #fee2e2;
  border-radius: 999px;
  color: #b91c1c;
  flex: 0 0 auto;
  font-size: 11px;
  font-weight: 900;
  padding: 7px 10px;
  text-transform: uppercase;
}

.symptom-log-list {
  display: grid;
  gap: 10px;
}

.symptom-log-item,
.symptom-log-empty {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 13px 14px;
}

.symptom-log-item {
  align-items: flex-start;
  border-left: 4px solid #dc2626;
  display: flex;
  gap: 12px;
  justify-content: space-between;
}

.symptom-log-main {
  min-width: 0;
}

.symptom-log-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 8px;
}

.symptom-log-chip {
  background: #fff1f2;
  border-radius: 999px;
  color: #be123c;
  font-size: 11px;
  font-weight: 900;
  padding: 5px 8px;
}

.symptom-log-item strong {
  color: #111827;
  display: block;
  font-size: 14px;
  font-weight: 900;
  margin-bottom: 4px;
}

.symptom-log-main > span,
.symptom-log-item time,
.symptom-log-empty {
  color: #64748b;
  font-size: 12px;
  font-weight: 700;
}

.symptom-log-item time {
  flex: 0 0 auto;
}

.symptom-icon {
  color: #dc2626;
  font-size: 32px;
}

.wellness-note {
  align-items: flex-start;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 8px;
  color: #475569;
  display: flex;
  font-size: 13px;
  gap: 10px;
  padding: 12px;
}

.wellness-note i {
  color: var(--ng-health-primary);
}

.algorithm-tabs {
  align-items: center;
  background: #eef2f7;
  border-radius: 8px;
  display: inline-flex;
  gap: 4px;
  padding: 4px;
}

.algorithm-tabs button {
  background: transparent;
  border: 0;
  border-radius: 7px;
  color: #4b5563;
  font-size: 12px;
  font-weight: 800;
  min-height: 34px;
  padding: 0 12px;
}

.algorithm-tabs button.active {
  background: #fff;
  box-shadow: 0 4px 12px rgba(31, 41, 55, .1);
  color: #111827;
}

.algorithm-card {
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 18px;
}

.algorithm-card span {
  color: #111827;
  font-weight: 800;
}

.algorithm-card strong {
  color: var(--ng-health-primary);
  font-size: 26px;
}

.recommended-algorithm-note {
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  border-radius: 8px;
  color: #047857;
  display: grid;
  font-size: 12px;
  gap: 4px;
  margin-top: 12px;
  padding: 10px 12px;
}

.recommended-algorithm-note:empty {
  display: none;
}

.recommended-algorithm-note strong {
  color: #047857;
  font-size: 13px;
  line-height: 1.25;
}

.recommended-algorithm-note span {
  color: #475569;
  font-weight: 700;
  line-height: 1.4;
}

.algorithm-formula {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  display: grid;
  gap: 5px;
  margin-top: 14px;
  padding: 12px;
}

.algorithm-formula:empty {
  display: none;
}

.algorithm-formula span {
  color: #64748b;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.algorithm-formula p {
  color: #111827;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.45;
  margin: 0;
}

.algorithm-formula small {
  color: #64748b;
  font-size: 12px;
  font-weight: 700;
}

.model-comparison-list {
  display: grid;
  gap: 8px;
}

.model-comparison-item {
  align-items: center;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  padding: 10px 12px;
}

.model-comparison-item > div,
.nutritionist-model-item > div {
  min-width: 0;
}

.model-comparison-item.active {
  background: #eff6ff;
  border-color: #bfdbfe;
}

.model-comparison-item.recommended {
  border-color: #86efac;
}

.model-comparison-item strong,
.model-comparison-item span {
  display: block;
}

.model-comparison-item strong {
  color: #111827;
  font-size: 12px;
  font-weight: 900;
}

.model-comparison-item span {
  color: #64748b;
  font-size: 12px;
  margin-top: 2px;
}

.model-comparison-item small {
  color: #64748b;
  display: block;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.35;
  margin-top: 5px;
}

.model-comparison-item em {
  color: var(--ng-health-primary);
  flex: 0 0 auto;
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
}

.algorithm-recommended-badge {
  background: #dcfce7;
  border-radius: 999px;
  color: #047857;
  display: inline-flex;
  font-size: 9px;
  font-weight: 900;
  line-height: 1;
  margin-left: 7px;
  padding: 4px 6px;
  text-transform: uppercase;
  vertical-align: middle;
}

.algorithm-discussion-panel {
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 14px;
}

.algorithm-discussion-list {
  display: grid;
  gap: 10px;
  margin-top: 10px;
}

.algorithm-discussion-item {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 12px;
}

.algorithm-discussion-item div {
  align-items: center;
  display: flex;
  gap: 10px;
  justify-content: space-between;
  margin-bottom: 8px;
}

.algorithm-discussion-item strong {
  color: #111827;
  font-size: 13px;
  font-weight: 900;
}

.algorithm-discussion-item em {
  color: var(--ng-health-primary);
  flex: 0 0 auto;
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
}

.algorithm-discussion-item p {
  color: #4b5563;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.45;
  margin: 0 0 6px;
}

.algorithm-discussion-item p:last-child {
  margin-bottom: 0;
}

.algorithm-discussion-item p span {
  color: #111827;
  font-weight: 900;
}

.engagement-list {
  display: grid;
  gap: 10px;
}

.engagement-item {
  align-items: center;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  display: flex;
  justify-content: space-between;
  padding: 12px 14px;
}

.engagement-item span {
  color: #6b7280;
  font-size: 13px;
}

.engagement-item strong {
  color: #111827;
}

.feedback-rating {
  align-items: center;
  background: #143a5a;
  border-radius: 8px;
  color: #fff;
  display: inline-flex;
  font-size: 20px;
  font-weight: 800;
  height: 48px;
  justify-content: center;
  width: 58px;
}

.satisfaction-criterion {
  border: 0;
  margin: 0 0 18px;
  min-width: 0;
  padding: 0;
}

.satisfaction-criterion .form-label {
  float: none;
  font-size: 13px;
  line-height: 1.45;
  margin-bottom: 8px;
  width: 100%;
}

.satisfaction-stars {
  align-items: center;
  display: flex;
  gap: 4px;
}

.satisfaction-star-input {
  height: 1px;
  opacity: 0;
  overflow: hidden;
  position: absolute;
  width: 1px;
}

.satisfaction-star-label {
  color: #cbd5e1;
  cursor: pointer;
  display: inline-flex;
  font-size: 30px;
  line-height: 1;
  padding: 2px;
  transition: color .16s ease, transform .16s ease;
}

.satisfaction-star-label:hover,
.satisfaction-star-label.is-active {
  color: #f59e0b;
  transform: translateY(-1px);
}

.satisfaction-star-input:focus-visible + .satisfaction-star-label {
  border-radius: 6px;
  outline: 3px solid rgba(20, 58, 90, .24);
  outline-offset: 2px;
}

.satisfaction-rating-text {
  color: #64748b;
  font-size: 12px;
  font-weight: 800;
  margin-top: 4px;
  min-height: 18px;
}

.feedback-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.feedback-item {
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 12px;
}

.feedback-item strong {
  color: #111827;
  display: block;
}

.feedback-item span {
  color: #6b7280;
  font-size: 12px;
}

.nutritionist-content {
  min-height: calc(100vh - 97px);
}

.nutritionist-view {
  display: block;
}

.nutritionist-workbench-header {
  align-items: center;
  background: linear-gradient(135deg, #143a5a, #117f73);
  border-radius: 8px;
  color: #fff;
  display: flex;
  gap: 18px;
  justify-content: space-between;
  margin-bottom: 18px;
  min-height: 160px;
  padding: 26px;
}

.nutritionist-workbench-header .metric-label {
  color: rgba(255, 255, 255, .72);
}

.nutritionist-workbench-header h2 {
  color: #fff;
  font-size: 29px;
  font-weight: 900;
  line-height: 1.2;
  margin: 0 0 8px;
}

.nutritionist-workbench-header p {
  color: rgba(255, 255, 255, .78);
  font-size: 14px;
  font-weight: 700;
  margin: 0;
  max-width: 620px;
}

.nutritionist-workbench-header .btn {
  background: rgba(255, 255, 255, .95);
  border-color: rgba(255, 255, 255, .65);
  color: #117f73;
}

.nutritionist-summary-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin-bottom: 24px;
}

.nutritionist-stat-card .card-body {
  border-left: 4px solid var(--ng-health-primary);
  min-height: 118px;
}

.nutritionist-stat-card span {
  color: #64748b;
  display: block;
  font-size: 12px;
  font-weight: 900;
  margin-bottom: 10px;
  text-transform: uppercase;
}

.nutritionist-stat-card strong {
  color: #111827;
  display: block;
  font-size: 32px;
  font-weight: 900;
  line-height: 1;
}

.nutritionist-stat-card.pending .card-body {
  border-left-color: #c27c21;
}

.nutritionist-stat-card.approved .card-body {
  border-left-color: #117f73;
}

.nutritionist-stat-card.disapproved .card-body {
  border-left-color: #be123c;
}

.nutritionist-stat-card.revised .card-body {
  border-left-color: #d97706;
}

.nutritionist-overview-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.nutritionist-toolbar {
  margin-bottom: 18px;
  max-width: 520px;
}

.nutritionist-compact-list,
.nutritionist-reviewed-list {
  display: grid;
  gap: 10px;
}

.nutritionist-compact-item,
.nutritionist-reviewed-item {
  align-items: center;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  color: inherit;
  display: flex;
  gap: 14px;
  justify-content: space-between;
  padding: 13px 14px;
  text-align: left;
  width: 100%;
}

.nutritionist-compact-item:hover,
.nutritionist-compact-item:focus,
.nutritionist-reviewed-item:hover {
  background: #eff6ff;
  border-color: #bfdbfe;
}

.nutritionist-compact-item:focus {
  outline: 3px solid rgba(49, 84, 159, .18);
  outline-offset: 2px;
}

.nutritionist-compact-item span,
.nutritionist-reviewed-item div {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.nutritionist-compact-item strong,
.nutritionist-reviewed-item strong,
.nutritionist-table td strong {
  color: #111827;
  font-size: 14px;
  font-weight: 900;
}

.nutritionist-compact-item small,
.nutritionist-reviewed-item small,
.nutritionist-reviewed-item p,
.nutritionist-reviewed-item em,
.nutritionist-table td span {
  color: #64748b;
  font-size: 12px;
  font-style: normal;
  font-weight: 700;
}

.nutritionist-compact-item em {
  border-radius: 999px;
  flex: 0 0 auto;
  font-size: 10px;
  font-style: normal;
  font-weight: 900;
  padding: 6px 8px;
  text-transform: uppercase;
}

.nutritionist-reviewed-item {
  align-items: flex-start;
}

.nutritionist-reviewed-item p {
  color: #4b5563;
  margin: 4px 0 0;
}

.nutritionist-reviewed-item .btn {
  flex: 0 0 auto;
}

.nutritionist-table td {
  vertical-align: middle;
}

.nutritionist-table td:first-child {
  min-width: 220px;
}

.nutritionist-table td:first-child strong,
.nutritionist-table td:first-child span {
  display: block;
}

.nutritionist-patient-list {
  display: grid;
  gap: 10px;
  max-height: 680px;
  overflow-y: auto;
  padding-right: 4px;
}

.nutritionist-patient-item {
  align-items: flex-start;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  color: inherit;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  padding: 14px;
  text-align: left;
  width: 100%;
}

.nutritionist-patient-item.active,
.nutritionist-patient-item:hover,
.nutritionist-patient-item:focus {
  background: #eef7f6;
  border-color: #7dd3c7;
}

.nutritionist-patient-item:focus {
  outline: 3px solid rgba(17, 127, 115, .18);
  outline-offset: 2px;
}

.patient-main {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.patient-main strong {
  color: #111827;
  font-size: 14px;
  font-weight: 900;
}

.patient-main small {
  color: #64748b;
  font-size: 12px;
  font-weight: 700;
}

.nutritionist-status-badge {
  border-radius: 999px;
  flex: 0 0 auto;
  font-size: 10px;
  font-weight: 900;
  padding: 6px 8px;
  text-transform: uppercase;
}

.review-status-pending {
  background: #fff7ed;
  color: #9a3412;
}

.review-status-approved {
  background: #ecfdf5;
  color: #047857;
}

.review-status-disapproved {
  background: #fff1f2;
  color: #be123c;
}

.review-status-revised {
  background: #fff7ed;
  color: #9a3412;
}

.nutritionist-empty-state,
.nutritionist-empty-list {
  align-items: center;
  background: #f8fafc;
  border: 1px dashed #cbd5e1;
  border-radius: 8px;
  color: #64748b;
  display: flex;
  flex-direction: column;
  gap: 8px;
  justify-content: center;
  min-height: 160px;
  padding: 24px;
  text-align: center;
}

.nutritionist-empty-state i {
  color: var(--ng-health-primary);
  font-size: 42px;
  line-height: 1;
}

.nutritionist-empty-state strong {
  color: #111827;
  font-size: 18px;
  font-weight: 900;
}

.nutritionist-empty-list {
  font-size: 13px;
  min-height: 86px;
}

.nutritionist-profile-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.nutritionist-profile-grid div {
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 12px;
}

.nutritionist-profile-grid span {
  color: #64748b;
  display: block;
  font-size: 11px;
  font-weight: 900;
  margin-bottom: 6px;
  text-transform: uppercase;
}

.nutritionist-profile-grid strong {
  color: #111827;
  display: block;
  font-size: 13px;
  font-weight: 900;
  overflow-wrap: anywhere;
}

.nutritionist-section-title {
  color: #111827;
  font-size: 16px;
  font-weight: 900;
}

.nutritionist-score {
  background: #eef2ff;
  border-radius: 999px;
  color: var(--ng-health-primary);
  display: inline-flex;
  font-size: 12px;
  font-weight: 900;
  padding: 8px 11px;
}

.nutritionist-ai-meal-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.nutritionist-meal-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  display: grid;
  gap: 8px;
  padding: 14px;
}

.nutritionist-meal-card h6 {
  color: #111827;
  font-size: 13px;
  font-weight: 900;
  margin: 0;
}

.nutritionist-meal-card em {
  color: var(--ng-health-primary);
  flex: 0 0 auto;
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
}

.nutritionist-meal-card strong {
  color: #111827;
  font-size: 14px;
  font-weight: 900;
}

.nutritionist-meal-card p {
  color: #4b5563;
  font-size: 13px;
  margin: 0;
}

.nutritionist-meal-card small,
.nutritionist-meal-card span {
  color: #64748b;
  font-size: 12px;
  font-weight: 700;
}

.nutritionist-created-plan {
  background: linear-gradient(135deg, #ecfdf5 0%, #f0fdfa 100%);
  border: 1px solid #a7f3d0;
  border-left: 4px solid #047857;
  border-radius: 8px;
  padding: 18px;
}

.nutritionist-created-plan-header {
  align-items: flex-start;
  display: flex;
  gap: 16px;
  justify-content: space-between;
  margin-bottom: 14px;
}

.nutritionist-created-plan-header .metric-label {
  color: #047857;
  display: block;
  margin-bottom: 4px;
}

.nutritionist-created-plan-count {
  background: #047857;
  border-radius: 999px;
  color: #fff;
  flex: 0 0 auto;
  font-size: 11px;
  font-weight: 900;
  padding: 7px 10px;
  text-transform: uppercase;
}

.nutritionist-decision-panel,
.nutritionist-review-tools {
  align-items: center;
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  display: flex;
  gap: 16px;
  justify-content: space-between;
  padding: 18px;
}

.nutritionist-decision-panel .btn {
  flex: 0 0 auto;
}

.nutritionist-custom-meals {
  display: grid;
  gap: 12px;
}

.nutritionist-custom-meal {
  align-items: start;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(95px, .75fr) minmax(160px, 1.4fr) minmax(140px, 1fr) minmax(88px, .6fr);
  padding: 12px;
}

.nutritionist-custom-meal .form-control {
  text-align: left;
}

.nutritionist-custom-meal .meal-label {
  font-weight: 800;
}

.nutritionist-custom-meal textarea {
  grid-column: 1 / -1;
  resize: vertical;
}

.nutritionist-review-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 18px;
}

.nutritionist-plan-offcanvas {
  background: #fff;
  border-left: 1px solid #dbe3ef;
  bottom: 0;
  box-shadow: -22px 0 44px rgba(15, 23, 42, .18);
  display: flex;
  flex-direction: column;
  max-width: 100vw;
  outline: 0;
  position: fixed;
  right: 0;
  top: 0;
  transform: translateX(100%);
  transition: transform .24s ease, visibility .24s ease;
  visibility: hidden;
  width: min(560px, 100vw);
  z-index: 1091;
}

.nutritionist-plan-offcanvas.show,
#nutritionistPlanCanvas:target {
  transform: translateX(0);
  visibility: visible;
}

.nutritionist-plan-backdrop {
  background: rgba(15, 23, 42, .54);
  border: 0;
  bottom: 0;
  cursor: default;
  left: 0;
  opacity: 0;
  pointer-events: none;
  position: fixed;
  right: 0;
  top: 0;
  transition: opacity .2s ease;
  z-index: 1090;
}

.nutritionist-plan-backdrop.show {
  opacity: 1;
  pointer-events: auto;
}

body.nutritionist-plan-open {
  overflow: hidden;
}

.nutritionist-plan-offcanvas .offcanvas-header {
  align-items: flex-start;
  background: #fff;
  border-bottom: 1px solid #e5e7eb;
  flex: 0 0 auto;
  gap: 18px;
  padding: 22px 24px;
}

.nutritionist-plan-offcanvas .offcanvas-title {
  color: #111827;
  font-size: 20px;
  font-weight: 900;
  line-height: 1.25;
  margin: 4px 0;
}

.nutritionist-plan-offcanvas .offcanvas-header p {
  color: #64748b;
  font-size: 13px;
  font-weight: 700;
  margin: 0;
}

.nutritionist-canvas-close {
  flex: 0 0 auto;
}

.nutritionist-plan-offcanvas .offcanvas-body {
  background: #f8fafc;
  flex: 1 1 auto;
  overflow: auto;
  padding: 20px 24px 24px;
}

.nutritionist-plan-summary {
  align-items: flex-start;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  display: flex;
  gap: 12px;
  margin-bottom: 18px;
  padding: 14px;
}

.nutritionist-plan-summary i {
  align-items: center;
  background: #eff6ff;
  border-radius: 8px;
  color: var(--ng-health-primary);
  display: inline-flex;
  flex: 0 0 38px;
  font-size: 20px;
  height: 38px;
  justify-content: center;
  width: 38px;
}

.nutritionist-plan-summary strong {
  color: #111827;
  display: block;
  font-size: 14px;
  font-weight: 900;
  margin-bottom: 4px;
}

.nutritionist-plan-summary span {
  color: #64748b;
  display: block;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.5;
}

.nutritionist-plan-offcanvas .nutritionist-custom-meals {
  gap: 14px;
}

.nutritionist-plan-offcanvas .nutritionist-custom-meal {
  grid-template-columns: minmax(0, 1fr) minmax(96px, .45fr);
}

.nutritionist-plan-offcanvas .meal-food,
.nutritionist-plan-offcanvas .meal-portion,
.nutritionist-plan-offcanvas .nutritionist-custom-meal textarea {
  grid-column: 1 / -1;
}

.nutritionist-ai-context {
  align-items: flex-start;
  background: #fff7ed;
  border: 1px solid #fed7aa;
  border-left: 4px solid #d97706;
  border-radius: 8px;
  display: flex;
  gap: 12px;
  padding: 12px 14px;
}

.nutritionist-ai-context i {
  color: #d97706;
  flex: 0 0 auto;
  font-size: 22px;
  line-height: 1;
  margin-top: 2px;
}

.nutritionist-ai-context strong {
  color: #111827;
  display: block;
  font-size: 14px;
  font-weight: 900;
  margin-bottom: 3px;
}

.nutritionist-ai-context span {
  color: #4b5563;
  display: block;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.45;
}

.nutritionist-ai-context.nutritionist-approved,
.nutritionist-ai-context.nutritionist-advised {
  background: #ecfdf5;
  border-color: #a7f3d0;
  border-left-color: #047857;
}

.nutritionist-ai-context.nutritionist-approved i,
.nutritionist-ai-context.nutritionist-advised i {
  color: #047857;
}

.nutritionist-ai-context.nutritionist-disapproved {
  background: #fff1f2;
  border-color: #fecdd3;
  border-left-color: #be123c;
}

.nutritionist-ai-context.nutritionist-disapproved i {
  color: #be123c;
}

.nutritionist-model-comparison {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.nutritionist-model-item {
  align-items: flex-start;
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  display: flex;
  gap: 10px;
  justify-content: space-between;
  padding: 10px;
}

.nutritionist-model-item strong,
.nutritionist-model-item span {
  display: block;
}

.nutritionist-model-item strong {
  color: #111827;
  font-size: 12px;
  font-weight: 900;
  line-height: 1.3;
}

.nutritionist-model-item strong b {
  background: #dcfce7;
  border-radius: 999px;
  color: #047857;
  display: inline-flex;
  font-size: 9px;
  font-weight: 900;
  line-height: 1;
  margin-left: 5px;
  padding: 4px 6px;
  text-transform: uppercase;
  vertical-align: middle;
}

.nutritionist-model-item span {
  color: #64748b;
  font-size: 12px;
  font-weight: 700;
  margin-top: 2px;
}

.nutritionist-model-item em {
  color: var(--ng-health-primary);
  flex: 0 0 auto;
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
  text-align: right;
}

.nutritionist-plan-offcanvas-footer {
  align-items: center;
  background: #fff;
  border-top: 1px solid #e5e7eb;
  display: flex;
  flex: 0 0 auto;
  gap: 10px;
  justify-content: flex-end;
  padding: 16px 24px;
}

.nutritionist-review-banner {
  align-items: flex-start;
  border: 1px solid #cbd5e1;
  border-left: 4px solid var(--ng-health-primary);
  border-radius: 8px;
  display: flex;
  gap: 16px;
  justify-content: space-between;
  margin-bottom: 18px;
  padding: 14px;
}

.nutritionist-review-banner span {
  display: inline-flex;
  font-size: 11px;
  font-weight: 900;
  margin-bottom: 6px;
  text-transform: uppercase;
}

.nutritionist-review-banner strong {
  color: #111827;
  display: block;
  font-size: 15px;
  font-weight: 900;
  margin-bottom: 4px;
}

.nutritionist-review-banner p {
  color: #4b5563;
  font-size: 13px;
  margin: 0;
}

.nutritionist-review-banner em {
  color: #64748b;
  flex: 0 0 auto;
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
  text-align: right;
}

.nutritionist-review-banner.review-status-approved {
  background: #ecfdf5;
  border-color: #a7f3d0;
  border-left-color: #047857;
}

.nutritionist-review-banner.review-status-disapproved {
  background: #fff1f2;
  border-color: #fecdd3;
  border-left-color: #be123c;
}

.nutritionist-review-banner.review-status-revised {
  background: #fff7ed;
  border-color: #fed7aa;
  border-left-color: #d97706;
}

.pwa-install-button {
  align-items: center;
  background: var(--ng-health-primary);
  border: 0;
  border-radius: 8px;
  bottom: 18px;
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.22);
  color: #fff;
  display: inline-flex;
  font-size: 14px;
  font-weight: 700;
  gap: 8px;
  line-height: 1;
  padding: 13px 16px;
  position: fixed;
  right: 18px;
  z-index: 1080;
}

.pwa-install-button[hidden] {
  display: none;
}

.pwa-install-button:hover,
.pwa-install-button:focus {
  background: var(--ng-health-primary-dark);
  color: #fff;
}

.pwa-install-button:focus {
  outline: 3px solid rgba(15, 118, 110, 0.28);
  outline-offset: 3px;
}

.pwa-install-button i {
  font-size: 18px;
}

.sidebar .nav .nav-item.nav-install-app {
  padding: 10px 18px 16px;
}

.sidebar .nav .nav-item.nav-install-app .pwa-install-button {
  align-items: center;
  background: var(--ng-health-primary);
  border: 0;
  border-radius: 8px;
  bottom: auto;
  box-shadow: none;
  color: #fff !important;
  display: flex;
  gap: 10px;
  justify-content: flex-start;
  left: auto;
  min-height: 44px;
  padding: 0 16px;
  position: static;
  right: auto;
  top: auto;
  width: 100%;
  z-index: auto;
}

.sidebar .nav .nav-item.nav-install-app[hidden],
.sidebar .nav .nav-item.nav-install-app .pwa-install-button[hidden] {
  display: none !important;
}

.sidebar .nav .nav-item.nav-install-app .pwa-install-button:hover,
.sidebar .nav .nav-item.nav-install-app .pwa-install-button:focus {
  background: var(--ng-health-primary-dark);
  color: #fff !important;
}

.sidebar .nav .nav-item.nav-install-app .pwa-install-button .menu-icon,
.sidebar .nav .nav-item.nav-install-app .pwa-install-button .menu-title {
  color: #fff !important;
}

.sidebar .nav .nav-item.nav-install-app .pwa-install-button .menu-icon {
  margin-right: 0;
}

.pwa-install-sheet {
  align-items: flex-end;
  background: rgba(15, 23, 42, 0.45);
  display: flex;
  inset: 0;
  justify-content: center;
  padding: 18px;
  position: fixed;
  z-index: 1090;
}

.pwa-install-sheet[hidden] {
  display: none;
}

.pwa-install-sheet__panel {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 18px 44px rgba(15, 23, 42, 0.24);
  max-width: 420px;
  padding: 22px;
  position: relative;
  width: 100%;
}

.pwa-install-sheet__close {
  align-items: center;
  background: #f3f4f6;
  border: 0;
  border-radius: 8px;
  color: #374151;
  display: inline-flex;
  height: 34px;
  justify-content: center;
  position: absolute;
  right: 14px;
  top: 14px;
  width: 34px;
}

.pwa-install-sheet__icon {
  align-items: center;
  background: #eff6ff;
  border-radius: 8px;
  color: var(--ng-health-primary);
  display: inline-flex;
  font-size: 28px;
  height: 46px;
  justify-content: center;
  margin-bottom: 16px;
  width: 46px;
}

.pwa-install-sheet h2 {
  color: #111827;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.2;
  margin: 0 42px 8px 0;
}

.pwa-install-sheet p {
  color: #4b5563;
  font-size: 15px;
  line-height: 1.55;
  margin: 0 0 18px;
}

.theme-toggle-button {
  align-items: center;
  background: #fff;
  border: 1px solid #d6dde8;
  border-radius: 8px;
  color: #364152;
  display: inline-flex;
  font-size: 20px;
  height: 42px;
  justify-content: center;
  min-width: 42px;
  padding: 0;
}

.navbar .navbar-menu-wrapper .navbar-nav .nav-item .theme-toggle-button.nav-link {
  color: #364152;
  line-height: 1;
  margin-left: 0;
  padding: 0;
}

.theme-toggle-button:hover,
.theme-toggle-button:focus {
  background: #eef2ff;
  border-color: #b8c5f6;
  color: var(--ng-health-primary);
}

.theme-toggle-button:focus {
  outline: 3px solid rgba(31, 59, 179, .22);
  outline-offset: 2px;
}

.theme-toggle-button-auth {
  position: fixed;
  right: 18px;
  top: 18px;
  z-index: 1050;
}

html[data-theme="dark"] {
  color-scheme: dark;
}

html[data-theme="dark"] .health-app {
  background: #0f172a;
  color: #e5e7eb;
}

html[data-theme="dark"] .health-app .content-wrapper {
  background: #0f172a;
}

html[data-theme="dark"] .auth-shell {
  background: linear-gradient(135deg, #020617 0%, #064e3b 54%, #78350f 100%);
}

html[data-theme="dark"] .auth-panel,
html[data-theme="dark"] .health-app .card,
html[data-theme="dark"] .modal-content,
html[data-theme="dark"] .pwa-install-sheet__panel {
  background: rgba(15, 23, 42, .93);
  border: 1px solid rgba(148, 163, 184, .2);
  box-shadow: 0 20px 50px rgba(2, 6, 23, .42);
  color: #e5e7eb;
}

html[data-theme="dark"] .health-hero {
  background: linear-gradient(135deg, #020617 0%, #065f46 58%, #92400e 100%);
}

html[data-theme="dark"] .navbar.default-layout,
html[data-theme="dark"] .navbar .navbar-brand-wrapper,
html[data-theme="dark"] .navbar .navbar-menu-wrapper {
  background: rgba(15, 23, 42, .96);
  border-color: rgba(148, 163, 184, .16);
  color: #e5e7eb;
}

html[data-theme="dark"] .health-app .sidebar {
  background: rgba(15, 23, 42, .96);
  border-right: 1px solid rgba(148, 163, 184, .16);
}

html[data-theme="dark"] .health-brand,
html[data-theme="dark"] .auth-brand,
html[data-theme="dark"] .welcome-text,
html[data-theme="dark"] .text-black,
html[data-theme="dark"] .auth-panel h1,
html[data-theme="dark"] .metric-card h3,
html[data-theme="dark"] .daily-calorie-card h3,
html[data-theme="dark"] .calorie-split-item strong,
html[data-theme="dark"] .meal-log-summary-item strong,
html[data-theme="dark"] .macro-card .macro-value,
html[data-theme="dark"] .meal-plan-heading h5,
html[data-theme="dark"] .portion-guide-heading strong,
html[data-theme="dark"] .portion-guide-item span,
html[data-theme="dark"] .meal-card h5,
html[data-theme="dark"] .explain-box h5,
html[data-theme="dark"] .nutritionist-suggested-header h5,
html[data-theme="dark"] .recommendation-validation-note strong,
html[data-theme="dark"] .profile-nutritionist-panel strong,
html[data-theme="dark"] .profile-nutritionist-meals strong,
html[data-theme="dark"] .profile-leaderboard-header strong,
html[data-theme="dark"] .leaderboard-formula strong,
html[data-theme="dark"] .profile-leaderboard-member strong,
html[data-theme="dark"] .profile-leaderboard-score > strong,
html[data-theme="dark"] .food-card h5,
html[data-theme="dark"] .food-category-heading h5,
html[data-theme="dark"] .pattern-item strong,
html[data-theme="dark"] .symptom-log-header h5,
html[data-theme="dark"] .symptom-log-item strong,
html[data-theme="dark"] .algorithm-card span,
html[data-theme="dark"] .algorithm-formula p,
html[data-theme="dark"] .algorithm-discussion-item strong,
html[data-theme="dark"] .algorithm-discussion-item p span,
html[data-theme="dark"] .model-comparison-item strong,
html[data-theme="dark"] .engagement-item strong,
html[data-theme="dark"] .progress-stat-grid strong,
html[data-theme="dark"] .achievement-item strong,
html[data-theme="dark"] .activity-item strong,
html[data-theme="dark"] .feedback-item strong,
html[data-theme="dark"] .confirmation-list strong,
html[data-theme="dark"] .nutritionist-ai-context strong,
html[data-theme="dark"] .nutritionist-model-item strong,
html[data-theme="dark"] .pwa-install-sheet h2 {
  color: #f8fafc !important;
}

html[data-theme="dark"] .welcome-sub-text,
html[data-theme="dark"] .auth-panel p,
html[data-theme="dark"] .card-subtitle,
html[data-theme="dark"] .text-muted,
html[data-theme="dark"] .metric-label,
html[data-theme="dark"] .calorie-split-item span,
html[data-theme="dark"] .calorie-split-item small,
html[data-theme="dark"] .daily-calorie-note,
html[data-theme="dark"] .profile-photo-note,
html[data-theme="dark"] .recommendation-validation-note span,
html[data-theme="dark"] .portion-guide-item p,
html[data-theme="dark"] .profile-nutritionist-panel p,
html[data-theme="dark"] .profile-nutritionist-panel small,
html[data-theme="dark"] .profile-nutritionist-meals em,
html[data-theme="dark"] .profile-leaderboard-header p,
html[data-theme="dark"] .leaderboard-formula,
html[data-theme="dark"] .leaderboard-formula span,
html[data-theme="dark"] .leaderboard-formula small,
html[data-theme="dark"] .profile-leaderboard-member small,
html[data-theme="dark"] .profile-leaderboard-score > span,
html[data-theme="dark"] .meal-log-summary-item span,
html[data-theme="dark"] .recommendation-score small,
html[data-theme="dark"] .macro-card .macro-label,
html[data-theme="dark"] .meal-plan-heading p,
html[data-theme="dark"] .meal-card p,
html[data-theme="dark"] .meal-plan-empty,
html[data-theme="dark"] .explain-box li,
html[data-theme="dark"] .nutritionist-suggested-header p,
html[data-theme="dark"] .food-card p,
html[data-theme="dark"] .food-card .nutrients span,
html[data-theme="dark"] .table thead th,
html[data-theme="dark"] .pattern-item span,
html[data-theme="dark"] .symptom-log-main > span,
html[data-theme="dark"] .symptom-log-item time,
html[data-theme="dark"] .symptom-log-empty,
html[data-theme="dark"] .model-comparison-item span,
html[data-theme="dark"] .model-comparison-item small,
html[data-theme="dark"] .algorithm-formula small,
html[data-theme="dark"] .algorithm-discussion-item p,
html[data-theme="dark"] .engagement-item span,
html[data-theme="dark"] .progress-stat-grid span,
html[data-theme="dark"] .achievement-item span,
html[data-theme="dark"] .activity-item span,
html[data-theme="dark"] .activity-item p,
html[data-theme="dark"] .activity-empty,
html[data-theme="dark"] .feedback-item span,
html[data-theme="dark"] .confirmation-list span,
html[data-theme="dark"] .nutritionist-ai-context span,
html[data-theme="dark"] .nutritionist-model-item span,
html[data-theme="dark"] .pwa-install-sheet p {
  color: #94a3b8 !important;
}

html[data-theme="dark"] .navbar .dropdown-bordered,
html[data-theme="dark"] .theme-toggle-button,
html[data-theme="dark"] .chip,
html[data-theme="dark"] .algorithm-tabs {
  background: rgba(30, 41, 59, .86);
  border-color: rgba(148, 163, 184, .24);
  color: #e2e8f0;
}

html[data-theme="dark"] .theme-toggle-button:hover,
html[data-theme="dark"] .theme-toggle-button:focus,
html[data-theme="dark"] .chip:hover {
  background: rgba(51, 65, 85, .94);
  border-color: rgba(125, 211, 252, .42);
  color: #bae6fd;
}

html[data-theme="dark"] .sidebar .nav .nav-item .nav-link {
  color: #94a3b8 !important;
}

html[data-theme="dark"] .sidebar .nav .nav-item .nav-link:hover,
html[data-theme="dark"] .sidebar .nav .nav-item .nav-link:focus {
  background: rgba(51, 65, 85, .7);
  color: #cbd5e1 !important;
}

html[data-theme="dark"] .sidebar .nav .nav-item .nav-link.active,
html[data-theme="dark"] .sidebar .nav .nav-item.active .nav-link {
  background: rgba(30, 64, 175, .26);
  box-shadow: inset 3px 0 0 #60a5fa;
  color: #60a5fa !important;
}

html[data-theme="dark"] .sidebar .nav .nav-item.nav-install-app .pwa-install-button {
  background: var(--ng-health-primary);
  color: #fff !important;
}

html[data-theme="dark"] .sidebar .nav .nav-item.nav-install-app .pwa-install-button:hover,
html[data-theme="dark"] .sidebar .nav .nav-item.nav-install-app .pwa-install-button:focus {
  background: #2563eb;
  color: #fff !important;
}

html[data-theme="dark"] .sidebar .nav .nav-item.nav-install-app .pwa-install-button .menu-icon,
html[data-theme="dark"] .sidebar .nav .nav-item.nav-install-app .pwa-install-button .menu-title {
  color: #fff !important;
}

html[data-theme="dark"] .health-card,
html[data-theme="dark"] .calorie-split-item,
html[data-theme="dark"] .profile-photo-panel,
html[data-theme="dark"] .profile-nutritionist-panel,
html[data-theme="dark"] .profile-leaderboard-panel,
html[data-theme="dark"] .leaderboard-formula,
html[data-theme="dark"] .profile-leaderboard-item,
html[data-theme="dark"] .profile-leaderboard-empty,
html[data-theme="dark"] .meal-log-summary-item,
html[data-theme="dark"] .confirmation-list,
html[data-theme="dark"] .macro-card,
html[data-theme="dark"] .portion-guide-item,
html[data-theme="dark"] .meal-card,
html[data-theme="dark"] .explain-box,
html[data-theme="dark"] .nutritionist-suggested-section,
html[data-theme="dark"] .chat-window,
html[data-theme="dark"] .floating-chat-panel,
html[data-theme="dark"] .floating-chat-window,
html[data-theme="dark"] .progress-stat-grid div,
html[data-theme="dark"] .achievement-item,
html[data-theme="dark"] .activity-item,
html[data-theme="dark"] .activity-empty,
html[data-theme="dark"] .food-card,
html[data-theme="dark"] .food-category-section,
html[data-theme="dark"] .pattern-item,
html[data-theme="dark"] .symptom-log-item,
html[data-theme="dark"] .symptom-log-empty,
html[data-theme="dark"] .algorithm-card,
html[data-theme="dark"] .algorithm-formula,
html[data-theme="dark"] .algorithm-discussion-panel,
html[data-theme="dark"] .algorithm-discussion-item,
html[data-theme="dark"] .model-comparison-item,
html[data-theme="dark"] .engagement-item,
html[data-theme="dark"] .nutritionist-model-item,
html[data-theme="dark"] .feedback-item {
  background: rgba(15, 23, 42, .84);
  border-color: rgba(148, 163, 184, .2);
}

html[data-theme="dark"] .satisfaction-star-label {
  color: #475569;
}

html[data-theme="dark"] .satisfaction-star-label:hover,
html[data-theme="dark"] .satisfaction-star-label.is-active {
  color: #fbbf24;
}

html[data-theme="dark"] .satisfaction-rating-text {
  color: #cbd5e1;
}

html[data-theme="dark"] .profile-print-sheet {
  background:
    linear-gradient(180deg, rgba(15, 23, 42, .92), rgba(15, 23, 42, .96)),
    repeating-linear-gradient(0deg, rgba(148, 163, 184, .14) 0, rgba(148, 163, 184, .14) 1px, transparent 1px, transparent 34px);
  border-color: rgba(148, 163, 184, .22);
  box-shadow: 0 18px 44px rgba(2, 6, 23, .34);
  color: #e5e7eb;
}

html[data-theme="dark"] .profile-print-header,
html[data-theme="dark"] .profile-print-section {
  border-color: rgba(148, 163, 184, .2);
}

html[data-theme="dark"] .profile-print-metrics div,
html[data-theme="dark"] .profile-print-grid div,
html[data-theme="dark"] .profile-print-list-block > div,
html[data-theme="dark"] .profile-edit-offcanvas .health-form,
html[data-theme="dark"] .profile-edit-offcanvas .profile-photo-panel {
  background: rgba(2, 6, 23, .34);
  border-color: rgba(148, 163, 184, .2);
}

html[data-theme="dark"] .profile-edit-offcanvas,
html[data-theme="dark"] .profile-edit-offcanvas .offcanvas-header,
html[data-theme="dark"] .profile-edit-offcanvas .offcanvas-body {
  background: #0f172a;
  border-color: rgba(148, 163, 184, .2);
  color: #e5e7eb;
}

html[data-theme="dark"] .profile-print-identity h3,
html[data-theme="dark"] .profile-print-stamp strong,
html[data-theme="dark"] .profile-print-metrics strong,
html[data-theme="dark"] .profile-print-grid strong,
html[data-theme="dark"] .profile-edit-offcanvas .offcanvas-title {
  color: #f8fafc;
}

html[data-theme="dark"] .profile-print-identity span,
html[data-theme="dark"] .profile-print-section-title span,
html[data-theme="dark"] .profile-print-grid span,
html[data-theme="dark"] .profile-print-list-block > div > span,
html[data-theme="dark"] .profile-print-stamp span,
html[data-theme="dark"] .profile-print-metrics span,
html[data-theme="dark"] .profile-print-metrics small,
html[data-theme="dark"] .profile-print-identity p {
  color: #94a3b8;
}

html[data-theme="dark"] .profile-print-tags em {
  background: rgba(14, 165, 233, .2);
  color: #bae6fd;
}

html[data-theme="dark"] .profile-print-tags.warning em {
  background: rgba(190, 18, 60, .22);
  color: #fecdd3;
}

html[data-theme="dark"] .profile-print-tags.food em {
  background: rgba(4, 120, 87, .22);
  color: #a7f3d0;
}

html[data-theme="dark"] .profile-print-empty {
  background: rgba(51, 65, 85, .62);
  color: #cbd5e1;
}

html[data-theme="dark"] .recommendation-validation-note,
html[data-theme="dark"] .nutritionist-ai-context {
  background: rgba(217, 119, 6, .18);
  border-color: rgba(251, 191, 36, .28);
  border-left-color: #f59e0b;
}

html[data-theme="dark"] .recommendation-validation-note.nutritionist-approved,
html[data-theme="dark"] .recommendation-validation-note.nutritionist-advised,
html[data-theme="dark"] .nutritionist-ai-context.nutritionist-approved,
html[data-theme="dark"] .nutritionist-ai-context.nutritionist-advised {
  background: rgba(4, 120, 87, .18);
  border-color: rgba(52, 211, 153, .3);
  border-left-color: #34d399;
}

html[data-theme="dark"] .recommendation-validation-note.nutritionist-disapproved,
html[data-theme="dark"] .nutritionist-ai-context.nutritionist-disapproved {
  background: rgba(190, 18, 60, .18);
  border-color: rgba(251, 113, 133, .3);
  border-left-color: #fb7185;
}

html[data-theme="dark"] .profile-nutritionist-meals span {
  background: rgba(2, 6, 23, .34);
  border-color: rgba(96, 165, 250, .24);
  color: #e2e8f0;
}

html[data-theme="dark"] .profile-leaderboard-item.is-high-rank {
  background: rgba(4, 120, 87, .18);
  border-color: rgba(52, 211, 153, .3);
}

html[data-theme="dark"] .profile-leaderboard-item.is-leader {
  background: rgba(22, 163, 74, .22);
  border-color: rgba(74, 222, 128, .38);
}

html[data-theme="dark"] .profile-leaderboard-item.is-high-rank .profile-leaderboard-score > strong {
  color: #86efac !important;
}

html[data-theme="dark"] .profile-leaderboard-trophy {
  background: rgba(4, 120, 87, .22);
  color: #a7f3d0;
}

html[data-theme="dark"] .profile-leaderboard-plan {
  background: rgba(4, 120, 87, .22);
  color: #a7f3d0;
}

html[data-theme="dark"] .profile-leaderboard-you {
  background: rgba(49, 84, 159, .3);
  color: #bfdbfe;
}

html[data-theme="dark"] .symptom-log-panel {
  border-color: rgba(148, 163, 184, .2);
}

html[data-theme="dark"] .symptom-log-count,
html[data-theme="dark"] .symptom-log-chip {
  background: rgba(190, 18, 60, .22);
  color: #fecdd3;
}

html[data-theme="dark"] .health-form .form-label {
  color: #cbd5e1;
}

html[data-theme="dark"] .health-form .form-control,
html[data-theme="dark"] .health-form .form-select,
html[data-theme="dark"] .chat-form .form-control,
html[data-theme="dark"] .floating-chat-form .form-control,
html[data-theme="dark"] .food-filter .form-select,
html[data-theme="dark"] .search-form .form-control {
  background: rgba(15, 23, 42, .9);
  border-color: rgba(148, 163, 184, .28);
  color: #f8fafc;
}

html[data-theme="dark"] .health-form .form-control::placeholder,
html[data-theme="dark"] .chat-form .form-control::placeholder,
html[data-theme="dark"] .floating-chat-form .form-control::placeholder,
html[data-theme="dark"] .search-form .form-control::placeholder {
  color: #64748b;
}

html[data-theme="dark"] .health-form .form-control:focus,
html[data-theme="dark"] .health-form .form-select:focus,
html[data-theme="dark"] .chat-form .form-control:focus,
html[data-theme="dark"] .floating-chat-form .form-control:focus,
html[data-theme="dark"] .food-filter .form-select:focus {
  border-color: #38bdf8;
  box-shadow: 0 0 0 .2rem rgba(56, 189, 248, .18);
}

html[data-theme="dark"] .auth-password-toggle {
  color: #94a3b8;
}

html[data-theme="dark"] .auth-password-toggle:hover,
html[data-theme="dark"] .auth-password-toggle:focus {
  background: rgba(30, 64, 175, .28);
  color: #bfdbfe;
}

html[data-theme="dark"] .profile-checklist-menu {
  background: rgba(15, 23, 42, .98);
  border-color: rgba(148, 163, 184, .2);
  box-shadow: 0 20px 45px rgba(2, 6, 23, .45);
}

html[data-theme="dark"] .profile-checklist-option {
  background: rgba(2, 6, 23, .34);
  border-color: rgba(148, 163, 184, .18);
  color: #e2e8f0;
}

html[data-theme="dark"] .profile-checklist-option:hover,
html[data-theme="dark"] .profile-checklist-option:focus-within {
  background: rgba(30, 64, 175, .28);
  border-color: rgba(96, 165, 250, .3);
  color: #bfdbfe;
}

html[data-theme="dark"] .profile-checklist-note {
  background: rgba(30, 64, 175, .22);
  border-color: rgba(96, 165, 250, .3);
  color: #bfdbfe;
}

html[data-theme="dark"] .profile-checklist-other {
  border-color: rgba(148, 163, 184, .2);
}

html[data-theme="dark"] .profile-checklist-summary {
  color: #94a3b8;
}

html[data-theme="dark"] .food-availability-controls .form-control {
  background: rgba(2, 6, 23, .34);
  border-color: rgba(148, 163, 184, .2);
  color: #e5e7eb;
}

html[data-theme="dark"] .food-category-heading {
  border-color: rgba(148, 163, 184, .2);
}

html[data-theme="dark"] .food-category-code {
  color: #5eead4;
}

html[data-theme="dark"] .food-category-counts span {
  color: #94a3b8;
}

html[data-theme="dark"] .food-card .available-badge {
  background: rgba(20, 184, 166, .22);
  color: #99f6e4;
}

html[data-theme="dark"] .food-group-badge,
html[data-theme="dark"] .food-category-heading strong {
  background: rgba(30, 64, 175, .28);
  color: #bfdbfe;
}

html[data-theme="dark"] .food-action-button {
  background: rgba(2, 6, 23, .34);
  border-color: rgba(148, 163, 184, .24);
  color: #bfdbfe;
}

html[data-theme="dark"] .food-action-button:hover,
html[data-theme="dark"] .food-action-button:focus {
  background: rgba(30, 64, 175, .28);
  border-color: rgba(96, 165, 250, .3);
}

html[data-theme="dark"] .food-action-danger {
  color: #fca5a5;
}

html[data-theme="dark"] .food-action-danger:hover,
html[data-theme="dark"] .food-action-danger:focus {
  background: rgba(190, 18, 60, .18);
  border-color: rgba(251, 113, 133, .28);
}

html[data-theme="dark"] .food-pagination-summary,
html[data-theme="dark"] .food-pagination-ellipsis {
  color: #94a3b8;
}

html[data-theme="dark"] .food-category-pagination {
  border-color: rgba(148, 163, 184, .2);
}

html[data-theme="dark"] .food-pagination-button {
  background: rgba(2, 6, 23, .34);
  border-color: rgba(148, 163, 184, .24);
  color: #bfdbfe;
}

html[data-theme="dark"] .food-pagination-button:hover,
html[data-theme="dark"] .food-pagination-button:focus {
  background: rgba(30, 64, 175, .28);
  border-color: rgba(96, 165, 250, .3);
}

html[data-theme="dark"] .food-pagination-button.active {
  background: #60a5fa;
  border-color: #60a5fa;
  color: #020617;
}

html[data-theme="dark"] .list-pagination {
  border-color: rgba(148, 163, 184, .2);
}

html[data-theme="dark"] .dropdown-menu,
html[data-theme="dark"] .navbar .navbar-menu-wrapper .navbar-nav .nav-item.dropdown .navbar-dropdown {
  background: rgba(15, 23, 42, .98);
  border: 1px solid rgba(148, 163, 184, .2);
  box-shadow: 0 20px 45px rgba(2, 6, 23, .45);
  color: #e5e7eb;
}

html[data-theme="dark"] .dropdown-item {
  color: #e5e7eb;
}

html[data-theme="dark"] .dropdown-item:hover,
html[data-theme="dark"] .dropdown-item:focus {
  background: rgba(51, 65, 85, .84);
  color: #fff;
}

html[data-theme="dark"] .dropdown-menu .border-bottom,
html[data-theme="dark"] .modal-header,
html[data-theme="dark"] .modal-footer,
html[data-theme="dark"] .confirmation-list div + div {
  border-color: rgba(148, 163, 184, .2) !important;
}

html[data-theme="dark"] .table {
  color: #e5e7eb;
}

html[data-theme="dark"] .table > :not(caption) > * > * {
  background: transparent;
  border-color: rgba(148, 163, 184, .18);
  color: inherit;
}

html[data-theme="dark"] .bg-primary-subtle,
html[data-theme="dark"] .food-card .food-icon,
html[data-theme="dark"] .food-category-icon,
html[data-theme="dark"] .meal-estimate-badge {
  background: rgba(30, 64, 175, .28);
  color: #bfdbfe;
}

html[data-theme="dark"] .food-card-available,
html[data-theme="dark"] .achievement-item.earned {
  background: rgba(20, 184, 166, .16);
  border-color: rgba(45, 212, 191, .28);
  color: #99f6e4;
}

html[data-theme="dark"] .bg-info-subtle,
html[data-theme="dark"] .chat-message.ai,
html[data-theme="dark"] .recommendation-score,
html[data-theme="dark"] .model-comparison-item.active {
  background: rgba(30, 64, 175, .28);
  border-color: rgba(96, 165, 250, .3);
  color: #bfdbfe;
}

html[data-theme="dark"] .bg-warning-subtle,
html[data-theme="dark"] .meal-card .portion,
html[data-theme="dark"] .chat-pending-action {
  background: rgba(217, 119, 6, .18);
  border-color: rgba(251, 191, 36, .24);
  color: #fde68a;
}

html[data-theme="dark"] .wellness-note,
html[data-theme="dark"] .activity-source-note {
  background: rgba(30, 64, 175, .22);
  border-color: rgba(96, 165, 250, .32);
  color: #cbd5e1;
}

html[data-theme="dark"] .wellness-note i,
html[data-theme="dark"] .activity-source-note i {
  color: #93c5fd;
}

html[data-theme="dark"] .meal-card-badge {
  background: rgba(4, 120, 87, .22);
  color: #a7f3d0;
}

html[data-theme="dark"] .nutritionist-suggested-section {
  border-color: rgba(45, 212, 191, .28);
  border-left-color: #14b8a6;
}

html[data-theme="dark"] .nutritionist-suggested-card {
  background: rgba(15, 23, 42, .88);
  border-color: rgba(45, 212, 191, .28);
  box-shadow: none;
}

html[data-theme="dark"] .bg-danger-subtle {
  background: rgba(220, 38, 38, .18);
  color: #fecaca;
}

html[data-theme="dark"] .validation-box:not(.validation-box-success):not(.validation-box-processing) {
  background: rgba(190, 18, 60, .18);
  border-color: rgba(251, 113, 133, .28);
  color: #fecdd3;
}

html[data-theme="dark"] .validation-box-processing {
  background: rgba(37, 99, 235, .18);
  border-color: rgba(96, 165, 250, .32);
  color: #bfdbfe;
}

html[data-theme="dark"] .profile-photo-error {
  color: #fca5a5;
}

html[data-theme="dark"] .validation-box-success {
  background: rgba(4, 120, 87, .18);
  border-color: rgba(52, 211, 153, .28);
  color: #a7f3d0;
}

html[data-theme="dark"] .system-notice {
  box-shadow: 0 18px 40px rgba(2, 6, 23, .48);
}

html[data-theme="dark"] .pwa-install-sheet {
  background: rgba(2, 6, 23, .72);
}

html[data-theme="dark"] .pwa-install-sheet__close {
  background: rgba(30, 41, 59, .95);
  color: #e5e7eb;
}

html[data-theme="dark"] .pwa-install-sheet__icon {
  background: rgba(20, 184, 166, .16);
  color: #5eead4;
}

html[data-theme="dark"] .nutritionist-stat-card strong,
html[data-theme="dark"] .nutritionist-compact-item strong,
html[data-theme="dark"] .nutritionist-reviewed-item strong,
html[data-theme="dark"] .nutritionist-table td strong,
html[data-theme="dark"] .patient-main strong,
html[data-theme="dark"] .nutritionist-empty-state strong,
html[data-theme="dark"] .nutritionist-profile-grid strong,
html[data-theme="dark"] .nutritionist-section-title,
html[data-theme="dark"] .nutritionist-meal-card h6,
html[data-theme="dark"] .nutritionist-meal-card strong,
html[data-theme="dark"] .nutritionist-review-banner strong {
  color: #f8fafc !important;
}

html[data-theme="dark"] .nutritionist-stat-card span,
html[data-theme="dark"] .nutritionist-workbench-header p,
html[data-theme="dark"] .nutritionist-compact-item small,
html[data-theme="dark"] .nutritionist-reviewed-item small,
html[data-theme="dark"] .nutritionist-reviewed-item p,
html[data-theme="dark"] .nutritionist-reviewed-item em,
html[data-theme="dark"] .nutritionist-table td span,
html[data-theme="dark"] .patient-main small,
html[data-theme="dark"] .nutritionist-empty-list,
html[data-theme="dark"] .nutritionist-empty-state,
html[data-theme="dark"] .nutritionist-profile-grid span,
html[data-theme="dark"] .nutritionist-meal-card p,
html[data-theme="dark"] .nutritionist-meal-card small,
html[data-theme="dark"] .nutritionist-meal-card span,
html[data-theme="dark"] .nutritionist-plan-offcanvas .offcanvas-header p,
html[data-theme="dark"] .nutritionist-plan-summary span,
html[data-theme="dark"] .nutritionist-review-banner p,
html[data-theme="dark"] .nutritionist-review-banner em {
  color: #94a3b8 !important;
}

html[data-theme="dark"] .nutritionist-patient-item,
html[data-theme="dark"] .nutritionist-compact-item,
html[data-theme="dark"] .nutritionist-reviewed-item,
html[data-theme="dark"] .nutritionist-empty-state,
html[data-theme="dark"] .nutritionist-empty-list,
html[data-theme="dark"] .nutritionist-profile-grid div,
html[data-theme="dark"] .nutritionist-meal-card,
html[data-theme="dark"] .nutritionist-decision-panel,
html[data-theme="dark"] .nutritionist-review-tools,
html[data-theme="dark"] .nutritionist-custom-meal,
html[data-theme="dark"] .nutritionist-plan-offcanvas,
html[data-theme="dark"] .nutritionist-plan-offcanvas .offcanvas-header,
html[data-theme="dark"] .nutritionist-plan-offcanvas .offcanvas-body,
html[data-theme="dark"] .nutritionist-plan-offcanvas-footer,
html[data-theme="dark"] .nutritionist-plan-summary,
html[data-theme="dark"] .nutritionist-review-banner {
  background: rgba(15, 23, 42, .84);
  border-color: rgba(148, 163, 184, .2);
}

html[data-theme="dark"] .nutritionist-plan-offcanvas .offcanvas-title,
html[data-theme="dark"] .nutritionist-plan-summary strong {
  color: #f8fafc;
}

html[data-theme="dark"] .nutritionist-plan-summary i {
  background: rgba(30, 64, 175, .28);
  color: #93c5fd;
}

html[data-theme="dark"] .nutritionist-patient-item.active,
html[data-theme="dark"] .nutritionist-patient-item:hover,
html[data-theme="dark"] .nutritionist-patient-item:focus,
html[data-theme="dark"] .nutritionist-compact-item:hover,
html[data-theme="dark"] .nutritionist-compact-item:focus,
html[data-theme="dark"] .nutritionist-reviewed-item:hover {
  background: rgba(30, 64, 175, .22);
  border-color: rgba(96, 165, 250, .32);
}

html[data-theme="dark"] .review-status-pending {
  background: rgba(217, 119, 6, .18);
  color: #fde68a;
}

html[data-theme="dark"] .review-status-approved {
  background: rgba(4, 120, 87, .22);
  color: #a7f3d0;
}

html[data-theme="dark"] .review-status-disapproved {
  background: rgba(190, 18, 60, .22);
  color: #fecdd3;
}

html[data-theme="dark"] .review-status-revised {
  background: rgba(217, 119, 6, .18);
  color: #fde68a;
}

html[data-theme="dark"] .nutritionist-review-banner.review-status-approved,
html[data-theme="dark"] .nutritionist-review-banner.review-status-disapproved,
html[data-theme="dark"] .nutritionist-review-banner.review-status-revised {
  background: rgba(15, 23, 42, .84);
}

@media (max-width: 1199px) {
  .health-hero {
    grid-template-columns: 1fr;
  }

  .health-hero-panel {
    align-self: stretch;
  }

  .food-category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .daily-calorie-split {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .progress-stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .nutritionist-summary-grid,
  .nutritionist-profile-grid,
  .nutritionist-ai-meal-grid,
  .nutritionist-model-comparison,
  .portion-guide-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .nutritionist-overview-grid {
    grid-template-columns: 1fr;
  }

  .calorie-progress-layout {
    grid-template-columns: 1fr;
  }

  .meal-log-summary {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767px) {
  .health-hero {
    padding: 22px;
  }

  .health-hero h2 {
    font-size: 24px;
  }

  .health-hero-panel {
    align-items: flex-start;
    flex-direction: column;
  }

  .meal-plan-grid,
  .nutritionist-suggested-grid,
  .profile-nutritionist-meals,
  .food-grid,
  .food-category-grid,
  .portion-guide-grid,
  .nutritionist-model-comparison,
  .food-availability-controls,
  .nutritionist-summary-grid,
  .nutritionist-overview-grid,
  .nutritionist-profile-grid,
  .nutritionist-ai-meal-grid,
  .nutritionist-custom-meal,
  .calorie-progress-layout,
  .meal-log-summary,
  .daily-calorie-split,
  .progress-score-panel,
  .progress-stat-grid {
    grid-template-columns: 1fr;
  }

  .achievement-item,
  .activity-item,
  .chat-pending-action,
  .profile-nutritionist-panel,
  .profile-leaderboard-header,
  .symptom-log-header,
  .symptom-log-item,
  .nutritionist-suggested-header,
  .recommendation-validation-note,
  .nutritionist-ai-context,
  .nutritionist-workbench-header,
  .nutritionist-compact-item,
  .nutritionist-reviewed-item,
  .nutritionist-decision-panel,
  .nutritionist-plan-summary,
  .nutritionist-review-banner {
    align-items: flex-start;
    flex-direction: column;
  }

  .nutritionist-workbench-header {
    padding: 22px;
  }

  .nutritionist-workbench-header h2 {
    font-size: 24px;
  }

  .nutritionist-workbench-header .btn,
  .nutritionist-decision-panel .btn,
  .nutritionist-reviewed-item .btn,
  .nutritionist-plan-offcanvas-footer .btn,
  .nutritionist-review-actions .btn {
    justify-content: center;
    width: 100%;
  }

  .food-pagination {
    align-items: stretch;
    flex-direction: column;
  }

  .food-category-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .food-category-counts {
    align-items: flex-start;
    text-align: left;
  }

  .food-pagination-controls {
    justify-content: flex-start;
  }

  .explain-box {
    padding: 16px;
  }

  .explain-box-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .explain-box-header h5 {
    align-items: flex-start;
    display: flex;
    font-size: 15px;
    line-height: 1.2;
  }

  .explain-box-header #modelBlend {
    align-self: flex-start;
    max-width: 100%;
    text-align: left;
  }

  .explain-box ul {
    padding-left: 18px;
  }

  .explain-box li {
    line-height: 1.45;
  }

  .nutritionist-plan-offcanvas .offcanvas-header,
  .nutritionist-plan-offcanvas .offcanvas-body,
  .nutritionist-plan-offcanvas-footer {
    padding-left: 16px;
    padding-right: 16px;
  }

  .nutritionist-plan-offcanvas-footer {
    align-items: stretch;
    flex-direction: column-reverse;
  }

  .profile-leaderboard-item {
    align-items: flex-start;
    grid-template-columns: 1fr;
  }

  .profile-leaderboard-score {
    align-items: flex-start;
    min-width: 0;
    text-align: left;
  }

  .profile-leaderboard-score div {
    justify-content: flex-start;
  }

  .achievement-item em,
  .activity-item em {
    align-self: flex-start;
  }

  .achievement-item > em {
    min-width: 0;
    text-align: left;
  }

  .chat-pending-action div {
    width: 100%;
  }

  .chat-pending-action .btn {
    flex: 1 1 0;
  }

  .algorithm-tabs {
    align-items: stretch;
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
  }

  .food-filter {
    max-width: none;
    width: 100%;
  }

  .pwa-install-button {
    bottom: 12px;
    justify-content: center;
    left: 12px;
    right: 12px;
  }

  .floating-chat {
    bottom: 74px;
    right: 16px;
  }

  .floating-chat-panel {
    bottom: 64px;
    max-height: calc(100vh - 150px);
  }

  body.form-field-focused .floating-chat {
    opacity: 0;
    pointer-events: none;
    transform: translateY(16px);
    visibility: hidden;
  }

  .health-form input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),
  .health-form textarea,
  .meal-log-form input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),
  .meal-log-form textarea {
    scroll-margin-bottom: 180px;
    scroll-margin-top: 110px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .chat-message-reply-in,
  .chat-message-typing span,
  .floating-chat-toggle,
  .floating-chat-mascot {
    animation: none;
  }
}

.admin-content {
  padding-bottom: 40px;
}

.admin-workbench-header {
  align-items: center;
  border-bottom: 1px solid rgba(148, 163, 184, 0.24);
  display: flex;
  gap: 20px;
  justify-content: space-between;
  margin-bottom: 24px;
  padding: 4px 0 24px;
}

.admin-workbench-header .metric-label {
  color: #117f73;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
}

.admin-workbench-header h2 {
  color: #172033;
  font-size: 1.875rem;
  font-weight: 800;
  line-height: 1.2;
  margin: 4px 0 6px;
}

.admin-workbench-header p {
  color: #64748b;
  margin: 0;
}

.admin-summary-grid,
.admin-overview-grid,
.admin-lower-grid,
.admin-reports-grid {
  display: grid;
  gap: 20px;
  margin-bottom: 24px;
}

.admin-summary-grid {
  grid-template-columns: repeat(auto-fit, minmax(178px, 1fr));
}

.admin-overview-grid {
  grid-template-columns: minmax(0, 1.4fr) minmax(300px, 0.8fr);
}

.admin-lower-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.admin-dashboard-records {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.admin-reports-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.admin-mobile-update-grid {
  align-items: stretch;
  grid-template-columns: minmax(0, 0.92fr) minmax(520px, 1.08fr);
}

.admin-mobile-update-grid > .card {
  height: 100%;
  min-width: 0;
  overflow: hidden;
}

.admin-mobile-update-grid > .card > .card-body {
  padding: 28px;
}

.admin-mobile-update-grid .admin-card-header {
  align-items: center;
  border-bottom: 1px solid #e2e8f0;
  margin-bottom: 22px;
  padding-bottom: 20px;
}

.admin-mobile-update-grid .admin-card-header > div {
  min-width: 0;
}

.admin-mobile-update-grid .admin-card-header .card-title {
  font-size: 1.05rem;
  line-height: 1.35;
  margin-bottom: 5px;
}

.admin-mobile-update-grid .admin-card-header .card-subtitle {
  line-height: 1.55;
  max-width: 680px;
}

.admin-mobile-build-card .admin-card-header .btn {
  flex: 0 0 auto;
}

#adminMobileUpdateDetails {
  gap: 14px;
}

#adminMobileUpdateDetails .admin-report-item {
  gap: 9px;
  padding: 16px 18px;
}

#adminMobileUpdateDetails .admin-report-item > div:first-child {
  align-items: start;
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(105px, 0.38fr) minmax(0, 1fr);
}

#adminMobileUpdateDetails .admin-report-item strong {
  font-size: 0.82rem;
  line-height: 1.45;
}

#adminMobileUpdateDetails .admin-report-item span {
  line-height: 1.5;
  min-width: 0;
  overflow-wrap: anywhere;
  text-align: right;
  word-break: break-word;
}

#adminMobileUpdateDetails .admin-report-item small {
  border-top: 1px solid rgba(148, 163, 184, 0.18);
  margin-top: 1px;
  padding-top: 8px;
}

.admin-mobile-update-form .form-label {
  color: #334155;
  font-size: 0.76rem;
  font-weight: 850;
  margin-bottom: 8px;
}

.admin-mobile-update-form .form-control {
  border-color: #cbd5e1;
  border-radius: 10px;
  box-shadow: none;
  min-height: 46px;
  padding: 10px 13px;
}

.admin-mobile-update-form .form-control:focus {
  border-color: #117f73;
  box-shadow: 0 0 0 3px rgba(17, 127, 115, 0.12);
}

.admin-mobile-update-form textarea.form-control {
  min-height: 118px;
  resize: vertical;
}

.admin-mobile-update-form .mb-3 {
  margin-bottom: 20px !important;
}

.admin-mobile-update-form small.text-muted {
  display: block;
  line-height: 1.5;
  margin-top: 8px;
  overflow-wrap: anywhere;
}

.admin-mobile-form-actions {
  align-items: center;
  border-top: 1px solid #e2e8f0;
  display: flex;
  gap: 18px;
  justify-content: space-between;
  margin-top: 4px;
  padding-top: 20px;
}

.admin-mobile-form-actions small {
  color: #64748b;
  font-size: 0.74rem;
  font-weight: 650;
  line-height: 1.45;
  max-width: 260px;
}

.admin-mobile-form-actions .btn {
  flex: 0 0 auto;
  min-height: 44px;
  min-width: 190px;
}

.admin-login-monitor-card {
  overflow: hidden;
}

.admin-login-monitor-card > .card-body {
  padding: 0;
}

.admin-login-table-header {
  align-items: center;
  border-bottom: 1px solid #e2e8f0;
  margin: 0;
  padding: 24px;
}

.admin-login-table-heading {
  align-items: center;
  display: flex;
  gap: 14px;
  min-width: 0;
}

.admin-login-table-icon {
  align-items: center;
  background: linear-gradient(145deg, #e0f2fe, #dbeafe);
  border: 1px solid rgba(37, 99, 235, 0.14);
  border-radius: 12px;
  color: #1d4ed8;
  display: inline-flex;
  flex: 0 0 48px;
  font-size: 24px;
  height: 48px;
  justify-content: center;
  width: 48px;
}

.admin-login-table-eyebrow {
  color: #117f73;
  display: block;
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.09em;
  margin-bottom: 3px;
  text-transform: uppercase;
}

.admin-login-table-header .card-title {
  font-size: 1.05rem;
  height: auto;
  line-height: 1.35;
  margin: 0 0 3px;
  overflow: visible;
}

.admin-login-table-header .card-subtitle {
  line-height: 1.45;
  margin: 0;
}

.admin-login-table-tools {
  align-items: flex-end;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: min(100%, 470px);
}

.admin-login-directory-count {
  align-items: center;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  color: #475569;
  display: inline-flex;
  font-size: 0.72rem;
  font-weight: 800;
  min-height: 26px;
  padding: 0 10px;
}

.admin-login-toolbar {
  grid-template-columns: minmax(220px, 1fr) 160px;
  max-width: 470px;
}

.admin-login-search {
  display: block;
  margin: 0;
  position: relative;
}

.admin-login-search > i {
  color: #64748b;
  font-size: 19px;
  left: 13px;
  pointer-events: none;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
}

.admin-login-search .form-control {
  padding-left: 40px;
}

.admin-login-toolbar .form-control,
.admin-login-toolbar .form-select {
  border-color: #cbd5e1;
  border-radius: 9px;
  box-shadow: none;
}

.admin-login-toolbar .form-control:focus,
.admin-login-toolbar .form-select:focus {
  border-color: #117f73;
  box-shadow: 0 0 0 3px rgba(17, 127, 115, 0.12);
}

.admin-login-table-shell {
  margin: 0;
}

.admin-login-monitor-table {
  min-width: 1100px;
  width: 100%;
}

.admin-login-monitor-table thead th {
  background: #f8fafc;
  border-bottom: 1px solid #dbe3ee;
  border-top: 0;
  color: #475569;
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.065em;
  padding: 13px 18px;
  text-transform: uppercase;
  white-space: nowrap;
}

.admin-login-monitor-table tbody td {
  border-bottom: 1px solid #edf1f6;
  min-width: 0;
  padding: 15px 18px;
}

.admin-login-monitor-table tbody tr {
  transition: background-color 0.16s ease, box-shadow 0.16s ease;
}

.admin-login-monitor-table tbody tr:hover {
  background: #f8fbfd;
  box-shadow: inset 3px 0 0 #117f73;
}

.admin-login-monitor-table tbody tr:last-child td {
  border-bottom: 0;
}

.admin-login-account-cell {
  width: 29%;
}

.admin-login-account {
  align-items: center;
  display: flex;
  gap: 12px;
  min-width: 0;
}

.admin-login-account > div {
  min-width: 0;
}

.admin-login-avatar {
  align-items: center;
  background: linear-gradient(145deg, #dbeafe, #ccfbf1);
  border: 1px solid rgba(17, 127, 115, 0.16);
  border-radius: 10px;
  color: #0f766e;
  display: inline-flex;
  flex: 0 0 42px;
  font-size: 0.78rem;
  font-weight: 900;
  height: 42px;
  justify-content: center;
  letter-spacing: 0.02em;
  width: 42px;
}

.admin-login-account > div strong,
.admin-login-account > div span {
  display: block;
  max-width: 260px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-login-account strong {
  font-size: 0.88rem;
  margin-bottom: 3px;
}

.admin-login-account div > span {
  color: #64748b;
  font-size: 0.75rem;
}

.admin-login-status {
  align-items: center;
  border-radius: 999px;
  display: inline-flex;
  font-size: 0.7rem;
  font-weight: 850;
  gap: 7px;
  min-height: 29px;
  padding: 0 10px;
  white-space: nowrap;
}

.admin-login-status-dot {
  background: currentColor;
  border-radius: 50%;
  flex: 0 0 7px;
  height: 7px;
  width: 7px;
}

.admin-login-status.is-online {
  background: rgba(22, 163, 74, 0.11);
  color: #15803d;
}

.admin-login-status.is-active {
  background: rgba(37, 99, 235, 0.1);
  color: #1d4ed8;
}

.admin-login-status.is-pending {
  background: rgba(217, 119, 6, 0.12);
  color: #92400e;
}

.admin-login-status.is-rejected {
  background: rgba(220, 38, 38, 0.1);
  color: #b91c1c;
}

.admin-login-status.is-never {
  background: rgba(100, 116, 139, 0.12);
  color: #475569;
}

.admin-login-date {
  display: flex;
  flex-direction: column;
  gap: 3px;
  white-space: nowrap;
}

.admin-login-date strong {
  font-size: 0.78rem;
  font-weight: 800;
}

.admin-login-date small {
  color: #64748b;
  font-size: 0.68rem;
  font-weight: 650;
}

.admin-login-count {
  align-items: center;
  background: #f1f5f9;
  border: 1px solid #dbe3ee;
  border-radius: 8px;
  color: #0f172a;
  display: inline-flex;
  font-size: 0.82rem;
  font-weight: 900;
  justify-content: center;
  min-height: 32px;
  min-width: 42px;
  padding: 0 9px;
}

.admin-login-empty {
  align-items: center;
  color: #64748b;
  display: flex;
  flex-direction: column;
  gap: 4px;
  justify-content: center;
  min-height: 180px;
  text-align: center;
}

.admin-login-empty i {
  color: #94a3b8;
  font-size: 30px;
  margin-bottom: 3px;
}

.admin-login-empty strong {
  color: #334155;
  font-size: 0.9rem;
}

.admin-login-empty span {
  font-size: 0.78rem;
}

.admin-login-pagination {
  border-top: 1px solid #e2e8f0;
  margin: 0;
  padding: 16px 24px;
}

.admin-login-history-cell {
  width: 112px;
}

.admin-login-history-button {
  border-radius: 8px;
  font-size: 0.72rem;
  font-weight: 800;
  min-height: 34px;
  padding: 6px 11px;
}

.offcanvas.admin-login-history-panel {
  --bs-offcanvas-width: min(620px, 100vw);
  background: #f8fafc;
  border-left: 1px solid #dbe3ef;
  bottom: 0;
  box-shadow: -24px 0 54px rgba(15, 23, 42, 0.2);
  display: flex;
  flex-direction: column;
  left: auto;
  max-width: 100vw;
  position: fixed;
  right: 0;
  top: 0;
  transform: translateX(104%);
  transition: transform 0.24s ease, visibility 0.24s ease;
  visibility: hidden;
  width: var(--bs-offcanvas-width);
  z-index: 1096;
}

.admin-login-history-panel.show {
  transform: translateX(0);
  visibility: visible;
}

.admin-login-history-backdrop {
  background: rgba(15, 23, 42, 0.56);
  border: 0;
  bottom: 0;
  cursor: default;
  left: 0;
  opacity: 0;
  padding: 0;
  pointer-events: none;
  position: fixed;
  right: 0;
  top: 0;
  transition: opacity 0.2s ease;
  z-index: 1095;
}

.admin-login-history-backdrop.show {
  opacity: 1;
  pointer-events: auto;
}

body.admin-login-history-open {
  overflow: hidden;
}

.admin-login-history-panel .offcanvas-header {
  align-items: flex-start;
  background: #fff;
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  flex: 0 0 auto;
  gap: 18px;
  justify-content: space-between;
  padding: 22px 26px;
}

.admin-login-history-panel .offcanvas-header > div {
  min-width: 0;
}

.admin-login-history-panel .metric-label {
  color: #117f73;
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.admin-login-history-panel .offcanvas-title {
  color: #0f172a;
  font-size: 1.18rem;
  font-weight: 900;
  line-height: 1.3;
  margin: 4px 0;
  overflow-wrap: anywhere;
}

.admin-login-history-panel .offcanvas-header p {
  color: #64748b;
  font-size: 0.78rem;
  font-weight: 650;
  line-height: 1.45;
  margin: 0;
}

.admin-login-history-close {
  align-items: center;
  border-radius: 9px;
  display: inline-flex;
  flex: 0 0 38px;
  font-size: 18px;
  height: 38px;
  justify-content: center;
  padding: 0;
  width: 38px;
}

.admin-login-history-panel .offcanvas-body {
  background: #f8fafc;
  flex: 1 1 auto;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 22px 26px 28px;
}

.admin-login-history-account {
  align-items: center;
  background: #fff;
  border: 1px solid #dfe7f0;
  border-radius: 14px;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
  display: flex;
  gap: 15px;
  padding: 18px;
}

.admin-login-history-avatar {
  align-items: center;
  background: linear-gradient(145deg, #dbeafe, #ccfbf1);
  border: 1px solid rgba(17, 127, 115, 0.16);
  border-radius: 13px;
  color: #0f766e;
  display: inline-flex;
  flex: 0 0 54px;
  font-size: 0.92rem;
  font-weight: 900;
  height: 54px;
  justify-content: center;
  letter-spacing: 0.02em;
  width: 54px;
}

.admin-login-history-identity {
  min-width: 0;
}

.admin-login-history-identity > span:first-child {
  color: #117f73;
  display: block;
  font-size: 0.64rem;
  font-weight: 900;
  letter-spacing: 0.07em;
  margin-bottom: 2px;
  text-transform: uppercase;
}

.admin-login-history-identity > strong,
.admin-login-history-identity > small {
  display: block;
  max-width: 430px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-login-history-identity > strong {
  color: #0f172a;
  font-size: 0.96rem;
  font-weight: 900;
}

.admin-login-history-identity > small {
  color: #64748b;
  font-size: 0.74rem;
  margin-top: 2px;
}

.admin-login-history-badges {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 10px;
}

.admin-login-history-badges .admin-role-badge,
.admin-login-history-badges .admin-login-status {
  min-height: 25px;
}

.admin-login-history-stats {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 14px 0 18px;
}

.admin-login-history-stats article {
  align-items: center;
  background: #fff;
  border: 1px solid #dfe7f0;
  border-radius: 11px;
  display: flex;
  gap: 12px;
  min-height: 68px;
  min-width: 0;
  padding: 13px 14px;
}

.admin-login-history-stats article > i {
  align-items: center;
  background: #eff6ff;
  border-radius: 8px;
  color: #2563eb;
  display: inline-flex;
  flex: 0 0 36px;
  font-size: 18px;
  height: 36px;
  justify-content: center;
  width: 36px;
}

.admin-login-history-stats .history-logouts > i {
  background: #ecfeff;
  color: #0e7490;
}

.admin-login-history-stats .history-failed > i {
  background: #fef2f2;
  color: #dc2626;
}

.admin-login-history-stats .history-sessions > i {
  background: #ecfdf5;
  color: #16a34a;
}

.admin-login-history-stats article div {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}

.admin-login-history-stats strong,
.admin-login-history-stats span {
  display: block;
}

.admin-login-history-stats strong {
  color: #0f172a;
  font-size: 1rem;
  font-weight: 900;
  line-height: 1.1;
}

.admin-login-history-stats span {
  color: #64748b;
  font-size: 0.68rem;
  font-weight: 750;
  line-height: 1.25;
  margin-top: 3px;
}

.admin-login-history-events {
  background: #fff;
  border: 1px solid #dfe7f0;
  border-radius: 14px;
  overflow: hidden;
}

.admin-login-history-events-header {
  align-items: center;
  display: flex;
  gap: 14px;
  justify-content: space-between;
  padding: 17px 18px 14px;
}

.admin-login-history-events-header > div > span {
  color: #117f73;
  display: block;
  font-size: 0.63rem;
  font-weight: 900;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.admin-login-history-events-header h6 {
  color: #0f172a;
  font-size: 0.92rem;
  font-weight: 900;
  margin: 3px 0 0;
}

.admin-login-history-event-count {
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  color: #475569;
  flex: 0 0 auto;
  font-size: 0.68rem;
  font-weight: 800;
  padding: 5px 9px;
}

.admin-login-history-tabs {
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
  border-top: 1px solid #e2e8f0;
  display: grid;
  gap: 6px;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  padding: 8px;
}

.admin-login-history-tabs button {
  background: transparent;
  border: 0;
  border-radius: 7px;
  color: #64748b;
  font-size: 0.68rem;
  font-weight: 800;
  min-height: 32px;
  padding: 6px 7px;
}

.admin-login-history-tabs button:hover,
.admin-login-history-tabs button:focus-visible {
  background: #eaf2f7;
  color: #0f766e;
  outline: none;
}

.admin-login-history-tabs button.active {
  background: #117f73;
  box-shadow: 0 4px 10px rgba(17, 127, 115, 0.2);
  color: #fff;
}

.admin-login-history-list {
  display: grid;
  gap: 0;
}

.admin-login-history-event {
  align-items: flex-start;
  border-bottom: 1px solid #edf1f6;
  display: grid;
  gap: 12px;
  grid-template-columns: 38px minmax(0, 1fr);
  padding: 16px 18px;
}

.admin-login-history-event:last-child {
  border-bottom: 0;
}

.admin-login-history-event-icon {
  align-items: center;
  background: #eff6ff;
  border-radius: 10px;
  color: #2563eb;
  display: inline-flex;
  font-size: 18px;
  height: 38px;
  justify-content: center;
  width: 38px;
}

.admin-login-history-event.event-logout .admin-login-history-event-icon {
  background: #ecfeff;
  color: #0e7490;
}

.admin-login-history-event.event-failed .admin-login-history-event-icon {
  background: #fef2f2;
  color: #dc2626;
}

.admin-login-history-event.event-session .admin-login-history-event-icon {
  background: #ecfdf5;
  color: #16a34a;
}

.admin-login-history-event-body {
  min-width: 0;
}

.admin-login-history-event-heading {
  align-items: flex-start;
  display: flex;
  gap: 12px;
  justify-content: space-between;
}

.admin-login-history-event-heading strong {
  color: #0f172a;
  font-size: 0.8rem;
  font-weight: 900;
}

.admin-login-history-event-heading time {
  color: #64748b;
  flex: 0 0 auto;
  font-size: 0.67rem;
  font-weight: 750;
  font-variant-numeric: tabular-nums;
  text-align: right;
  white-space: nowrap;
}

.admin-login-history-event-body p {
  color: #475569;
  font-size: 0.75rem;
  line-height: 1.5;
  margin: 4px 0 0;
}

.admin-login-history-event-meta {
  display: grid;
  gap: 5px;
  margin-top: 9px;
}

.admin-login-history-event-meta span {
  align-items: center;
  color: #64748b;
  display: flex;
  font-size: 0.68rem;
  gap: 7px;
  line-height: 1.4;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-login-history-event-meta i {
  color: #94a3b8;
  flex: 0 0 auto;
  font-size: 14px;
}

.admin-login-history-empty {
  align-items: center;
  color: #64748b;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 210px;
  padding: 28px;
  text-align: center;
}

.admin-login-history-empty > i {
  color: #94a3b8;
  font-size: 32px;
  margin-bottom: 7px;
}

.admin-login-history-empty strong {
  color: #334155;
  font-size: 0.86rem;
}

.admin-login-history-empty span {
  font-size: 0.74rem;
  line-height: 1.45;
  margin-top: 4px;
  max-width: 320px;
}

.admin-stat-card {
  border-top: 4px solid #117f73;
}

.admin-stat-card.users {
  border-top-color: #2563eb;
}

.admin-stat-card.profiles {
  border-top-color: #117f73;
}

.admin-stat-card.active {
  border-top-color: #16a34a;
}

.admin-stat-card.pending {
  border-top-color: #d97706;
}

.admin-stat-card.rating {
  border-top-color: #7c3aed;
}

.admin-stat-card.risk {
  border-top-color: #dc2626;
}

.admin-stat-card .card-body {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 118px;
}

.admin-stat-card span,
.admin-stat-card small {
  color: #64748b;
  font-size: 0.8rem;
  font-weight: 700;
}

.admin-stat-card strong {
  color: #172033;
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.1;
}

.admin-card-header {
  align-items: flex-start;
  display: flex;
  gap: 16px;
  justify-content: space-between;
  margin-bottom: 20px;
}

.admin-card-header .card-title {
  color: #172033;
  margin-bottom: 4px;
}

.admin-card-header .card-subtitle {
  color: #64748b;
  margin: 0;
}

.admin-fit-score {
  align-items: center;
  background: rgba(17, 127, 115, 0.1);
  border: 1px solid rgba(17, 127, 115, 0.18);
  border-radius: 999px;
  color: #0f766e;
  display: inline-flex;
  font-size: 0.82rem;
  font-weight: 800;
  justify-content: center;
  min-height: 34px;
  padding: 0 12px;
  white-space: nowrap;
}

.admin-trend-bars {
  align-items: end;
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(7, minmax(54px, 1fr));
  min-height: 190px;
}

.admin-trend-day {
  display: grid;
  gap: 8px;
  justify-items: center;
  min-width: 0;
}

.admin-trend-stack {
  align-items: end;
  background: #eef3f8;
  border-radius: 8px;
  display: flex;
  gap: 3px;
  height: 118px;
  justify-content: center;
  overflow: hidden;
  padding: 8px 7px;
  width: 100%;
}

.admin-trend-stack span {
  border-radius: 999px 999px 0 0;
  display: block;
  min-height: 6px;
  width: 30%;
}

.admin-trend-stack .trend-meals {
  background: #2563eb;
}

.admin-trend-stack .trend-activities {
  background: #16a34a;
}

.admin-trend-stack .trend-feedback {
  background: #d97706;
}

.admin-trend-day strong {
  color: #172033;
  font-weight: 800;
}

.admin-trend-day small,
.admin-trend-day em {
  color: #64748b;
  font-size: 0.72rem;
  font-style: normal;
  font-weight: 700;
  text-align: center;
}

.admin-review-list,
.admin-distribution-list,
.admin-attention-list,
.admin-compact-list,
.admin-feedback-list {
  display: grid;
  gap: 12px;
}

.admin-review-item,
.admin-distribution-item,
.admin-attention-item,
.admin-compact-item,
.admin-feedback-item {
  background: #f8fafc;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 8px;
}

.admin-review-item,
.admin-distribution-item {
  display: grid;
  gap: 10px;
  padding: 14px;
}

.admin-review-item > div:first-child,
.admin-distribution-item > div:first-child {
  align-items: center;
  display: flex;
  gap: 12px;
  justify-content: space-between;
}

.admin-review-item strong,
.admin-distribution-item strong,
.admin-attention-item strong,
.admin-compact-item strong,
.admin-feedback-item strong,
.admin-user-table td strong {
  color: #172033;
  display: block;
  font-weight: 800;
}

.admin-distribution-item span,
.admin-attention-item small,
.admin-compact-item small,
.admin-compact-item p,
.admin-feedback-item small,
.admin-feedback-item p,
.admin-user-table td span {
  color: #64748b;
  display: block;
  font-size: 0.78rem;
  line-height: 1.4;
}

.admin-meter {
  background: #e2e8f0;
  border-radius: 999px;
  height: 8px;
  overflow: hidden;
}

.admin-meter span {
  background: #117f73;
  border-radius: inherit;
  display: block;
  height: 100%;
}

.admin-review-item:nth-child(1) .admin-meter span {
  background: #d97706;
}

.admin-review-item:nth-child(2) .admin-meter span {
  background: #16a34a;
}

.admin-review-item:nth-child(3) .admin-meter span {
  background: #dc2626;
}

.admin-review-item:nth-child(4) .admin-meter span {
  background: #2563eb;
}

.admin-attention-item {
  align-items: center;
  display: grid;
  gap: 12px;
  grid-template-columns: 92px minmax(0, 1fr);
  padding: 14px;
}

.admin-attention-item > span,
.admin-signal-type,
.admin-rank,
.admin-profile-chip,
.admin-symptom-chip {
  align-items: center;
  border-radius: 999px;
  display: inline-flex;
  font-size: 0.72rem;
  font-weight: 800;
  justify-content: center;
  min-height: 28px;
  padding: 0 10px;
  text-align: center;
}

.admin-attention-item > span {
  background: rgba(37, 99, 235, 0.1);
  color: #1d4ed8;
}

.admin-attention-item.attention-watch > span {
  background: rgba(220, 38, 38, 0.1);
  color: #b91c1c;
}

.admin-attention-item.attention-idle > span {
  background: rgba(217, 119, 6, 0.12);
  color: #92400e;
}

.admin-users-card {
  margin-bottom: 24px;
}

.admin-toolbar {
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(220px, 1fr) 170px;
  max-width: 470px;
  width: 100%;
}

.admin-toolbar .form-control,
.admin-toolbar .form-select {
  min-height: 42px;
}

.admin-toolbar-single {
  grid-template-columns: minmax(220px, 1fr);
  max-width: 320px;
}

.admin-user-table td {
  min-width: 118px;
  vertical-align: middle;
}

.admin-user-table td:first-child {
  min-width: 210px;
}

.admin-user-table td .admin-activity-type {
  align-items: center;
  border-radius: 999px;
  display: inline-flex;
  font-size: 0.72rem;
  font-weight: 850;
  gap: 7px;
  line-height: 1.2;
  min-height: 30px;
  padding: 6px 10px;
  white-space: nowrap;
  width: fit-content;
}

.admin-user-table td .admin-activity-type i {
  flex: 0 0 auto;
  font-size: 15px;
}

.admin-user-table td .admin-activity-detail {
  line-height: 1.5;
  max-width: 420px;
  white-space: normal;
}

html:not([data-theme="dark"]) .admin-user-table td .admin-activity-type.is-account-change {
  background: rgba(13, 148, 136, 0.11);
  color: #0f766e !important;
}

html:not([data-theme="dark"]) .admin-user-table td .admin-activity-type.is-login {
  background: rgba(37, 99, 235, 0.1);
  color: #1d4ed8 !important;
}

html:not([data-theme="dark"]) .admin-user-table td .admin-activity-type.is-logout {
  background: rgba(8, 145, 178, 0.1);
  color: #0e7490 !important;
}

html:not([data-theme="dark"]) .admin-user-table td .admin-activity-type.is-activity {
  background: #f1f5f9;
  color: #475569 !important;
}

html[data-theme="dark"] .admin-user-table td .admin-activity-type.is-account-change {
  background: rgba(45, 212, 191, 0.14);
  color: #99f6e4;
}

html[data-theme="dark"] .admin-user-table td .admin-activity-type.is-login {
  background: rgba(96, 165, 250, 0.14);
  color: #bfdbfe;
}

html[data-theme="dark"] .admin-user-table td .admin-activity-type.is-logout {
  background: rgba(34, 211, 238, 0.12);
  color: #a5f3fc;
}

html[data-theme="dark"] .admin-user-table td .admin-activity-type.is-activity {
  background: rgba(148, 163, 184, 0.12);
  color: #cbd5e1;
}

.admin-registered-users-table {
  min-width: 1080px;
  table-layout: fixed;
  width: 100%;
}

.admin-registered-users-table th,
.admin-registered-users-table td {
  padding-left: 14px;
  padding-right: 14px;
}

.admin-registered-users-table th {
  vertical-align: middle;
  white-space: nowrap;
}

.admin-registered-users-table .admin-user-col {
  width: 20%;
}

.admin-registered-users-table .admin-date-col {
  width: 10%;
}

.admin-registered-users-table .admin-profile-col,
.admin-registered-users-table .admin-goal-col {
  width: 14%;
}

.admin-registered-users-table .admin-count-col {
  width: 8%;
}

.admin-registered-users-table .admin-activity-col {
  width: 16%;
}

.admin-registered-users-table .admin-action-col {
  width: 10%;
}

.admin-registered-users-table .admin-user-cell {
  min-width: 0;
  overflow-wrap: anywhere;
}

.admin-registered-users-table .admin-date-cell,
.admin-registered-users-table .admin-count-cell,
.admin-registered-users-table .admin-activity-cell,
.admin-registered-users-table .admin-action-cell {
  min-width: 0;
  vertical-align: middle;
}

.admin-registered-users-table .admin-date-cell {
  white-space: nowrap;
}

.admin-registered-users-table .admin-count-cell strong {
  font-size: 0.96rem;
}

.admin-registered-users-table .admin-activity-cell strong,
.admin-registered-users-table .admin-activity-cell span {
  white-space: nowrap;
}

.admin-registered-users-table td .admin-activity-status {
  align-items: center;
  border-radius: 999px;
  display: inline-flex;
  font-size: 0.69rem;
  font-style: normal;
  font-weight: 800;
  justify-content: center;
  line-height: 1;
  margin-top: 7px;
  min-height: 24px;
  padding: 0 9px;
}

.admin-registered-users-table td .admin-activity-status.is-active {
  background: rgba(22, 163, 74, 0.12);
  color: #15803d;
}

.admin-registered-users-table td .admin-activity-status.is-inactive {
  background: rgba(217, 119, 6, 0.13);
  color: #92400e;
}

.admin-registered-users-table .admin-action-cell .btn {
  border-radius: 8px;
  font-weight: 700;
  min-width: 76px;
}

.admin-role-badge {
  align-items: center;
  border-radius: 999px;
  display: inline-flex;
  font-size: 0.72rem;
  font-weight: 800;
  justify-content: center;
  min-height: 28px;
  padding: 0 10px;
}

.admin-role-badge.role-admin {
  background: rgba(37, 99, 235, 0.1);
  color: #1d4ed8;
}

.admin-role-badge.role-nutritionist {
  background: rgba(17, 127, 115, 0.1);
  color: #0f766e;
}

.admin-role-badge.role-user {
  background: rgba(100, 116, 139, 0.12);
  color: #475569;
}

.admin-compact-item {
  align-items: center;
  display: grid;
  gap: 12px;
  grid-template-columns: auto minmax(0, 1fr) auto;
  padding: 14px;
}

.admin-compact-item > div {
  min-width: 0;
}

.admin-compact-item p {
  margin: 4px 0 0;
}

.admin-compact-item em {
  color: #117f73;
  font-size: 0.78rem;
  font-style: normal;
  font-weight: 800;
  white-space: nowrap;
}

.admin-staff-authorization-item {
  grid-template-columns: auto minmax(0, 1fr) auto;
}

.admin-authorization-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.admin-rank {
  background: rgba(37, 99, 235, 0.1);
  color: #1d4ed8;
  min-width: 42px;
}

.admin-signal-type {
  background: rgba(17, 127, 115, 0.1);
  color: #0f766e;
  min-width: 68px;
}

.admin-profile-chip,
.admin-symptom-chip {
  min-width: 76px;
}

.admin-profile-chip.ready {
  background: rgba(22, 163, 74, 0.1);
  color: #15803d;
}

.admin-profile-chip.pending {
  background: rgba(217, 119, 6, 0.12);
  color: #92400e;
}

.admin-symptom-chip.has-symptoms {
  background: rgba(220, 38, 38, 0.1);
  color: #b91c1c;
}

.admin-symptom-chip.clear {
  background: rgba(37, 99, 235, 0.1);
  color: #1d4ed8;
}

.admin-feedback-card {
  grid-column: span 1;
}

.admin-feedback-item {
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(0, 1fr) auto;
  padding: 14px;
}

.admin-feedback-item > span {
  align-items: center;
  background: rgba(124, 58, 237, 0.1);
  border-radius: 8px;
  color: #6d28d9;
  display: inline-flex;
  font-weight: 800;
  height: 36px;
  justify-content: center;
  min-width: 46px;
}

.admin-feedback-item p {
  grid-column: 1 / -1;
  margin: 0;
}

.admin-report-item small {
  color: #64748b;
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1.4;
}

.admin-empty-list {
  align-items: center;
  background: #f8fafc;
  border: 1px dashed rgba(148, 163, 184, 0.45);
  border-radius: 8px;
  color: #64748b;
  display: flex;
  font-size: 0.86rem;
  font-weight: 700;
  justify-content: center;
  min-height: 82px;
  padding: 18px;
  text-align: center;
}

html:not([data-theme="dark"]) .admin-app,
html:not([data-theme="dark"]) .admin-content {
  color: #1e293b;
}

html:not([data-theme="dark"]) .admin-workbench-header h2,
html:not([data-theme="dark"]) .admin-app .welcome-text,
html:not([data-theme="dark"]) .admin-app .welcome-text .text-black,
html:not([data-theme="dark"]) .admin-stat-card strong,
html:not([data-theme="dark"]) .admin-card-header .card-title,
html:not([data-theme="dark"]) .admin-trend-day strong,
html:not([data-theme="dark"]) .admin-review-item strong,
html:not([data-theme="dark"]) .admin-distribution-item strong,
html:not([data-theme="dark"]) .admin-attention-item strong,
html:not([data-theme="dark"]) .admin-compact-item strong,
html:not([data-theme="dark"]) .admin-feedback-item strong,
html:not([data-theme="dark"]) .admin-user-table td strong,
html:not([data-theme="dark"]) .admin-app .table thead th {
  color: #0f172a;
}

html:not([data-theme="dark"]) .admin-workbench-header p,
html:not([data-theme="dark"]) .admin-stat-card span,
html:not([data-theme="dark"]) .admin-stat-card small,
html:not([data-theme="dark"]) .admin-card-header .card-subtitle,
html:not([data-theme="dark"]) .admin-trend-day small,
html:not([data-theme="dark"]) .admin-trend-day em,
html:not([data-theme="dark"]) .admin-distribution-item span,
html:not([data-theme="dark"]) .admin-attention-item small,
html:not([data-theme="dark"]) .admin-compact-item small,
html:not([data-theme="dark"]) .admin-compact-item p,
html:not([data-theme="dark"]) .admin-feedback-item small,
html:not([data-theme="dark"]) .admin-feedback-item p,
html:not([data-theme="dark"]) .admin-report-item small,
html:not([data-theme="dark"]) .admin-user-table td,
html:not([data-theme="dark"]) .admin-user-table td span,
html:not([data-theme="dark"]) .admin-empty-list,
html:not([data-theme="dark"]) .admin-app .text-muted,
html:not([data-theme="dark"]) .admin-app .welcome-sub-text {
  color: #334155 !important;
}

html:not([data-theme="dark"]) .admin-app .form-control,
html:not([data-theme="dark"]) .admin-app .form-select {
  color: #1e293b;
}

html:not([data-theme="dark"]) .admin-app .form-control::placeholder {
  color: #475569;
  opacity: 1;
}

html:not([data-theme="dark"]) .admin-login-monitor-table td .admin-login-avatar {
  color: #0f766e !important;
}

html:not([data-theme="dark"]) .admin-login-monitor-table td .admin-login-account div > span {
  color: #64748b !important;
}

html:not([data-theme="dark"]) .admin-login-monitor-table td .admin-role-badge.role-admin,
html:not([data-theme="dark"]) .admin-login-monitor-table td .admin-login-status.is-active {
  color: #1d4ed8 !important;
}

html:not([data-theme="dark"]) .admin-login-monitor-table td .admin-role-badge.role-nutritionist {
  color: #0f766e !important;
}

html:not([data-theme="dark"]) .admin-login-monitor-table td .admin-role-badge.role-user,
html:not([data-theme="dark"]) .admin-login-monitor-table td .admin-login-status.is-never {
  color: #475569 !important;
}

html:not([data-theme="dark"]) .admin-login-monitor-table td .admin-login-status.is-online {
  color: #15803d !important;
}

html:not([data-theme="dark"]) .admin-login-monitor-table td .admin-login-status.is-pending {
  color: #92400e !important;
}

html:not([data-theme="dark"]) .admin-login-monitor-table td .admin-login-status.is-rejected {
  color: #b91c1c !important;
}

html:not([data-theme="dark"]) .admin-login-monitor-table td .admin-login-count {
  color: #0f172a !important;
}

html:not([data-theme="dark"]) .admin-login-monitor-table td .admin-login-status-dot {
  color: inherit !important;
}

html:not([data-theme="dark"]) .admin-app .navbar .navbar-menu-wrapper .navbar-nav .nav-item .welcome-text,
html:not([data-theme="dark"]) .admin-app .navbar .navbar-menu-wrapper .navbar-nav .nav-item .welcome-text .text-black,
html:not([data-theme="dark"]) .admin-app .navbar .navbar-menu-wrapper .navbar-nav .nav-item .welcome-text #navUserName {
  color: #111827 !important;
  font-weight: 800;
  -webkit-text-fill-color: #111827;
}

html:not([data-theme="dark"]) .admin-app .navbar .navbar-menu-wrapper .navbar-nav .nav-item .welcome-sub-text {
  color: #334155 !important;
  font-weight: 700;
  -webkit-text-fill-color: #334155;
}

html:not([data-theme="dark"]) .admin-app .sidebar .nav .nav-item.nav-category {
  color: #334155;
  font-weight: 800;
}

html:not([data-theme="dark"]) .admin-app .sidebar .nav .nav-item .nav-link,
html:not([data-theme="dark"]) .admin-app .sidebar .nav .nav-item .nav-link .menu-title,
html:not([data-theme="dark"]) .admin-app .sidebar .nav .nav-item .nav-link .menu-icon,
html:not([data-theme="dark"]) .admin-app.sidebar-icon-only .sidebar .nav .nav-item .nav-link i.menu-icon {
  color: #1e293b !important;
}

html:not([data-theme="dark"]) .admin-app .sidebar .nav .nav-item .nav-link:hover,
html:not([data-theme="dark"]) .admin-app .sidebar .nav .nav-item .nav-link:focus {
  background: #eef6ff;
  color: #0f172a !important;
}

html:not([data-theme="dark"]) .admin-app .sidebar .nav .nav-item .nav-link:hover .menu-title,
html:not([data-theme="dark"]) .admin-app .sidebar .nav .nav-item .nav-link:hover .menu-icon,
html:not([data-theme="dark"]) .admin-app .sidebar .nav .nav-item .nav-link:focus .menu-title,
html:not([data-theme="dark"]) .admin-app .sidebar .nav .nav-item .nav-link:focus .menu-icon {
  color: #0f172a !important;
}

html:not([data-theme="dark"]) .admin-app .sidebar .nav .nav-item .nav-link.active,
html:not([data-theme="dark"]) .admin-app .sidebar .nav .nav-item.active .nav-link {
  background: #dbeafe;
  box-shadow: inset 3px 0 0 #1d4ed8;
  color: #172554 !important;
}

html:not([data-theme="dark"]) .admin-app .sidebar .nav .nav-item .nav-link.active .menu-title,
html:not([data-theme="dark"]) .admin-app .sidebar .nav .nav-item .nav-link.active .menu-icon,
html:not([data-theme="dark"]) .admin-app .sidebar .nav .nav-item.active .nav-link .menu-title,
html:not([data-theme="dark"]) .admin-app .sidebar .nav .nav-item.active .nav-link .menu-icon,
html:not([data-theme="dark"]) .admin-app.sidebar-icon-only .sidebar .nav .nav-item .nav-link.active i.menu-icon,
html:not([data-theme="dark"]) .admin-app.sidebar-icon-only .sidebar .nav .nav-item.active .nav-link i.menu-icon {
  color: #172554 !important;
}

html[data-theme="dark"] .admin-workbench-header {
  border-bottom-color: rgba(148, 163, 184, 0.2);
}

html[data-theme="dark"] .admin-mobile-update-grid .admin-card-header,
html[data-theme="dark"] .admin-mobile-form-actions,
html[data-theme="dark"] #adminMobileUpdateDetails .admin-report-item small {
  border-color: rgba(148, 163, 184, 0.18);
}

html[data-theme="dark"] .admin-mobile-update-form .form-label {
  color: #dbe7f5;
}

html[data-theme="dark"] .admin-mobile-form-actions small {
  color: #9ba8bb;
}

html[data-theme="dark"] .admin-workbench-header h2,
html[data-theme="dark"] .admin-stat-card strong,
html[data-theme="dark"] .admin-card-header .card-title,
html[data-theme="dark"] .admin-trend-day strong,
html[data-theme="dark"] .admin-review-item strong,
html[data-theme="dark"] .admin-distribution-item strong,
html[data-theme="dark"] .admin-attention-item strong,
html[data-theme="dark"] .admin-compact-item strong,
html[data-theme="dark"] .admin-feedback-item strong,
html[data-theme="dark"] .admin-user-table td strong {
  color: #e5edf8;
}

html[data-theme="dark"] .admin-workbench-header p,
html[data-theme="dark"] .admin-stat-card span,
html[data-theme="dark"] .admin-stat-card small,
html[data-theme="dark"] .admin-card-header .card-subtitle,
html[data-theme="dark"] .admin-trend-day small,
html[data-theme="dark"] .admin-trend-day em,
html[data-theme="dark"] .admin-distribution-item span,
html[data-theme="dark"] .admin-attention-item small,
html[data-theme="dark"] .admin-compact-item small,
html[data-theme="dark"] .admin-compact-item p,
html[data-theme="dark"] .admin-feedback-item small,
html[data-theme="dark"] .admin-feedback-item p,
html[data-theme="dark"] .admin-report-item small,
html[data-theme="dark"] .admin-user-table td span,
html[data-theme="dark"] .admin-empty-list {
  color: #9ba8bb;
}

html[data-theme="dark"] .admin-review-item,
html[data-theme="dark"] .admin-distribution-item,
html[data-theme="dark"] .admin-attention-item,
html[data-theme="dark"] .admin-compact-item,
html[data-theme="dark"] .admin-feedback-item,
html[data-theme="dark"] .admin-empty-list,
html[data-theme="dark"] .admin-trend-stack {
  background: #111827;
  border-color: rgba(148, 163, 184, 0.18);
}

html[data-theme="dark"] .admin-meter {
  background: #263244;
}

html[data-theme="dark"] .admin-fit-score {
  background: rgba(20, 184, 166, 0.13);
  border-color: rgba(20, 184, 166, 0.22);
  color: #5eead4;
}

html[data-theme="dark"] .admin-role-badge.role-admin {
  background: rgba(96, 165, 250, 0.14);
  color: #bfdbfe;
}

html[data-theme="dark"] .admin-role-badge.role-nutritionist {
  background: rgba(45, 212, 191, 0.14);
  color: #99f6e4;
}

html[data-theme="dark"] .admin-role-badge.role-user {
  background: rgba(148, 163, 184, 0.14);
  color: #cbd5e1;
}

html[data-theme="dark"] .admin-profile-chip.ready {
  background: rgba(34, 197, 94, 0.14);
  color: #bbf7d0;
}

html[data-theme="dark"] .admin-profile-chip.pending {
  background: rgba(251, 191, 36, 0.14);
  color: #fde68a;
}

html[data-theme="dark"] .admin-symptom-chip.has-symptoms {
  background: rgba(248, 113, 113, 0.14);
  color: #fecaca;
}

html[data-theme="dark"] .admin-symptom-chip.clear {
  background: rgba(96, 165, 250, 0.14);
  color: #bfdbfe;
}

html[data-theme="dark"] .admin-login-table-header,
html[data-theme="dark"] .admin-login-pagination {
  border-color: rgba(148, 163, 184, 0.18);
}

html[data-theme="dark"] .admin-login-table-icon {
  background: linear-gradient(145deg, rgba(37, 99, 235, 0.2), rgba(20, 184, 166, 0.15));
  border-color: rgba(96, 165, 250, 0.2);
  color: #93c5fd;
}

html[data-theme="dark"] .admin-login-directory-count,
html[data-theme="dark"] .admin-login-count {
  background: #111827;
  border-color: rgba(148, 163, 184, 0.2);
  color: #dbe7f5;
}

html[data-theme="dark"] .admin-login-monitor-table thead th {
  background: #111827;
  border-bottom-color: rgba(148, 163, 184, 0.2);
  color: #aebbd0;
}

html[data-theme="dark"] .admin-login-monitor-table tbody td {
  border-bottom-color: rgba(148, 163, 184, 0.14);
}

html[data-theme="dark"] .admin-login-monitor-table tbody tr:hover {
  background: rgba(15, 118, 110, 0.08);
  box-shadow: inset 3px 0 0 #2dd4bf;
}

html[data-theme="dark"] .admin-login-monitor-table td .admin-login-avatar {
  background: linear-gradient(145deg, rgba(37, 99, 235, 0.2), rgba(20, 184, 166, 0.18));
  border-color: rgba(45, 212, 191, 0.2);
  color: #99f6e4;
}

html[data-theme="dark"] .admin-login-monitor-table td .admin-login-count {
  color: #dbe7f5;
}

html[data-theme="dark"] .admin-login-monitor-table td .admin-login-status.is-online {
  background: rgba(34, 197, 94, 0.14);
  color: #86efac;
}

html[data-theme="dark"] .admin-login-monitor-table td .admin-login-status.is-active {
  background: rgba(96, 165, 250, 0.14);
  color: #bfdbfe;
}

html[data-theme="dark"] .admin-login-monitor-table td .admin-login-status.is-pending {
  background: rgba(251, 191, 36, 0.14);
  color: #fde68a;
}

html[data-theme="dark"] .admin-login-monitor-table td .admin-login-status.is-rejected {
  background: rgba(248, 113, 113, 0.14);
  color: #fecaca;
}

html[data-theme="dark"] .admin-login-monitor-table td .admin-login-status.is-never {
  background: rgba(148, 163, 184, 0.14);
  color: #cbd5e1;
}

html[data-theme="dark"] .admin-login-empty strong {
  color: #e5edf8;
}

html[data-theme="dark"] .admin-login-empty,
html[data-theme="dark"] .admin-login-empty span,
html[data-theme="dark"] .admin-login-date small {
  color: #9ba8bb;
}

html[data-theme="dark"] .admin-login-history-panel,
html[data-theme="dark"] .admin-login-history-panel .offcanvas-body {
  background: #0f172a;
  border-color: rgba(148, 163, 184, 0.2);
}

html[data-theme="dark"] .admin-login-history-panel .offcanvas-header,
html[data-theme="dark"] .admin-login-history-account,
html[data-theme="dark"] .admin-login-history-stats article,
html[data-theme="dark"] .admin-login-history-events {
  background: #111827;
  border-color: rgba(148, 163, 184, 0.2);
}

html[data-theme="dark"] .admin-login-history-panel .offcanvas-title,
html[data-theme="dark"] .admin-login-history-identity > strong,
html[data-theme="dark"] .admin-login-history-stats strong,
html[data-theme="dark"] .admin-login-history-events-header h6,
html[data-theme="dark"] .admin-login-history-event-heading strong,
html[data-theme="dark"] .admin-login-history-empty strong {
  color: #f1f5f9;
}

html[data-theme="dark"] .admin-login-history-panel .offcanvas-header p,
html[data-theme="dark"] .admin-login-history-identity > small,
html[data-theme="dark"] .admin-login-history-stats span,
html[data-theme="dark"] .admin-login-history-event-heading time,
html[data-theme="dark"] .admin-login-history-event-body p,
html[data-theme="dark"] .admin-login-history-event-meta span,
html[data-theme="dark"] .admin-login-history-empty,
html[data-theme="dark"] .admin-login-history-empty span {
  color: #9ba8bb;
}

html[data-theme="dark"] .admin-login-history-avatar {
  background: linear-gradient(145deg, rgba(37, 99, 235, 0.22), rgba(20, 184, 166, 0.18));
  border-color: rgba(45, 212, 191, 0.2);
  color: #99f6e4;
}

html[data-theme="dark"] .admin-login-history-tabs {
  background: #0b1220;
  border-color: rgba(148, 163, 184, 0.18);
}

html[data-theme="dark"] .admin-login-history-tabs button {
  color: #aebbd0;
}

html[data-theme="dark"] .admin-login-history-tabs button:hover,
html[data-theme="dark"] .admin-login-history-tabs button:focus-visible {
  background: rgba(45, 212, 191, 0.1);
  color: #99f6e4;
}

html[data-theme="dark"] .admin-login-history-tabs button.active {
  background: #0f766e;
  color: #fff;
}

html[data-theme="dark"] .admin-login-history-event {
  border-color: rgba(148, 163, 184, 0.14);
}

html[data-theme="dark"] .admin-login-history-event-count {
  background: #0b1220;
  border-color: rgba(148, 163, 184, 0.2);
  color: #cbd5e1;
}

html[data-theme="dark"] .admin-login-history-panel .admin-login-status.is-online {
  background: rgba(34, 197, 94, 0.14);
  color: #86efac;
}

html[data-theme="dark"] .admin-login-history-panel .admin-login-status.is-active {
  background: rgba(96, 165, 250, 0.14);
  color: #bfdbfe;
}

html[data-theme="dark"] .admin-login-history-panel .admin-login-status.is-pending {
  background: rgba(251, 191, 36, 0.14);
  color: #fde68a;
}

html[data-theme="dark"] .admin-login-history-panel .admin-login-status.is-rejected {
  background: rgba(248, 113, 113, 0.14);
  color: #fecaca;
}

html[data-theme="dark"] .admin-login-history-panel .admin-login-status.is-never {
  background: rgba(148, 163, 184, 0.14);
  color: #cbd5e1;
}

@media (max-width: 991px) {
  .admin-login-table-header {
    align-items: stretch;
    flex-direction: column;
  }

  .admin-login-table-tools {
    align-items: stretch;
    max-width: none;
    width: 100%;
  }

  .admin-login-directory-count {
    align-self: flex-start;
  }

  .admin-login-toolbar {
    max-width: none;
  }
}

@media (max-width: 1199px) {
  .admin-overview-grid,
  .admin-lower-grid,
  .admin-reports-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767px) {
  .admin-workbench-header,
  .admin-card-header {
    align-items: stretch;
    flex-direction: column;
  }

  .admin-workbench-header .btn,
  .admin-card-header .btn {
    width: 100%;
  }

  .admin-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-trend-bars {
    gap: 8px;
    grid-template-columns: repeat(7, minmax(38px, 1fr));
  }

  .admin-trend-stack {
    height: 96px;
    padding: 6px 5px;
  }

  .admin-toolbar {
    grid-template-columns: 1fr;
    max-width: none;
  }

  .admin-login-table-header {
    padding: 18px;
  }

  .admin-login-table-heading {
    align-items: flex-start;
  }

  .admin-login-pagination {
    padding: 14px 18px;
  }

  .admin-login-history-panel .offcanvas-header,
  .admin-login-history-panel .offcanvas-body {
    padding-left: 16px;
    padding-right: 16px;
  }

  .admin-login-history-account {
    align-items: flex-start;
    padding: 15px;
  }

  .admin-login-history-avatar {
    flex-basis: 48px;
    height: 48px;
    width: 48px;
  }

  .admin-login-history-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-login-history-tabs {
    display: flex;
    overflow-x: auto;
    scrollbar-width: thin;
  }

  .admin-login-history-tabs button {
    flex: 0 0 auto;
    min-width: 76px;
  }

  .admin-login-history-event-heading {
    flex-direction: column;
    gap: 3px;
  }

  .admin-login-history-event-heading time {
    white-space: normal;
  }

  .admin-login-history-event-meta span {
    white-space: normal;
  }

  .admin-mobile-update-grid > .card > .card-body {
    padding: 20px;
  }

  .admin-mobile-update-grid .admin-card-header {
    align-items: stretch;
    padding-bottom: 18px;
  }

  #adminMobileUpdateDetails .admin-report-item > div:first-child {
    gap: 5px;
    grid-template-columns: 1fr;
  }

  #adminMobileUpdateDetails .admin-report-item span {
    text-align: left;
  }

  .admin-mobile-form-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .admin-mobile-form-actions small {
    max-width: none;
  }

  .admin-mobile-form-actions .btn {
    width: 100%;
  }

  .admin-attention-item,
  .admin-compact-item,
  .admin-feedback-item {
    grid-template-columns: 1fr;
  }

  .admin-compact-item em {
    white-space: normal;
  }
}

@media (max-width: 480px) {
  .admin-summary-grid {
    grid-template-columns: 1fr;
  }
}

:root {
  --ng-health-primary: #0f766e;
  --ng-health-primary-dark: #115e59;
  --ng-health-primary-soft: #ccfbf1;
  --ng-health-primary-subtle: #ecfdf5;
  --ng-health-leaf: #16a34a;
  --ng-health-leaf-soft: #dcfce7;
  --ng-health-clinical: #2563eb;
  --ng-health-clinical-soft: #dbeafe;
  --ng-health-nutrition: #0e7490;
  --ng-health-nutrition-soft: #ecfeff;
  --ng-health-danger: #be123c;
}

.health-app {
  --bs-primary: var(--ng-health-primary);
  --bs-primary-rgb: 15, 118, 110;
  --bs-link-color: var(--ng-health-primary);
  --bs-link-hover-color: var(--ng-health-primary-dark);
  background: #f3faf7;
}

.health-app .content-wrapper {
  background: #f3faf7;
}

.health-app .btn-primary,
.health-app .btn-primary.disabled,
.health-app .btn-primary:disabled {
  background-color: var(--ng-health-primary);
  border-color: var(--ng-health-primary);
  color: #fff;
}

.health-app .btn-primary:hover,
.health-app .btn-primary:focus,
.health-app .btn-primary:active {
  background-color: var(--ng-health-primary-dark);
  border-color: var(--ng-health-primary-dark);
  color: #fff;
}

.health-app .btn-outline-primary {
  border-color: #5eead4;
  color: var(--ng-health-primary);
}

.health-app .btn-outline-primary:hover,
.health-app .btn-outline-primary:focus {
  background: var(--ng-health-primary);
  border-color: var(--ng-health-primary);
  color: #fff;
}

.health-app .text-primary,
.health-app .dropdown-item-icon.text-primary {
  color: var(--ng-health-primary) !important;
}

.health-app .bg-primary,
.health-app .badge-primary,
.health-app .progress-bar.bg-primary {
  background-color: var(--ng-health-primary) !important;
}

.health-app .bg-primary-subtle,
.health-app .food-card .food-icon,
.health-app .food-category-icon,
.health-app .meal-estimate-badge {
  background: var(--ng-health-primary-soft);
  color: var(--ng-health-primary-dark);
}

.health-app .bg-info-subtle,
.health-app .badge-opacity-info,
.health-app .recommendation-score,
.health-app .model-comparison-item.active {
  background: var(--ng-health-clinical-soft);
  border-color: #bfdbfe;
  color: #1d4ed8;
}

.health-app .bg-warning-subtle {
  background: #fff7ed;
  border-color: #fed7aa;
  color: #9a3412;
}

.health-app .meal-card .portion,
.health-app .chat-pending-action {
  background: var(--ng-health-nutrition-soft);
  border-color: #a5f3fc;
  color: var(--ng-health-nutrition);
}

.health-app .health-hero,
.health-app .auth-shell,
.health-app .progress-score-panel {
  background: linear-gradient(135deg, #064e3b 0%, var(--ng-health-primary) 46%, var(--ng-health-leaf) 78%, #2563eb 100%);
}

.health-app .sidebar .nav .nav-item .nav-link:hover,
.health-app .sidebar .nav .nav-item .nav-link:focus {
  background: var(--ng-health-primary-subtle);
  color: var(--ng-health-primary-dark) !important;
}

.health-app .sidebar .nav .nav-item .nav-link:hover .menu-title,
.health-app .sidebar .nav .nav-item .nav-link:hover .menu-icon,
.health-app .sidebar .nav .nav-item .nav-link:focus .menu-title,
.health-app .sidebar .nav .nav-item .nav-link:focus .menu-icon {
  color: var(--ng-health-primary-dark) !important;
}

.health-app .sidebar .nav .nav-item .nav-link.active,
.health-app .sidebar .nav .nav-item.active .nav-link {
  background: var(--ng-health-primary-subtle);
  box-shadow: inset 3px 0 0 var(--ng-health-primary);
  color: var(--ng-health-primary) !important;
}

.health-app .sidebar .nav .nav-item .nav-link.active .menu-title,
.health-app .sidebar .nav .nav-item .nav-link.active .menu-icon,
.health-app .sidebar .nav .nav-item.active .nav-link .menu-title,
.health-app .sidebar .nav .nav-item.active .nav-link .menu-icon,
.health-app.sidebar-icon-only .sidebar .nav .nav-item .nav-link.active i.menu-icon,
.health-app.sidebar-icon-only .sidebar .nav .nav-item.active .nav-link i.menu-icon {
  color: var(--ng-health-primary) !important;
}

.health-app .daily-calorie-card,
.health-app .profile-photo-panel,
.health-app .profile-nutritionist-panel,
.health-app .algorithm-formula,
.health-app .admin-report-panel {
  border-left-color: var(--ng-health-primary);
}

.health-app .meal-progress-track span,
.health-app .algorithm-tabs button.active,
.health-app .food-pagination-button.active,
.health-app .nutritionist-suggested-badge,
.health-app .profile-leaderboard-rank,
.health-app .pwa-install-button,
.health-app .sidebar .nav .nav-item.nav-install-app .pwa-install-button {
  background: var(--ng-health-primary);
  border-color: var(--ng-health-primary);
  color: #fff !important;
}

.health-app .algorithm-tabs button.active:hover,
.health-app .food-pagination-button.active:hover,
.health-app .pwa-install-button:hover,
.health-app .pwa-install-button:focus,
.health-app .sidebar .nav .nav-item.nav-install-app .pwa-install-button:hover,
.health-app .sidebar .nav .nav-item.nav-install-app .pwa-install-button:focus {
  background: var(--ng-health-primary-dark);
  border-color: var(--ng-health-primary-dark);
  color: #fff !important;
}

.health-app .status-pill,
.health-app .profile-leaderboard-you,
.health-app .recommended-algorithm-note,
.health-app .profile-checklist-note,
.health-app .wellness-note,
.health-app .activity-source-note {
  background: var(--ng-health-primary-subtle);
  border-color: #99f6e4;
  color: var(--ng-health-primary-dark);
}

.health-app .status-pill i,
.health-app .wellness-note i,
.health-app .activity-source-note i,
.health-app .profile-checklist-note i {
  color: var(--ng-health-primary);
}

.health-app .profile-leaderboard-score > strong,
.health-app .portion-guide-item strong,
.health-app .algorithm-card span,
.health-app .model-comparison-item strong,
.health-app .food-category-code,
.health-app .food-pagination-button,
.health-app .auth-switch a,
.health-app .theme-toggle-button:hover,
.health-app .theme-toggle-button:focus {
  color: var(--ng-health-primary);
}

.health-app .chat-message.user {
  background: var(--ng-health-primary);
  color: #fff;
}

.health-app .chat-message.ai {
  background: var(--ng-health-clinical-soft);
  color: #1d4ed8;
}

.health-app .floating-chat-header {
  background: #064e3b;
}

.health-app .floating-chat-avatar {
  background: var(--ng-health-primary-soft);
}

.health-app .meal-card-badge,
.health-app .profile-leaderboard-plan,
.health-app .achievement-item.earned,
.health-app .food-card-available {
  background: var(--ng-health-leaf-soft);
  border-color: #bbf7d0;
  color: #047857;
}

.health-app .profile-leaderboard-trophy {
  background: var(--ng-health-nutrition-soft);
  color: var(--ng-health-nutrition);
}

.health-app .pattern-item {
  border-left-color: var(--ng-health-nutrition);
}

.health-app .symptom-log-item {
  border-left-color: var(--ng-health-danger);
}

.health-app .pwa-install-sheet__icon {
  background: var(--ng-health-primary-soft);
  color: var(--ng-health-primary);
}

.health-app .theme-toggle-button:focus,
.health-app .auth-password-toggle:focus,
.health-app .pwa-install-button:focus {
  outline-color: rgba(15, 118, 110, .28);
}

html[data-theme="dark"] .health-app {
  background: #071713;
}

html[data-theme="dark"] .health-app .content-wrapper {
  background: #071713;
}

html[data-theme="dark"] .health-app .health-hero,
html[data-theme="dark"] .health-app .auth-shell,
html[data-theme="dark"] .health-app .progress-score-panel {
  background: linear-gradient(135deg, #022c22 0%, #0f766e 50%, #166534 78%, #92400e 100%);
}

html[data-theme="dark"] .health-app .sidebar .nav .nav-item .nav-link.active,
html[data-theme="dark"] .health-app .sidebar .nav .nav-item.active .nav-link {
  background: rgba(20, 184, 166, .16);
  box-shadow: inset 3px 0 0 #2dd4bf;
  color: #5eead4 !important;
}

html[data-theme="dark"] .health-app .sidebar .nav .nav-item .nav-link.active .menu-title,
html[data-theme="dark"] .health-app .sidebar .nav .nav-item .nav-link.active .menu-icon,
html[data-theme="dark"] .health-app .sidebar .nav .nav-item.active .nav-link .menu-title,
html[data-theme="dark"] .health-app .sidebar .nav .nav-item.active .nav-link .menu-icon {
  color: #5eead4 !important;
}

html[data-theme="dark"] .health-app .btn-primary,
html[data-theme="dark"] .health-app .algorithm-tabs button.active,
html[data-theme="dark"] .health-app .food-pagination-button.active,
html[data-theme="dark"] .health-app .pwa-install-button,
html[data-theme="dark"] .health-app .sidebar .nav .nav-item.nav-install-app .pwa-install-button,
html[data-theme="dark"] .health-app .chat-message.user {
  background: #14b8a6;
  border-color: #14b8a6;
  color: #06231f !important;
}

html[data-theme="dark"] .health-app .btn-primary:hover,
html[data-theme="dark"] .health-app .btn-primary:focus,
html[data-theme="dark"] .health-app .algorithm-tabs button.active:hover,
html[data-theme="dark"] .health-app .food-pagination-button.active:hover,
html[data-theme="dark"] .health-app .pwa-install-button:hover,
html[data-theme="dark"] .health-app .pwa-install-button:focus {
  background: #5eead4;
  border-color: #5eead4;
  color: #042f2e !important;
}

html[data-theme="dark"] .health-app .bg-primary-subtle,
html[data-theme="dark"] .health-app .food-card .food-icon,
html[data-theme="dark"] .health-app .food-category-icon,
html[data-theme="dark"] .health-app .meal-estimate-badge,
html[data-theme="dark"] .health-app .status-pill,
html[data-theme="dark"] .health-app .profile-leaderboard-you,
html[data-theme="dark"] .health-app .wellness-note,
html[data-theme="dark"] .health-app .activity-source-note {
  background: rgba(20, 184, 166, .14);
  border-color: rgba(45, 212, 191, .24);
  color: #99f6e4;
}

html[data-theme="dark"] .health-app .profile-leaderboard-score > strong,
html[data-theme="dark"] .health-app .portion-guide-item strong,
html[data-theme="dark"] .health-app .algorithm-card span,
html[data-theme="dark"] .health-app .model-comparison-item strong,
html[data-theme="dark"] .health-app .food-pagination-button,
html[data-theme="dark"] .health-app .text-primary,
html[data-theme="dark"] .health-app .dropdown-item-icon.text-primary {
  color: #5eead4 !important;
}

.analytics-workspace {
  display: flex;
  flex-direction: column;
  gap: 18px;
  width: 100%;
}

.analytics-header,
.analytics-panel,
.analytics-kpi {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  box-shadow: 0 14px 34px rgba(15, 23, 42, .06);
}

.analytics-header {
  align-items: center;
  display: flex;
  gap: 20px;
  justify-content: space-between;
  padding: 24px;
}

.analytics-title-block {
  min-width: 0;
}

.analytics-title-block h4 {
  color: #0f172a;
  font-size: 24px;
  font-weight: 900;
  line-height: 1.2;
  margin: 4px 0 8px;
}

.analytics-title-block p {
  color: #64748b;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.5;
  margin: 0;
  max-width: 640px;
}

.analytics-toolbar {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: flex-end;
}

.analytics-status-chip {
  align-items: center;
  background: #ecfdf5;
  border: 1px solid #99f6e4;
  border-radius: 8px;
  color: #115e59;
  display: inline-flex;
  font-size: 12px;
  font-weight: 900;
  gap: 8px;
  min-height: 42px;
  padding: 0 14px;
  white-space: nowrap;
}

.analytics-status-chip i {
  color: var(--ng-health-primary);
  font-size: 18px;
}

.analytics-toolbar .algorithm-tabs {
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  box-shadow: none;
}

.analytics-toolbar .algorithm-tabs button {
  color: #475569;
  min-width: 80px;
}

.analytics-toolbar .algorithm-tabs button.active {
  background: var(--ng-health-primary);
  border-color: var(--ng-health-primary);
  box-shadow: 0 10px 22px rgba(15, 118, 110, .2);
  color: #fff !important;
}

.analytics-kpi-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.analytics-kpi {
  display: grid;
  gap: 8px;
  min-height: 166px;
  padding: 18px;
}

.analytics-kpi-icon {
  align-items: center;
  background: #f1f5f9;
  border-radius: 8px;
  color: #2563eb;
  display: inline-flex;
  font-size: 22px;
  height: 42px;
  justify-content: center;
  margin-bottom: 4px;
  width: 42px;
}

.analytics-kpi-primary .analytics-kpi-icon {
  background: var(--ng-health-primary-soft);
  color: var(--ng-health-primary-dark);
}

.analytics-kpi span {
  color: #64748b;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.analytics-kpi strong {
  color: #0f172a;
  font-size: 25px;
  font-weight: 900;
  line-height: 1.15;
  overflow-wrap: anywhere;
}

#analyticsPrediction {
  font-size: 18px;
  line-height: 1.25;
}

.analytics-kpi small {
  color: #64748b;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
}

.analytics-progress-track {
  background: #e2e8f0;
  border-radius: 999px;
  height: 7px;
  margin-top: 4px;
  overflow: hidden;
  width: 100%;
}

.analytics-progress-track span {
  background: linear-gradient(90deg, var(--ng-health-primary), #2563eb);
  border-radius: inherit;
  display: block;
  height: 100%;
  min-width: 4px;
  transition: width .25s ease;
}

.analytics-main-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, .92fr);
}

.analytics-secondary-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr) minmax(300px, .85fr);
}

.analytics-panel {
  min-width: 0;
  padding: 22px;
}

.analytics-panel-header {
  align-items: flex-start;
  display: flex;
  gap: 16px;
  justify-content: space-between;
  margin-bottom: 18px;
}

.analytics-panel-header h5 {
  color: #0f172a;
  font-size: 17px;
  font-weight: 900;
  line-height: 1.25;
  margin: 3px 0 0;
}

.analytics-mini-stat {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  display: grid;
  gap: 2px;
  min-width: 128px;
  padding: 10px 12px;
  text-align: right;
}

.analytics-mini-stat span {
  color: #64748b;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.analytics-mini-stat strong {
  color: #0f172a;
  font-size: 14px;
  font-weight: 900;
}

.analytics-chart-shell {
  align-items: center;
  display: flex;
  height: 340px;
  justify-content: center;
  min-height: 300px;
  position: relative;
  width: 100%;
}

.analytics-chart-shell canvas {
  height: 100% !important;
  max-width: 100%;
  width: 100% !important;
}

.analytics-chart-center {
  left: 50%;
  pointer-events: none;
  position: absolute;
  text-align: center;
  top: 47%;
  transform: translate(-50%, -50%);
  width: 132px;
}

.analytics-chart-center span {
  color: #64748b;
  display: block;
  font-size: 11px;
  font-weight: 900;
  line-height: 1.2;
  text-transform: uppercase;
}

.analytics-chart-center strong {
  color: #0f172a;
  display: block;
  font-size: 25px;
  font-weight: 900;
  line-height: 1.1;
  margin-top: 4px;
}

.analytics-macro-strip {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 18px;
}

.analytics-macro-strip div {
  align-items: center;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  display: grid;
  gap: 4px 8px;
  grid-template-columns: auto minmax(0, 1fr);
  padding: 12px;
}

.analytics-dot {
  border-radius: 50%;
  display: inline-flex;
  height: 10px;
  width: 10px;
}

.analytics-dot-protein,
.model-comparison-bars .accuracy-bar {
  background: #31549f;
}

.analytics-dot-carbs,
.model-comparison-bars .confidence-bar {
  background: #117f73;
}

.analytics-dot-fat {
  background: #6d28d9;
}

.analytics-macro-strip span:not(.analytics-dot) {
  color: #64748b;
  font-size: 12px;
  font-weight: 900;
}

.analytics-macro-strip strong {
  color: #0f172a;
  font-size: 16px;
  font-weight: 900;
  grid-column: 2;
}

.analytics-algorithm-card {
  background: #f8fafc;
  border-color: #e2e8f0;
  min-height: 100%;
}

.analytics-algorithm-card .progress {
  background: #e2e8f0;
  border-radius: 999px;
  height: 8px;
}

.analytics-algorithm-card .progress-bar {
  border-radius: inherit;
}

.model-comparison-list {
  display: grid;
  gap: 10px;
}

.model-comparison-item {
  align-items: stretch;
  background: #ffffff;
  border-color: #e2e8f0;
  display: grid;
  gap: 14px;
  grid-template-columns: minmax(0, 1fr) 112px;
  padding: 14px;
}

.model-comparison-item.active {
  background: #eff6ff;
  border-color: #bfdbfe;
}

.model-comparison-item.recommended {
  border-color: #86efac;
  box-shadow: inset 3px 0 0 #22c55e;
}

.model-comparison-main {
  min-width: 0;
}

.model-comparison-heading {
  align-items: center;
  display: flex;
  gap: 10px;
  justify-content: space-between;
}

.model-comparison-heading em {
  color: #31549f;
  flex: 0 0 auto;
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
}

.model-comparison-bars {
  display: grid;
  gap: 5px;
  margin-top: 12px;
}

.model-comparison-bars span {
  border-radius: 999px;
  display: block;
  height: 5px;
  max-width: 100%;
}

.model-comparison-score {
  align-items: center;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  display: grid;
  justify-items: center;
  padding: 10px;
  text-align: center;
}

.model-comparison-score strong {
  font-size: 18px;
}

.model-comparison-score span {
  font-size: 11px;
  font-weight: 900;
  margin-top: 0;
  text-transform: uppercase;
}

.algorithm-recommended-badge {
  border-radius: 999px;
  padding: 5px 7px;
}

.algorithm-discussion-list {
  display: grid;
  gap: 10px;
}

.analytics-discussion-panel .algorithm-discussion-item {
  background: #f8fafc;
  border-color: #e2e8f0;
}

.engagement-list {
  display: grid;
  gap: 10px;
}

.engagement-item {
  align-items: center;
  background: #ffffff;
  border-color: #e2e8f0;
  display: grid;
  gap: 12px;
  grid-template-columns: 40px minmax(0, 1fr);
  justify-content: stretch;
  padding: 13px;
}

.engagement-item i {
  align-items: center;
  background: var(--ng-health-primary-subtle);
  border-radius: 8px;
  color: var(--ng-health-primary);
  display: inline-flex;
  font-size: 19px;
  height: 40px;
  justify-content: center;
  width: 40px;
}

.engagement-item div {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.engagement-item span {
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.engagement-item strong {
  font-size: 18px;
  font-weight: 900;
  line-height: 1.15;
}

html[data-theme="dark"] .analytics-header,
html[data-theme="dark"] .analytics-panel,
html[data-theme="dark"] .analytics-kpi,
html[data-theme="dark"] .analytics-mini-stat,
html[data-theme="dark"] .analytics-macro-strip div,
html[data-theme="dark"] .model-comparison-score,
html[data-theme="dark"] .engagement-item {
  background: rgba(15, 23, 42, .86);
  border-color: rgba(148, 163, 184, .2);
  box-shadow: 0 18px 44px rgba(2, 6, 23, .26);
}

html[data-theme="dark"] .analytics-title-block h4,
html[data-theme="dark"] .analytics-panel-header h5,
html[data-theme="dark"] .analytics-kpi strong,
html[data-theme="dark"] .analytics-mini-stat strong,
html[data-theme="dark"] .analytics-chart-center strong,
html[data-theme="dark"] .analytics-macro-strip strong,
html[data-theme="dark"] .model-comparison-score strong,
html[data-theme="dark"] .engagement-item strong {
  color: #f8fafc !important;
}

html[data-theme="dark"] .analytics-title-block p,
html[data-theme="dark"] .analytics-kpi span,
html[data-theme="dark"] .analytics-kpi small,
html[data-theme="dark"] .analytics-mini-stat span,
html[data-theme="dark"] .analytics-chart-center span,
html[data-theme="dark"] .analytics-macro-strip span:not(.analytics-dot),
html[data-theme="dark"] .model-comparison-score span,
html[data-theme="dark"] .engagement-item span {
  color: #94a3b8 !important;
}

html[data-theme="dark"] .analytics-toolbar .algorithm-tabs {
  background: rgba(30, 41, 59, .86);
  border-color: rgba(148, 163, 184, .24);
}

html[data-theme="dark"] .analytics-toolbar .algorithm-tabs button {
  color: #cbd5e1;
}

html[data-theme="dark"] .analytics-toolbar .algorithm-tabs button.active {
  background: #14b8a6;
  border-color: #14b8a6;
  color: #06231f !important;
}

html[data-theme="dark"] .analytics-status-chip,
html[data-theme="dark"] .engagement-item i {
  background: rgba(20, 184, 166, .14);
  border-color: rgba(45, 212, 191, .24);
  color: #99f6e4;
}

html[data-theme="dark"] .analytics-kpi-icon,
html[data-theme="dark"] .analytics-algorithm-card,
html[data-theme="dark"] .analytics-discussion-panel .algorithm-discussion-item,
html[data-theme="dark"] .model-comparison-item.active,
html[data-theme="dark"] .model-comparison-item {
  background: rgba(2, 6, 23, .34);
  border-color: rgba(148, 163, 184, .2);
}

html[data-theme="dark"] .analytics-progress-track,
html[data-theme="dark"] .analytics-algorithm-card .progress {
  background: rgba(148, 163, 184, .18);
}

@media (max-width: 1199px) {
  .analytics-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .analytics-toolbar {
    justify-content: flex-start;
    width: 100%;
  }

  .analytics-kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .analytics-main-grid,
  .analytics-secondary-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767px) {
  .analytics-header,
  .analytics-panel,
  .analytics-kpi {
    padding: 16px;
  }

  .analytics-kpi-grid,
  .analytics-macro-strip {
    grid-template-columns: 1fr;
  }

  .analytics-toolbar .algorithm-tabs {
    align-items: stretch;
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
  }

  .analytics-status-chip {
    justify-content: center;
    white-space: normal;
    width: 100%;
  }

  .analytics-panel-header,
  .model-comparison-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .analytics-mini-stat {
    min-width: 0;
    text-align: left;
    width: 100%;
  }

  .analytics-chart-shell {
    height: 300px;
    min-height: 280px;
  }

  .analytics-chart-center {
    width: 112px;
  }

  .analytics-chart-center strong {
    font-size: 21px;
  }

  .model-comparison-item {
    grid-template-columns: 1fr;
  }

  .model-comparison-score {
    align-items: start;
    justify-items: start;
    text-align: left;
  }
}

.ng-skeleton-overlay {
  --ng-skeleton-bg: rgba(245, 247, 251, .96);
  --ng-skeleton-panel: rgba(255, 255, 255, .96);
  --ng-skeleton-base: #e3eaf2;
  --ng-skeleton-highlight: #f8fafc;
  --ng-skeleton-muted: #d3dde9;
  background: var(--ng-skeleton-bg);
  backdrop-filter: blur(8px);
  display: flex;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  position: fixed;
  transition: opacity .18s ease, visibility .18s ease;
  visibility: hidden;
  z-index: 5000;
}

body.ng-skeleton-boot::before,
body.ng-skeleton-boot::after {
  content: "";
  inset: 0;
  pointer-events: auto;
  position: fixed;
}

body.ng-skeleton-boot::before {
  background: rgba(245, 247, 251, .98);
  backdrop-filter: blur(8px);
  z-index: 4998;
}

body.ng-skeleton-boot::after {
  animation: ng-skeleton-boot-pulse 1.1s ease-in-out infinite;
  background:
    linear-gradient(#dfe7f0, #dfe7f0) 28px 22px / 40px 40px no-repeat,
    linear-gradient(#e8eef5, #e8eef5) 84px 34px / 170px 16px no-repeat,
    linear-gradient(#ffffff, #ffffff) 28px 96px / 224px calc(100vh - 124px) no-repeat,
    linear-gradient(#e8eef5, #e8eef5) 54px 130px / 150px 14px no-repeat,
    linear-gradient(#e8eef5, #e8eef5) 54px 178px / 120px 14px no-repeat,
    linear-gradient(#e8eef5, #e8eef5) 54px 226px / 150px 14px no-repeat,
    linear-gradient(#ffffff, #ffffff) 284px 112px / calc(100vw - 340px) 210px no-repeat,
    linear-gradient(#dfe7f0, #dfe7f0) 314px 152px / min(620px, calc(100vw - 400px)) 30px no-repeat,
    linear-gradient(#e8eef5, #e8eef5) 314px 198px / min(420px, calc(100vw - 430px)) 18px no-repeat,
    linear-gradient(#ffffff, #ffffff) 284px 348px / calc((100vw - 380px) / 3) 150px no-repeat,
    linear-gradient(#ffffff, #ffffff) calc(304px + ((100vw - 380px) / 3)) 348px / calc((100vw - 380px) / 3) 150px no-repeat,
    linear-gradient(#ffffff, #ffffff) calc(324px + (((100vw - 380px) / 3) * 2)) 348px / calc((100vw - 380px) / 3) 150px no-repeat;
  z-index: 4999;
}

body.ng-skeleton-loading {
  cursor: progress;
}

.health-app .ng-button-loading {
  align-items: center;
  cursor: wait;
  display: inline-flex;
  gap: 6px;
  justify-content: center;
  pointer-events: none;
  text-align: center;
  white-space: nowrap;
}

.health-app .ng-button-loading > span:not(.ng-button-spinner) {
  align-items: center;
  display: inline-flex;
  line-height: 1;
}

.ng-button-spinner {
  animation: ng-button-spin .7s linear infinite;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  display: inline-flex;
  flex: 0 0 16px;
  height: 16px;
  width: 16px;
}

.btn-sm .ng-button-spinner {
  flex-basis: 14px;
  height: 14px;
  width: 14px;
}

.btn-icon .ng-button-spinner,
.food-action-button .ng-button-spinner,
.auth-password-toggle .ng-button-spinner {
  margin: 0;
}

body.ng-skeleton-loading .ng-skeleton-overlay {
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
}

.ng-skeleton-shell {
  display: grid;
  grid-template-rows: 84px minmax(0, 1fr);
  min-height: 100vh;
  width: 100%;
}

.ng-skeleton-status {
  clip: rect(0 0 0 0);
  border: 0;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  white-space: nowrap;
  width: 1px;
}

.ng-skeleton-topbar {
  align-items: center;
  background: var(--ng-skeleton-panel);
  border-bottom: 1px solid rgba(148, 163, 184, .2);
  box-shadow: 0 10px 24px rgba(15, 23, 42, .06);
  display: flex;
  justify-content: space-between;
  padding: 0 28px;
}

.ng-skeleton-brand,
.ng-skeleton-nav,
.ng-skeleton-plate {
  align-items: center;
  display: flex;
  gap: 14px;
}

.ng-skeleton-body {
  display: grid;
  grid-template-columns: 255px minmax(0, 1fr);
  min-height: 0;
}

.ng-skeleton-sidebar {
  background: var(--ng-skeleton-panel);
  border-right: 1px solid rgba(148, 163, 184, .18);
  display: grid;
  gap: 14px;
  grid-auto-rows: min-content;
  padding: 28px 22px;
}

.ng-skeleton-main {
  display: grid;
  gap: 24px;
  grid-auto-rows: min-content;
  min-width: 0;
  overflow: hidden;
  padding: 28px;
}

.ng-skeleton-hero {
  align-items: center;
  background: var(--ng-skeleton-panel);
  border: 1px solid rgba(148, 163, 184, .18);
  border-radius: 8px;
  box-shadow: 0 16px 40px rgba(15, 23, 42, .08);
  display: grid;
  gap: 24px;
  grid-template-columns: minmax(0, 1fr) 300px;
  min-height: 210px;
  padding: 30px;
}

.ng-skeleton-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.ng-skeleton-card {
  background: var(--ng-skeleton-panel);
  border: 1px solid rgba(148, 163, 184, .18);
  border-radius: 8px;
  box-shadow: 0 12px 30px rgba(15, 23, 42, .07);
  display: grid;
  gap: 14px;
  min-height: 150px;
  padding: 22px;
}

.ng-skeleton-card-wide {
  min-height: 180px;
}

.ng-skeleton-block {
  animation: ng-skeleton-shimmer 1.2s ease-in-out infinite;
  background: linear-gradient(90deg, var(--ng-skeleton-base) 0%, var(--ng-skeleton-highlight) 48%, var(--ng-skeleton-base) 100%);
  background-size: 220% 100%;
  border-radius: 8px;
  display: block;
  overflow: hidden;
}

.ng-skeleton-logo,
.ng-skeleton-avatar,
.ng-skeleton-dot,
.ng-skeleton-icon,
.ng-skeleton-circle {
  aspect-ratio: 1;
}

.ng-skeleton-logo {
  width: 40px;
}

.ng-skeleton-avatar {
  border-radius: 50%;
  width: 42px;
}

.ng-skeleton-dot {
  border-radius: 50%;
  width: 28px;
}

.ng-skeleton-icon {
  width: 46px;
}

.ng-skeleton-circle {
  border-radius: 50%;
  width: 92px;
}

.ng-skeleton-line {
  height: 14px;
  max-width: 100%;
  width: 100%;
}

.ng-skeleton-line-brand {
  height: 18px;
  width: 170px;
}

.ng-skeleton-line-kicker {
  height: 12px;
  margin-bottom: 14px;
  width: 190px;
}

.ng-skeleton-line-title {
  height: 30px;
  margin-bottom: 12px;
  width: min(620px, 100%);
}

.ng-skeleton-line-title-small {
  width: min(420px, 78%);
}

.ng-skeleton-line-copy {
  height: 16px;
  margin-top: 20px;
  width: min(520px, 88%);
}

.ng-skeleton-line-short {
  width: 64%;
}

.ng-skeleton-line-value {
  height: 28px;
  width: 48%;
}

.ng-skeleton-bar {
  height: 12px;
  width: 100%;
}

.ng-skeleton-bar-small {
  width: 78%;
}

body.auth-page .ng-skeleton-shell {
  align-items: center;
  background: linear-gradient(135deg, #143a5a 0%, #117f73 54%, #2563eb 100%);
  display: flex;
  justify-content: center;
  padding: 24px;
}

body.auth-page .ng-skeleton-topbar,
body.auth-page .ng-skeleton-sidebar {
  display: none;
}

body.auth-page .ng-skeleton-body,
body.auth-page .ng-skeleton-main {
  display: block;
  max-width: 430px;
  padding: 0;
  width: 100%;
}

body.auth-page .ng-skeleton-hero {
  display: grid;
  grid-template-columns: 1fr;
  min-height: 420px;
}

body.auth-page .ng-skeleton-plate,
body.auth-page .ng-skeleton-grid {
  display: none;
}

html[data-theme="dark"] .ng-skeleton-overlay {
  --ng-skeleton-bg: rgba(2, 6, 23, .94);
  --ng-skeleton-panel: rgba(15, 23, 42, .96);
  --ng-skeleton-base: #263244;
  --ng-skeleton-highlight: #3a485d;
  --ng-skeleton-muted: #1e293b;
}

html[data-theme="dark"] body.ng-skeleton-boot::before {
  background: rgba(2, 6, 23, .97);
}

html[data-theme="dark"] body.ng-skeleton-boot::after {
  background:
    linear-gradient(#263244, #263244) 28px 22px / 40px 40px no-repeat,
    linear-gradient(#334155, #334155) 84px 34px / 170px 16px no-repeat,
    linear-gradient(#111827, #111827) 28px 96px / 224px calc(100vh - 124px) no-repeat,
    linear-gradient(#334155, #334155) 54px 130px / 150px 14px no-repeat,
    linear-gradient(#334155, #334155) 54px 178px / 120px 14px no-repeat,
    linear-gradient(#334155, #334155) 54px 226px / 150px 14px no-repeat,
    linear-gradient(#111827, #111827) 284px 112px / calc(100vw - 340px) 210px no-repeat,
    linear-gradient(#263244, #263244) 314px 152px / min(620px, calc(100vw - 400px)) 30px no-repeat,
    linear-gradient(#334155, #334155) 314px 198px / min(420px, calc(100vw - 430px)) 18px no-repeat,
    linear-gradient(#111827, #111827) 284px 348px / calc((100vw - 380px) / 3) 150px no-repeat,
    linear-gradient(#111827, #111827) calc(304px + ((100vw - 380px) / 3)) 348px / calc((100vw - 380px) / 3) 150px no-repeat,
    linear-gradient(#111827, #111827) calc(324px + (((100vw - 380px) / 3) * 2)) 348px / calc((100vw - 380px) / 3) 150px no-repeat;
}

html[data-theme="dark"] .ng-skeleton-topbar,
html[data-theme="dark"] .ng-skeleton-sidebar,
html[data-theme="dark"] .ng-skeleton-hero,
html[data-theme="dark"] .ng-skeleton-card {
  border-color: rgba(148, 163, 184, .2);
  box-shadow: 0 18px 44px rgba(2, 6, 23, .34);
}

@media (max-width: 991px) {
  body.ng-skeleton-boot::after,
  html[data-theme="dark"] body.ng-skeleton-boot::after {
    background:
      linear-gradient(#dfe7f0, #dfe7f0) 18px 18px / 40px 40px no-repeat,
      linear-gradient(#e8eef5, #e8eef5) 74px 30px / 136px 16px no-repeat,
      linear-gradient(#ffffff, #ffffff) 18px 92px / calc(100vw - 36px) 220px no-repeat,
      linear-gradient(#dfe7f0, #dfe7f0) 42px 132px / calc(100vw - 84px) 28px no-repeat,
      linear-gradient(#e8eef5, #e8eef5) 42px 178px / calc(100vw - 130px) 16px no-repeat,
      linear-gradient(#ffffff, #ffffff) 18px 336px / calc((100vw - 52px) / 2) 150px no-repeat,
      linear-gradient(#ffffff, #ffffff) calc(34px + ((100vw - 52px) / 2)) 336px / calc((100vw - 52px) / 2) 150px no-repeat;
  }

  html[data-theme="dark"] body.ng-skeleton-boot::after {
    background:
      linear-gradient(#263244, #263244) 18px 18px / 40px 40px no-repeat,
      linear-gradient(#334155, #334155) 74px 30px / 136px 16px no-repeat,
      linear-gradient(#111827, #111827) 18px 92px / calc(100vw - 36px) 220px no-repeat,
      linear-gradient(#263244, #263244) 42px 132px / calc(100vw - 84px) 28px no-repeat,
      linear-gradient(#334155, #334155) 42px 178px / calc(100vw - 130px) 16px no-repeat,
      linear-gradient(#111827, #111827) 18px 336px / calc((100vw - 52px) / 2) 150px no-repeat,
      linear-gradient(#111827, #111827) calc(34px + ((100vw - 52px) / 2)) 336px / calc((100vw - 52px) / 2) 150px no-repeat;
  }

  .ng-skeleton-body {
    grid-template-columns: 1fr;
  }

  .ng-skeleton-sidebar {
    display: none;
  }

  .ng-skeleton-hero {
    grid-template-columns: 1fr;
  }

  .ng-skeleton-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  body.ng-skeleton-boot::after,
  html[data-theme="dark"] body.ng-skeleton-boot::after {
    background:
      linear-gradient(#dfe7f0, #dfe7f0) 16px 16px / 38px 38px no-repeat,
      linear-gradient(#e8eef5, #e8eef5) 70px 28px / 118px 14px no-repeat,
      linear-gradient(#ffffff, #ffffff) 16px 84px / calc(100vw - 32px) 260px no-repeat,
      linear-gradient(#dfe7f0, #dfe7f0) 36px 124px / calc(100vw - 72px) 26px no-repeat,
      linear-gradient(#e8eef5, #e8eef5) 36px 170px / calc(100vw - 110px) 15px no-repeat,
      linear-gradient(#ffffff, #ffffff) 16px 364px / calc(100vw - 32px) 142px no-repeat,
      linear-gradient(#ffffff, #ffffff) 16px 522px / calc(100vw - 32px) 142px no-repeat;
  }

  html[data-theme="dark"] body.ng-skeleton-boot::after {
    background:
      linear-gradient(#263244, #263244) 16px 16px / 38px 38px no-repeat,
      linear-gradient(#334155, #334155) 70px 28px / 118px 14px no-repeat,
      linear-gradient(#111827, #111827) 16px 84px / calc(100vw - 32px) 260px no-repeat,
      linear-gradient(#263244, #263244) 36px 124px / calc(100vw - 72px) 26px no-repeat,
      linear-gradient(#334155, #334155) 36px 170px / calc(100vw - 110px) 15px no-repeat,
      linear-gradient(#111827, #111827) 16px 364px / calc(100vw - 32px) 142px no-repeat,
      linear-gradient(#111827, #111827) 16px 522px / calc(100vw - 32px) 142px no-repeat;
  }

  .ng-skeleton-shell {
    grid-template-rows: 72px minmax(0, 1fr);
  }

  .ng-skeleton-topbar,
  .ng-skeleton-main {
    padding-left: 16px;
    padding-right: 16px;
  }

  .ng-skeleton-hero,
  .ng-skeleton-card {
    padding: 18px;
  }

  .ng-skeleton-grid {
    grid-template-columns: 1fr;
  }

  .ng-skeleton-line-brand {
    width: 118px;
  }

  .ng-skeleton-nav .ng-skeleton-dot:first-child {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ng-skeleton-block {
    animation: none;
  }

  .ng-button-spinner {
    animation: none;
  }

  body.ng-skeleton-boot::after {
    animation: none;
  }

  .ng-skeleton-overlay {
    transition: none;
  }
}

@keyframes ng-skeleton-boot-pulse {
  0%,
  100% {
    opacity: .78;
  }

  50% {
    opacity: 1;
  }
}

@keyframes ng-button-spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes ng-skeleton-shimmer {
  0% {
    background-position: 120% 0;
  }

  100% {
    background-position: -120% 0;
  }
}

.health-app {
  --ng-page-gutter-x: clamp(18px, 2vw, 30px);
  --ng-page-gutter-y: clamp(18px, 1.8vw, 24px);
  --ng-card-padding: clamp(18px, 1.6vw, 22px);
  --ng-item-padding: 14px;
  --ng-panel-padding: clamp(18px, 1.6vw, 22px);
  --ng-grid-gap: 14px;
  --ng-section-gap: 18px;
  --ng-label-gap: 6px;
}

@media (min-width: 992px) {
  .health-app .page-body-wrapper {
    min-height: calc(100vh - 82px);
    padding-top: 82px;
  }

  .health-app .main-panel,
  .health-app .nutritionist-content {
    min-height: calc(100vh - 82px);
  }

  .health-app .navbar .navbar-brand-wrapper,
  .health-app .navbar .navbar-menu-wrapper {
    height: 82px;
    min-height: 82px;
  }

  .health-app .navbar .navbar-brand-wrapper {
    padding: 14px 24px;
  }

  .health-app .navbar .navbar-menu-wrapper {
    padding-bottom: 16px;
    padding-top: 18px;
  }

  .health-app .navbar .navbar-menu-wrapper .navbar-nav .nav-item .welcome-text {
    font-size: 22px;
    line-height: 28px;
    margin-bottom: 4px;
  }

  .health-app .navbar .navbar-menu-wrapper .navbar-nav .nav-item .welcome-sub-text {
    font-size: 13px;
    line-height: 18px;
  }
}

.health-app .content-wrapper {
  padding: var(--ng-page-gutter-y) var(--ng-page-gutter-x) calc(var(--ng-page-gutter-y) + 10px);
}

.health-app .content-wrapper > .row,
.health-app .nutritionist-view > .row {
  --bs-gutter-x: var(--ng-section-gap);
  --bs-gutter-y: var(--ng-section-gap);
}

.health-app .grid-margin {
  margin-bottom: var(--ng-section-gap);
}

.health-app .health-card .card-body {
  padding: var(--ng-card-padding);
}

.health-app .card-body > .d-flex.justify-content-between.align-items-start {
  gap: 16px;
  min-width: 0;
}

.health-app .card-body > .d-flex.justify-content-between.align-items-start > div:first-child,
.health-app .meal-plan-heading > div:first-child,
.health-app .nutritionist-suggested-header > div:first-child,
.health-app .analytics-header .analytics-title-block,
.health-app .analytics-panel-header > div:first-child,
.health-app .admin-workbench-header > div:first-child,
.health-app .admin-card-header > div:first-child {
  flex: 1 1 auto;
  min-width: 0;
}

.health-app .card-title.card-title-dash {
  margin-bottom: 6px;
}

.health-app .card-subtitle,
.health-app .analytics-title-block p,
.health-app .admin-workbench-header p,
.health-app .nutritionist-workbench-header p {
  line-height: 1.5;
}

.health-app .metric-label,
.health-app .health-form .form-label,
.health-app .food-availability-form .form-label,
.health-app .calorie-split-item span,
.health-app .progress-score-panel span,
.health-app .progress-stat-grid span,
.health-app .macro-card .macro-label,
.health-app .profile-print-section-title span,
.health-app .profile-print-grid span,
.health-app .profile-print-list-block > div > span,
.health-app .profile-print-stamp span,
.health-app .profile-print-metrics span,
.health-app .nutritionist-stat-card span,
.health-app .nutritionist-profile-grid span,
.health-app .admin-stat-card span,
.health-app .analytics-kpi span,
.health-app .analytics-mini-stat span,
.health-app .analytics-chart-center span {
  line-height: 1.25;
  margin: 0 0 var(--ng-label-gap);
  text-align: left;
}

.health-app .daily-calorie-split,
.health-app .calorie-progress-layout,
.health-app .meal-progress-list,
.health-app .progress-score-panel,
.health-app .progress-stat-grid,
.health-app .achievement-list,
.health-app .activity-list,
.health-app .meal-plan-grid,
.health-app .nutritionist-suggested-grid,
.health-app .portion-guide-grid,
.health-app .food-grid,
.health-app .food-category-grid,
.health-app .profile-print-metrics,
.health-app .profile-print-grid,
.health-app .profile-print-list-block,
.health-app .nutritionist-summary-grid,
.health-app .nutritionist-overview-grid,
.health-app .nutritionist-profile-grid,
.health-app .nutritionist-ai-meal-grid,
.health-app .nutritionist-model-comparison,
.health-app .nutritionist-custom-meals,
.health-app .admin-summary-grid,
.health-app .admin-overview-grid,
.health-app .admin-lower-grid,
.health-app .admin-reports-grid,
.health-app .analytics-workspace,
.health-app .analytics-kpi-grid,
.health-app .analytics-main-grid,
.health-app .analytics-secondary-grid,
.health-app .analytics-macro-strip,
.health-app .model-comparison-list,
.health-app .engagement-list,
.health-app .algorithm-discussion-list {
  gap: var(--ng-grid-gap);
}

.health-app .calorie-split-item,
.health-app .meal-progress-item,
.health-app .progress-stat-grid > div,
.health-app .meal-log-summary-item,
.health-app .achievement-item,
.health-app .activity-item,
.health-app .activity-empty,
.health-app .recommendation-score,
.health-app .macro-card,
.health-app .profile-photo-panel,
.health-app .profile-nutritionist-panel,
.health-app .profile-nutritionist-meals span,
.health-app .profile-print-sheet,
.health-app .profile-print-metrics div,
.health-app .profile-print-grid div,
.health-app .profile-print-list-block > div,
.health-app .meal-card,
.health-app .meal-plan-empty,
.health-app .nutritionist-suggested-section,
.health-app .portion-guide-item,
.health-app .explain-box,
.health-app .chat-window,
.health-app .chat-message,
.health-app .chat-pending-action,
.health-app .food-category-section,
.health-app .food-card,
.health-app .pattern-item,
.health-app .symptom-log-item,
.health-app .symptom-log-empty,
.health-app .wellness-note,
.health-app .algorithm-card,
.health-app .algorithm-formula,
.health-app .recommended-algorithm-note,
.health-app .feedback-item,
.health-app .nutritionist-compact-item,
.health-app .nutritionist-reviewed-item,
.health-app .nutritionist-patient-item,
.health-app .nutritionist-empty-state,
.health-app .nutritionist-empty-list,
.health-app .nutritionist-profile-grid div,
.health-app .nutritionist-meal-card,
.health-app .nutritionist-ai-context,
.health-app .nutritionist-decision-panel,
.health-app .nutritionist-plan-summary,
.health-app .nutritionist-review-banner,
.health-app .nutritionist-custom-meal,
.health-app .nutritionist-model-item,
.health-app .model-comparison-item,
.health-app .model-comparison-score,
.health-app .algorithm-discussion-item,
.health-app .engagement-item,
.health-app .analytics-macro-strip div,
.health-app .admin-review-item,
.health-app .admin-distribution-item,
.health-app .admin-attention-item,
.health-app .admin-compact-item,
.health-app .admin-feedback-item,
.health-app .analytics-kpi,
.health-app .analytics-panel {
  padding: var(--ng-item-padding);
}

.health-app .analytics-panel,
.health-app .explain-box,
.health-app .nutritionist-suggested-section,
.health-app .food-category-section,
.health-app .nutritionist-empty-state,
.health-app .nutritionist-empty-list,
.health-app .profile-print-sheet {
  padding: var(--ng-panel-padding);
}

.health-app .profile-print-sheet {
  padding: var(--ng-card-padding);
}

.health-app .health-hero,
.health-app .nutritionist-workbench-header,
.health-app .analytics-header {
  gap: var(--ng-section-gap);
  padding: var(--ng-card-padding);
}

.health-app .meal-plan-heading,
.health-app .nutritionist-suggested-header,
.health-app .symptom-log-header,
.health-app .analytics-panel-header,
.health-app .admin-workbench-header,
.health-app .admin-card-header,
.health-app .food-category-heading {
  gap: 16px;
}

.health-app .achievement-item > div,
.health-app .activity-item > div,
.health-app .nutritionist-compact-item span,
.health-app .nutritionist-reviewed-item div,
.health-app .nutritionist-patient-item .patient-main,
.health-app .symptom-log-main,
.health-app .profile-nutritionist-copy,
.health-app .food-card-top > div:first-child {
  flex: 1 1 auto;
  min-width: 0;
}

.health-app .achievement-item span,
.health-app .activity-item span,
.health-app .activity-item p,
.health-app .nutritionist-compact-item small,
.health-app .nutritionist-reviewed-item small,
.health-app .nutritionist-reviewed-item p,
.health-app .nutritionist-patient-item small,
.health-app .symptom-log-main > span,
.health-app .food-card p,
.health-app .meal-card p,
.health-app .portion-guide-item p,
.health-app .feedback-item span {
  line-height: 1.45;
}

.health-app .health-form.row,
.health-app .health-form .row,
.health-app .meal-log-form {
  --bs-gutter-x: 14px;
  --bs-gutter-y: 12px;
}

.health-app .health-form.row > [class*="col-"],
.health-app .health-form .row > [class*="col-"],
.health-app .health-form > .mb-3,
.health-app .nutritionist-toolbar > div {
  align-items: stretch;
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 12px !important;
  min-width: 0;
  text-align: left;
}

.health-app .health-form .form-label,
.health-app .food-availability-form .form-label {
  align-items: center;
  min-height: 20px;
}

.health-app .health-form.row > [class*="col-"] > .form-label,
.health-app .health-form .row > [class*="col-"] > .form-label,
.health-app .health-form > .mb-3 > .form-label,
.health-app .nutritionist-toolbar > div > .form-label {
  margin-bottom: 0;
}

.health-app .profile-checklist-other .form-label,
.health-app .food-availability-form > .form-label {
  margin-bottom: var(--ng-label-gap);
}

.health-app .health-form .form-control,
.health-app .health-form .form-select,
.health-app .chat-form .form-control,
.health-app .food-filter .form-select,
.health-app .food-availability-controls .form-control,
.health-app .nutritionist-plan-offcanvas .form-control {
  line-height: 1.35;
  padding: 8px 12px;
}

.health-app .profile-checklist-toggle {
  padding: 10px 38px 10px 12px;
}

.health-app .profile-checklist-menu {
  padding: 12px;
}

.health-app .profile-checklist-options {
  gap: 8px;
}

.health-app .profile-checklist-option {
  min-height: 40px;
  padding: 8px 10px;
}

.health-app .food-availability-form {
  margin-bottom: var(--ng-grid-gap);
}

.health-app .food-availability-controls {
  gap: 12px;
}

.health-app .table-responsive {
  margin-top: 6px;
}

/* Keep wide tables easy to navigate without leaving a permanent scrollbar. */
html body.health-app .table-responsive {
  -ms-overflow-style: auto;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scrollbar-color: transparent transparent;
  scrollbar-width: thin;
}

html body.health-app .table-responsive:hover,
html body.health-app .table-responsive:focus-within {
  scrollbar-color: rgba(15, 118, 110, 0.78) transparent;
}

html body.health-app .table-responsive::-webkit-scrollbar {
  display: block;
  height: 10px;
  width: 10px;
}

html body.health-app .table-responsive::-webkit-scrollbar-track {
  background: transparent;
}

html body.health-app .table-responsive::-webkit-scrollbar-thumb {
  background-clip: padding-box;
  background-color: transparent;
  border: 2px solid transparent;
  border-radius: 999px;
  min-width: 44px;
  transition: background-color 0.18s ease;
}

html body.health-app .table-responsive:hover::-webkit-scrollbar-thumb,
html body.health-app .table-responsive:focus-within::-webkit-scrollbar-thumb {
  background-color: rgba(15, 118, 110, 0.78);
}

html body.health-app .table-responsive:hover::-webkit-scrollbar-thumb:hover,
html body.health-app .table-responsive:focus-within::-webkit-scrollbar-thumb:hover {
  background-color: #0f766e;
}

html[data-theme="dark"] body.health-app .table-responsive:hover,
html[data-theme="dark"] body.health-app .table-responsive:focus-within {
  scrollbar-color: rgba(45, 212, 191, 0.86) transparent;
}

html[data-theme="dark"] body.health-app .table-responsive:hover::-webkit-scrollbar-thumb,
html[data-theme="dark"] body.health-app .table-responsive:focus-within::-webkit-scrollbar-thumb {
  background-color: rgba(45, 212, 191, 0.86);
}

html[data-theme="dark"] body.health-app .table-responsive:hover::-webkit-scrollbar-thumb:hover,
html[data-theme="dark"] body.health-app .table-responsive:focus-within::-webkit-scrollbar-thumb:hover {
  background-color: #5eead4;
}

.health-app .nutritionist-plan-offcanvas .offcanvas-header,
.health-app .nutritionist-plan-offcanvas .offcanvas-body,
.health-app .nutritionist-plan-offcanvas-footer,
.health-app .profile-edit-offcanvas .offcanvas-header,
.health-app .profile-edit-offcanvas .offcanvas-body {
  padding-left: var(--ng-card-padding);
  padding-right: var(--ng-card-padding);
}

@media (max-width: 1199px) {
  .health-app {
    --ng-page-gutter-x: 18px;
    --ng-page-gutter-y: 18px;
    --ng-card-padding: 20px;
    --ng-panel-padding: 18px;
    --ng-grid-gap: 14px;
    --ng-section-gap: 16px;
  }
}

@media (max-width: 767px) {
  .health-app {
    --ng-page-gutter-x: 14px;
    --ng-page-gutter-y: 14px;
    --ng-card-padding: 16px;
    --ng-item-padding: 13px;
    --ng-panel-padding: 16px;
    --ng-grid-gap: 12px;
    --ng-section-gap: 14px;
  }

  .health-app .content-wrapper {
    padding: var(--ng-page-gutter-y) var(--ng-page-gutter-x) calc(var(--ng-page-gutter-y) + 12px);
  }

  .health-app .card-body > .d-flex.justify-content-between.align-items-start,
  .health-app .meal-plan-heading,
  .health-app .nutritionist-suggested-header,
  .health-app .analytics-header,
  .health-app .analytics-panel-header,
  .health-app .admin-workbench-header,
  .health-app .admin-card-header,
  .health-app .food-category-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .health-app .status-pill,
  .health-app .analytics-status-chip,
  .health-app .symptom-log-count,
  .health-app .nutritionist-score,
  .health-app .feedback-rating,
  .health-app .food-category-counts,
  .health-app .analytics-mini-stat {
    align-items: flex-start;
    min-width: 0;
    text-align: left;
  }

  .health-app .food-category-counts {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .health-app .food-availability-controls {
    grid-template-columns: 1fr;
  }

  .health-app .food-availability-controls .btn,
  .health-app .health-form .btn {
    justify-content: center;
    width: 100%;
  }

  .health-app .achievement-item,
  .health-app .activity-item,
  .health-app .nutritionist-compact-item,
  .health-app .nutritionist-reviewed-item,
  .health-app .nutritionist-patient-item,
  .health-app .symptom-log-item,
  .health-app .profile-nutritionist-panel,
  .health-app .chat-pending-action {
    gap: 12px;
  }

  .health-app .achievement-item > em,
  .health-app .activity-item em,
  .health-app .nutritionist-compact-item em,
  .health-app .nutritionist-status-badge,
  .health-app .symptom-log-item time {
    align-self: flex-start;
    text-align: left;
  }

  .health-app .meal-log-form .meal-log-submit-slot {
    padding-top: 0;
  }
}

@media (max-width: 480px) {
  .health-app {
    --ng-page-gutter-x: 12px;
    --ng-page-gutter-y: 12px;
    --ng-card-padding: 15px;
    --ng-item-padding: 12px;
    --ng-panel-padding: 14px;
    --ng-grid-gap: 10px;
    --ng-section-gap: 12px;
  }
}

.health-app #clearLogs.btn {
  background: transparent;
  border-color: transparent;
  box-shadow: none;
  color: var(--ng-health-primary);
  min-height: auto;
  min-width: 0;
  padding: 0;
}

.health-app #clearLogs.btn:hover,
.health-app #clearLogs.btn:focus,
.health-app #clearLogs.btn:active {
  background: transparent;
  border-color: transparent;
  box-shadow: none;
  color: var(--ng-health-primary-dark);
  text-decoration: underline;
}

.health-app {
  --ng-label-teal: #0f766e;
  --ng-label-teal-soft: #ccfbf1;
  --ng-label-blue: #1d4ed8;
  --ng-label-blue-soft: #dbeafe;
  --ng-label-cyan: #0e7490;
  --ng-label-cyan-soft: #cffafe;
  --ng-label-emerald: #047857;
  --ng-label-emerald-soft: #d1fae5;
  --ng-label-violet: #6d28d9;
  --ng-label-violet-soft: #ede9fe;
  --ng-label-sky: #0369a1;
  --ng-label-sky-soft: #e0f2fe;
  --ng-label-green: #15803d;
  --ng-label-green-soft: #dcfce7;
  --ng-label-indigo: #4338ca;
  --ng-label-indigo-soft: #e0e7ff;
  --ng-label-color: var(--ng-label-teal);
  --ng-label-soft: var(--ng-label-teal-soft);
}

html[data-theme="dark"] .health-app {
  --ng-label-teal: #5eead4;
  --ng-label-teal-soft: rgba(45, 212, 191, .16);
  --ng-label-blue: #93c5fd;
  --ng-label-blue-soft: rgba(96, 165, 250, .18);
  --ng-label-cyan: #67e8f9;
  --ng-label-cyan-soft: rgba(6, 182, 212, .18);
  --ng-label-emerald: #6ee7b7;
  --ng-label-emerald-soft: rgba(16, 185, 129, .18);
  --ng-label-violet: #c4b5fd;
  --ng-label-violet-soft: rgba(139, 92, 246, .2);
  --ng-label-sky: #7dd3fc;
  --ng-label-sky-soft: rgba(14, 165, 233, .18);
  --ng-label-green: #86efac;
  --ng-label-green-soft: rgba(34, 197, 94, .18);
  --ng-label-indigo: #a5b4fc;
  --ng-label-indigo-soft: rgba(99, 102, 241, .2);
}

.health-app .metric-label,
.health-app .health-form .form-label,
.health-app .food-availability-form .form-label,
.health-app .calorie-split-item > span,
.health-app .meal-progress-item > div:first-child > span,
.health-app .progress-stat-grid > div > span,
.health-app .meal-log-summary-item > span,
.health-app .recommendation-score small,
.health-app .macro-card .macro-label,
.health-app .profile-print-section-title span,
.health-app .profile-print-grid div > span,
.health-app .profile-print-list-block > div > span,
.health-app .profile-print-stamp span,
.health-app .profile-print-metrics div > span,
.health-app .nutritionist-stat-card .card-body > span,
.health-app .nutritionist-profile-grid div > span,
.health-app .admin-stat-card .card-body > span,
.health-app .analytics-kpi > span,
.health-app .analytics-mini-stat span,
.health-app .analytics-chart-center span,
.health-app .model-comparison-score span,
.health-app .engagement-item span,
.health-app .algorithm-formula span {
  color: var(--ng-label-color) !important;
}

.health-app .metric-icon,
.health-app .analytics-kpi-icon,
.health-app .engagement-item i {
  background: var(--ng-label-soft);
  color: var(--ng-label-color);
}

.health-app .table thead th:nth-child(8n+1) {
  color: var(--ng-label-teal);
}

.health-app .table thead th:nth-child(8n+2) {
  color: var(--ng-label-blue);
}

.health-app .table thead th:nth-child(8n+3) {
  color: var(--ng-label-cyan);
}

.health-app .table thead th:nth-child(8n+4) {
  color: var(--ng-label-emerald);
}

.health-app .table thead th:nth-child(8n+5) {
  color: var(--ng-label-violet);
}

.health-app .table thead th:nth-child(8n+6) {
  color: var(--ng-label-sky);
}

.health-app .table thead th:nth-child(8n+7) {
  color: var(--ng-label-green);
}

.health-app .table thead th:nth-child(8n+8) {
  color: var(--ng-label-indigo);
}

.health-app #metrics > .grid-margin:nth-child(8n+1),
.health-app :is(
  .daily-calorie-split,
  .meal-progress-list,
  .progress-stat-grid,
  .meal-log-summary,
  .achievement-list,
  .activity-list,
  .meal-plan-grid,
  .nutritionist-suggested-grid,
  .portion-guide-grid,
  .food-category-grid,
  .profile-print-metrics,
  .profile-print-grid,
  .profile-print-list-block,
  .nutritionist-summary-grid,
  .nutritionist-profile-grid,
  .nutritionist-ai-meal-grid,
  .nutritionist-model-comparison,
  .admin-summary-grid,
  .analytics-kpi-grid,
  .analytics-macro-strip,
  .model-comparison-list,
  .engagement-list
) > :nth-child(8n+1) {
  --ng-label-color: var(--ng-label-teal);
  --ng-label-soft: var(--ng-label-teal-soft);
}

.health-app #metrics > .grid-margin:nth-child(8n+2),
.health-app :is(
  .daily-calorie-split,
  .meal-progress-list,
  .progress-stat-grid,
  .meal-log-summary,
  .achievement-list,
  .activity-list,
  .meal-plan-grid,
  .nutritionist-suggested-grid,
  .portion-guide-grid,
  .food-category-grid,
  .profile-print-metrics,
  .profile-print-grid,
  .profile-print-list-block,
  .nutritionist-summary-grid,
  .nutritionist-profile-grid,
  .nutritionist-ai-meal-grid,
  .nutritionist-model-comparison,
  .admin-summary-grid,
  .analytics-kpi-grid,
  .analytics-macro-strip,
  .model-comparison-list,
  .engagement-list
) > :nth-child(8n+2) {
  --ng-label-color: var(--ng-label-blue);
  --ng-label-soft: var(--ng-label-blue-soft);
}

.health-app #metrics > .grid-margin:nth-child(8n+3),
.health-app :is(
  .daily-calorie-split,
  .meal-progress-list,
  .progress-stat-grid,
  .meal-log-summary,
  .achievement-list,
  .activity-list,
  .meal-plan-grid,
  .nutritionist-suggested-grid,
  .portion-guide-grid,
  .food-category-grid,
  .profile-print-metrics,
  .profile-print-grid,
  .profile-print-list-block,
  .nutritionist-summary-grid,
  .nutritionist-profile-grid,
  .nutritionist-ai-meal-grid,
  .nutritionist-model-comparison,
  .admin-summary-grid,
  .analytics-kpi-grid,
  .analytics-macro-strip,
  .model-comparison-list,
  .engagement-list
) > :nth-child(8n+3) {
  --ng-label-color: var(--ng-label-cyan);
  --ng-label-soft: var(--ng-label-cyan-soft);
}

.health-app #metrics > .grid-margin:nth-child(8n+4),
.health-app :is(
  .daily-calorie-split,
  .meal-progress-list,
  .progress-stat-grid,
  .meal-log-summary,
  .achievement-list,
  .activity-list,
  .meal-plan-grid,
  .nutritionist-suggested-grid,
  .portion-guide-grid,
  .food-category-grid,
  .profile-print-metrics,
  .profile-print-grid,
  .profile-print-list-block,
  .nutritionist-summary-grid,
  .nutritionist-profile-grid,
  .nutritionist-ai-meal-grid,
  .nutritionist-model-comparison,
  .admin-summary-grid,
  .analytics-kpi-grid,
  .analytics-macro-strip,
  .model-comparison-list,
  .engagement-list
) > :nth-child(8n+4) {
  --ng-label-color: var(--ng-label-emerald);
  --ng-label-soft: var(--ng-label-emerald-soft);
}

.health-app #metrics > .grid-margin:nth-child(8n+5),
.health-app :is(
  .daily-calorie-split,
  .meal-progress-list,
  .progress-stat-grid,
  .meal-log-summary,
  .achievement-list,
  .activity-list,
  .meal-plan-grid,
  .nutritionist-suggested-grid,
  .portion-guide-grid,
  .food-category-grid,
  .profile-print-metrics,
  .profile-print-grid,
  .profile-print-list-block,
  .nutritionist-summary-grid,
  .nutritionist-profile-grid,
  .nutritionist-ai-meal-grid,
  .nutritionist-model-comparison,
  .admin-summary-grid,
  .analytics-kpi-grid,
  .analytics-macro-strip,
  .model-comparison-list,
  .engagement-list
) > :nth-child(8n+5) {
  --ng-label-color: var(--ng-label-violet);
  --ng-label-soft: var(--ng-label-violet-soft);
}

.health-app #metrics > .grid-margin:nth-child(8n+6),
.health-app :is(
  .daily-calorie-split,
  .meal-progress-list,
  .progress-stat-grid,
  .meal-log-summary,
  .achievement-list,
  .activity-list,
  .meal-plan-grid,
  .nutritionist-suggested-grid,
  .portion-guide-grid,
  .food-category-grid,
  .profile-print-metrics,
  .profile-print-grid,
  .profile-print-list-block,
  .nutritionist-summary-grid,
  .nutritionist-profile-grid,
  .nutritionist-ai-meal-grid,
  .nutritionist-model-comparison,
  .admin-summary-grid,
  .analytics-kpi-grid,
  .analytics-macro-strip,
  .model-comparison-list,
  .engagement-list
) > :nth-child(8n+6) {
  --ng-label-color: var(--ng-label-sky);
  --ng-label-soft: var(--ng-label-sky-soft);
}

.health-app #metrics > .grid-margin:nth-child(8n+7),
.health-app :is(
  .daily-calorie-split,
  .meal-progress-list,
  .progress-stat-grid,
  .meal-log-summary,
  .achievement-list,
  .activity-list,
  .meal-plan-grid,
  .nutritionist-suggested-grid,
  .portion-guide-grid,
  .food-category-grid,
  .profile-print-metrics,
  .profile-print-grid,
  .profile-print-list-block,
  .nutritionist-summary-grid,
  .nutritionist-profile-grid,
  .nutritionist-ai-meal-grid,
  .nutritionist-model-comparison,
  .admin-summary-grid,
  .analytics-kpi-grid,
  .analytics-macro-strip,
  .model-comparison-list,
  .engagement-list
) > :nth-child(8n+7) {
  --ng-label-color: var(--ng-label-green);
  --ng-label-soft: var(--ng-label-green-soft);
}

.health-app #metrics > .grid-margin:nth-child(8n+8),
.health-app :is(
  .daily-calorie-split,
  .meal-progress-list,
  .progress-stat-grid,
  .meal-log-summary,
  .achievement-list,
  .activity-list,
  .meal-plan-grid,
  .nutritionist-suggested-grid,
  .portion-guide-grid,
  .food-category-grid,
  .profile-print-metrics,
  .profile-print-grid,
  .profile-print-list-block,
  .nutritionist-summary-grid,
  .nutritionist-profile-grid,
  .nutritionist-ai-meal-grid,
  .nutritionist-model-comparison,
  .admin-summary-grid,
  .analytics-kpi-grid,
  .analytics-macro-strip,
  .model-comparison-list,
  .engagement-list
) > :nth-child(8n+8) {
  --ng-label-color: var(--ng-label-indigo);
  --ng-label-soft: var(--ng-label-indigo-soft);
}

.health-app .health-form > :nth-child(8n+1),
.health-app .health-form .row > :nth-child(8n+1),
.health-app .meal-log-form > :nth-child(8n+1) {
  --ng-label-color: var(--ng-label-teal);
  --ng-label-soft: var(--ng-label-teal-soft);
}

.health-app .health-form > :nth-child(8n+2),
.health-app .health-form .row > :nth-child(8n+2),
.health-app .meal-log-form > :nth-child(8n+2) {
  --ng-label-color: var(--ng-label-blue);
  --ng-label-soft: var(--ng-label-blue-soft);
}

.health-app .health-form > :nth-child(8n+3),
.health-app .health-form .row > :nth-child(8n+3),
.health-app .meal-log-form > :nth-child(8n+3) {
  --ng-label-color: var(--ng-label-cyan);
  --ng-label-soft: var(--ng-label-cyan-soft);
}

.health-app .health-form > :nth-child(8n+4),
.health-app .health-form .row > :nth-child(8n+4),
.health-app .meal-log-form > :nth-child(8n+4) {
  --ng-label-color: var(--ng-label-emerald);
  --ng-label-soft: var(--ng-label-emerald-soft);
}

.health-app .health-form > :nth-child(8n+5),
.health-app .health-form .row > :nth-child(8n+5),
.health-app .meal-log-form > :nth-child(8n+5) {
  --ng-label-color: var(--ng-label-violet);
  --ng-label-soft: var(--ng-label-violet-soft);
}

.health-app .health-form > :nth-child(8n+6),
.health-app .health-form .row > :nth-child(8n+6),
.health-app .meal-log-form > :nth-child(8n+6) {
  --ng-label-color: var(--ng-label-sky);
  --ng-label-soft: var(--ng-label-sky-soft);
}

.health-app .health-form > :nth-child(8n+7),
.health-app .health-form .row > :nth-child(8n+7),
.health-app .meal-log-form > :nth-child(8n+7) {
  --ng-label-color: var(--ng-label-green);
  --ng-label-soft: var(--ng-label-green-soft);
}

.health-app .health-form > :nth-child(8n+8),
.health-app .health-form .row > :nth-child(8n+8),
.health-app .meal-log-form > :nth-child(8n+8) {
  --ng-label-color: var(--ng-label-indigo);
  --ng-label-soft: var(--ng-label-indigo-soft);
}
