/* Nolio mobile edition — the supplied cream/forest reference, without dashboard chrome. */
:root {
  --green: #14422d;
  --on-green: #fff;
  --bg: #fbf9f5;
  --card: #fff;
  --subtle: #f4efe6;
  --ink: #14231d;
  --muted: #667568;
  --line: #eee9df;
  --protein: #2d5a43;
  --carbs: #bf850c;
  --fat: #d96e55;
  --sage: #e8f0eb;
  --shadow: 0 4px 20px #4b392404;
}
:root[data-theme="dark"] {
  --green: #b7e3c1;
  --on-green: #102a19;
  --bg: #080d0a;
  --card: #151f18;
  --subtle: #202f25;
  --ink: #f4f8f2;
  --muted: #c0cfc3;
  --line: #34483a;
  --protein: #b7e3c1;
  --carbs: #efb848;
  --fat: #f39881;
  --sage: #273d2e;
  --shadow: none;
}
body {
  background: var(--bg);
  padding-bottom: 110px;
  -webkit-font-smoothing: antialiased;
}
body > aside {
  display: none !important;
}
.shell {
  padding: 0 !important;
  margin: 0 auto !important;
  max-width: 980px;
}
.shell > .app-topbar {
  height: 96px;
  margin: 0 auto;
  padding: 24px 28px;
  max-width: 980px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 14px;
  border: none;
  background: var(--bg);
}
#app-logo {
  display: flex;
  align-items: center;
  flex: none;
}
#app-logo img {
  width: 46px;
  height: 46px;
  border-radius: 15px;
  display: block;
}
.app-topbar-copy {
  display: flex;
  flex: 1;
  align-items: center;
  min-width: 0;
}
#app-title {
  font-size: 23px;
  font-weight: 750;
  letter-spacing: -0.8px;
  color: var(--ink);
}
.app-topbar .avatar {
  width: 42px;
  height: 42px;
  min-width: 42px;
  display: grid;
  place-items: center;
  background: var(--card);
  color: var(--green);
  border: 1px solid var(--line);
  box-shadow: 0 2px 4px #00000003;
  padding: 10px;
}
.app-topbar .avatar svg {
  width: 20px;
  height: 20px;
}
.shell > footer {
  display: none;
}
main {
  padding: 0 28px 35px;
  max-width: 980px;
  margin: auto;
}
h1,
h2,
h3 {
  color: var(--ink);
}
h2 {
  font-size: 16px;
  font-weight: 650;
  letter-spacing: -0.4px;
}
h3 {
  font-size: 14px;
}
.page-head h1 {
  font-size: 24px;
}
.page-head > .sub,
.page-head > div > .sub {
  display: none;
}
.page-head {
  margin-top: 12px;
  min-height: 0;
}
.week {
  max-width: 520px;
  margin: 0 auto 18px;
  gap: 10px;
}
.day {
  min-height: 63px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  border-radius: 20px;
  padding: 7px 3px;
  background: var(--card);
}
.day.active {
  background: var(--green);
  box-shadow: 0 6px 14px #14422d12;
}
.day small {
  text-transform: uppercase;
  font-weight: 500;
  font-size: 10px;
}
.day strong {
  font-size: 16px;
  font-weight: 650;
}
.day i {
  width: 4px;
  height: 4px;
  min-height: 4px;
  margin: 0;
  border-radius: 50%;
}
.day.active small {
  opacity: 0.8;
}
.home-tabs {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 4px;
  background: var(--subtle);
  width: fit-content;
  margin: 0 auto 22px;
  border-radius: 999px;
}
.home-tabs button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-width: 125px;
  min-height: 36px;
  padding: 8px 20px;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}
.home-tabs svg {
  width: 15px;
  height: 15px;
}
.home-tabs [aria-selected="true"] {
  background: var(--card);
  color: var(--green);
  box-shadow: 0 2px 8px #00000005;
}
.phone-dashboard {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}
.phone-primary,
.phone-secondary {
  min-width: 0;
}
.calorie-focus,
.sport-focus {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 23px;
  box-shadow: var(--shadow);
}
.focus-card-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.focus-card-title h2 {
  margin: 0;
  font-size: 15px;
}
.small-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 30px;
  background: none;
  color: var(--muted);
  font-size: 10px;
  text-decoration: none;
  padding: 0;
}
.small-link svg {
  width: 12px;
  height: 12px;
}
.small-link:hover {
  color: var(--green);
}
.calorie-orbit {
  position: relative;
  margin: 12px auto 0;
  max-width: 270px;
}
.calorie-orbit .nutrition-dial.large {
  width: 100%;
  max-width: 270px;
  margin: 0;
  aspect-ratio: 1;
}
.nutrition-dial.large circle {
  stroke-width: 11;
}
.nutrition-dial.large .dial-track {
  stroke: var(--subtle);
}
.nutrition-dial.large .dial-progress {
  transform: none;
  animation: nolio-ring-arrive 850ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}
.nutrition-dial.large strong {
  font-size: 40px;
  font-weight: 800;
  color: var(--green);
  letter-spacing: -1.8px;
}
.nutrition-dial.large strong small {
  font-size: 12px;
  letter-spacing: 0;
}
.nutrition-dial.large span {
  font-size: 11px;
  color: var(--muted);
  font-weight: 500;
}
.nutrition-dial.large > div {
  gap: 1px;
}
.nutrition-dial.large > div > small {
  font-size: 10px;
}
.orbit-decoration {
  position: absolute;
  inset: 14%;
  border: 3px dotted var(--subtle);
  border-radius: 50%;
  pointer-events: none;
}
.remaining-pill {
  font-size: 10px;
  color: var(--green);
  border-radius: 99px;
  background: var(--sage);
  width: fit-content;
  max-width: 100%;
  padding: 5px 11px;
  text-align: center;
  margin: -12px auto 20px;
  position: relative;
}
.remaining-pill.over {
  color: var(--fat);
  background: var(--subtle);
}
.focus-totals {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  border-top: 1px solid var(--line);
  padding: 15px 0;
  font-size: 9px;
  color: var(--muted);
}
.focus-totals > span {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.focus-totals > span:last-child {
  text-align: right;
}
.focus-totals b {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}
.focus-totals small {
  font-size: 9px;
  font-weight: 400;
}
.compact-macros {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.compact-macros > div {
  background: color-mix(in srgb, var(--macro-color) 9%, var(--card));
  border-radius: 17px;
  padding: 12px 10px;
  min-width: 0;
}
.compact-macros span {
  font-size: 9px;
  font-weight: 550;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
}
.compact-macros span > i {
  display: block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--macro-color);
  flex: none;
}
.mini-progress {
  height: 5px;
  border-radius: 99px;
  background: var(--card);
  margin: 7px 0;
  overflow: hidden;
}
.mini-progress > i {
  height: 100%;
  display: block;
  background: var(--macro-color);
  border-radius: 99px;
  transition: width 0.5s ease;
}
.compact-macros b {
  font-size: 12px;
  font-weight: 600;
  color: var(--macro-color);
  white-space: nowrap;
}
.compact-macros b small {
  font-size: 9px;
  font-weight: 400;
  color: var(--muted);
}
.camera-search-pair {
  display: flex;
  gap: 10px;
  align-items: stretch;
  margin: 0 0 18px;
}
.photo-primary {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  padding: 16px 18px;
  min-height: 65px;
  flex: 1;
  border-radius: 21px;
  background: var(--green);
  color: var(--on-green);
  box-shadow: 0 5px 12px #14422d0a;
  line-height: 1.5;
  text-align: left;
}
.photo-primary > svg {
  width: 23px;
  height: 23px;
  flex: none;
}
.photo-primary > svg:last-child {
  width: 13px;
  height: 13px;
  margin-left: auto;
}
.photo-primary > span {
  font-weight: 650;
  font-size: 12px;
  max-width: 155px;
}
.search-shortcut {
  width: 65px;
  min-width: 65px;
  display: grid;
  place-items: center;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 21px;
  color: var(--green);
}
.search-shortcut svg {
  width: 22px;
  height: 22px;
}
.water-strip {
  display: flex;
  align-items: center;
  gap: 10px;
  border-radius: 21px;
  background: var(--card);
  border: 1px solid var(--line);
  padding: 16px;
  margin-bottom: 25px;
  box-shadow: var(--shadow);
  flex-wrap: wrap;
}
.water-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  background: color-mix(in srgb, var(--blue) 10%, var(--card));
  color: var(--blue);
  border-radius: 50%;
  flex: none;
}
.water-icon svg {
  width: 18px;
  height: 18px;
}
.water-strip > div:nth-child(2) {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-right: auto;
}
.water-strip b {
  font-size: 12px;
  font-weight: 600;
}
.water-strip small {
  font-size: 10px;
  color: var(--muted);
}
.water-strip > button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-height: 35px;
  padding: 7px 10px;
  background: var(--subtle);
  border-radius: 99px;
  font-size: 10px;
  color: var(--ink);
}
.water-strip > button svg {
  width: 13px;
  height: 13px;
}
.water-strip > .water-less {
  min-width: 30px;
  width: 30px;
  padding: 4px;
  background: none;
  color: var(--muted);
  font-size: 17px;
}
.water-marks {
  display: flex;
  gap: 4px;
  order: 10;
  flex-basis: 100%;
  padding-top: 3px;
}
.water-marks i {
  display: block;
  flex: 1;
  height: 6px;
  background: var(--subtle);
  border-radius: 99px;
}
.water-marks .filled {
  background: var(--blue);
}
.list-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 0 3px 10px;
}
.list-heading h2 {
  margin: 0;
  font-size: 15px;
}
.daily-meal-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.daily-meal {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  text-align: left;
  padding: 16px;
  background: var(--card);
  border-radius: 21px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  min-width: 0;
  color: var(--ink);
}
.daily-meal-icon {
  width: 41px;
  height: 41px;
  border-radius: 50%;
  background: var(--subtle);
  display: grid;
  place-items: center;
  color: var(--green);
  flex: none;
  overflow: hidden;
}
.daily-meal-icon svg {
  width: 19px;
  height: 19px;
}
.daily-meal-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.daily-meal-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  flex: 1;
}
.daily-meal-text b {
  font-size: 13px;
  font-weight: 650;
  letter-spacing: -0.3px;
}
.daily-meal-text small {
  font-size: 10px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--muted);
}
.daily-meal-energy {
  display: flex;
  align-items: baseline;
  gap: 3px;
  font-weight: 600;
  font-size: 12px;
  white-space: nowrap;
}
.daily-meal-energy small {
  font-size: 9px;
  font-weight: 400;
}
.daily-meal-energy svg {
  width: 20px;
  height: 20px;
  color: var(--green);
}
.daily-meal > svg:last-child {
  width: 13px;
  height: 13px;
  color: var(--muted);
}
.sport-main-metric {
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 10px;
  margin: 28px 0;
}
.sport-emblem {
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: var(--sage);
  color: var(--green);
}
.sport-emblem svg {
  width: 28px;
  height: 28px;
}
.sport-main-metric > strong {
  font-size: 52px;
  line-height: 1.15;
  letter-spacing: -2px;
  color: var(--green);
  font-weight: 750;
}
.sport-main-metric > strong small {
  font-size: 16px;
  font-weight: 400;
  letter-spacing: 0;
  margin-left: 6px;
}
.sport-main-metric > span:last-child {
  font-size: 11px;
  color: var(--muted);
}
.sport-three {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
}
.sport-three > div {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  text-align: center;
}
.sport-three b {
  font-size: 18px;
  font-weight: 650;
}
.sport-three small {
  font-size: 9px;
  line-height: 1.5;
  color: var(--muted);
}
.sport-add-primary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--green);
  color: var(--on-green);
  width: 100%;
  min-height: 47px;
  border-radius: 99px;
  font-size: 12px;
  font-weight: 600;
  margin-top: 8px;
}
.sport-add-primary svg {
  width: 17px;
  height: 17px;
}
.sport-balance-strip {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  background: var(--sage);
  padding: 17px;
  border-radius: 20px;
  margin-top: 17px;
  font-size: 11px;
}
.sport-balance-strip > span {
  display: flex;
  align-items: center;
  gap: 6px;
}
.sport-balance-strip > span > svg {
  width: 16px;
  height: 16px;
}
.sport-balance-strip small {
  font-size: 10px;
  color: var(--muted);
}
.sport-balance-strip .small-link {
  justify-self: end;
  min-height: 20px;
}
.activity-preview {
  margin-top: 24px;
}
.activity-preview-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 0;
  background: none;
  width: 100%;
  border-bottom: 1px solid var(--line);
  text-align: left;
}
.activity-preview-row > span {
  background: var(--subtle);
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 12px;
}
.activity-preview-row > span svg {
  width: 18px;
  height: 18px;
}
.activity-preview-row > div {
  display: flex;
  flex-direction: column;
  gap: 3px;
  flex: 1;
}
.activity-preview-row b {
  font-size: 12px;
  font-weight: 600;
}
.activity-preview-row small {
  font-size: 10px;
  color: var(--muted);
}
.activity-preview-row > svg {
  width: 14px;
  height: 14px;
  color: var(--muted);
}
.quiet-empty {
  padding: 28px 0;
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}
.nutrition-return {
  display: flex;
  gap: 12px;
  align-items: center;
  color: var(--green);
  border-bottom: 1px solid var(--line);
  padding: 16px 2px;
  font-size: 12px;
}
.nutrition-return svg {
  width: 18px;
  height: 18px;
}
.nutrition-return svg:last-child {
  margin-left: auto;
  width: 13px;
}
#mobile-nav {
  display: flex !important;
  position: fixed;
  left: 50%;
  right: auto;
  transform: translateX(-50%);
  bottom: calc(12px + env(safe-area-inset-bottom));
  width: min(620px, calc(100% - 28px));
  height: 74px;
  align-items: center;
  justify-content: space-around;
  padding: 7px 9px;
  background: color-mix(in srgb, var(--card) 94%, transparent);
  border: 1px solid var(--line);
  border-radius: 26px;
  box-shadow: 0 8px 32px #14231d06;
  backdrop-filter: blur(16px);
  z-index: 80;
}
#mobile-nav .nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 0;
  flex: 1;
  padding: 7px 2px;
  min-height: 54px;
  border: 0;
  border-radius: 16px;
  background: none;
  color: var(--muted);
  font-size: 9px;
  font-weight: 600;
  line-height: 1.5;
}
#mobile-nav .nav-item svg {
  width: 21px;
  height: 21px;
  margin: 0;
}
#mobile-nav .nav-item.active {
  color: var(--green);
  background: none;
}
#mobile-nav .nav-item.active:after {
  content: "";
  display: block;
  position: absolute;
  bottom: 7px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--green);
}
#mobile-nav .center-add {
  gap: 4px;
  color: var(--green);
}
#mobile-nav .center-add svg {
  margin-top: -20px;
  border: 1px solid color-mix(in srgb, var(--on-green) 15%, var(--green));
  background: var(--green);
  color: var(--on-green);
  border-radius: 50%;
  padding: 12px;
  width: 48px;
  height: 48px;
  box-shadow: 0 0 0 5px var(--bg);
}
#mobile-nav button.center-add:active svg {
  transform: scale(0.94);
}
.personal-hub {
  max-width: 560px;
  margin: auto;
}
.personal-title {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 20px 3px 28px;
}
.personal-title img {
  width: 56px;
  height: 56px;
  display: block;
  border-radius: 18px;
}
.personal-title h1 {
  font-size: 25px;
  letter-spacing: -1px;
  margin: 0;
}
.personal-menu {
  border-block: 1px solid var(--line);
}
.personal-menu > a {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 18px 4px;
  border-bottom: 1px solid var(--line);
}
.personal-menu > a:last-child {
  border: 0;
}
.menu-symbol {
  display: grid;
  place-items: center;
  background: var(--sage);
  color: var(--green);
  width: 40px;
  height: 40px;
  border-radius: 14px;
}
.menu-symbol > svg {
  width: 19px;
  height: 19px;
}
.personal-menu b {
  font-size: 13px;
  font-weight: 600;
  flex: 1;
}
.personal-menu > a > svg {
  width: 14px;
  height: 14px;
  color: var(--muted);
}
.hub-themes {
  display: flex;
  background: var(--subtle);
  padding: 4px;
  border-radius: 99px;
  margin: 26px 0 18px;
  gap: 4px;
}
.hub-themes button {
  flex: 1;
  padding: 10px;
  border-radius: 99px;
  min-height: 40px;
  font-size: 12px;
  background: none;
  color: var(--muted);
}
.hub-themes [aria-pressed="true"] {
  background: var(--card);
  color: var(--green);
}
.backup-shortcut {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-size: 11px;
  color: var(--muted);
  background: none;
  width: 100%;
  min-height: 45px;
}
.backup-shortcut svg {
  width: 16px;
  height: 16px;
}
.settings-accordions {
  max-width: 650px;
  margin: auto;
}
.settings-section {
  border-bottom: 1px solid var(--line);
  padding: 0;
}
.settings-section > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 2px;
  list-style: none;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
}
.settings-section > summary::-webkit-details-marker {
  display: none;
}
.settings-section > summary > svg {
  width: 16px;
  height: 16px;
  color: var(--muted);
  transition: transform 0.2s;
}
.settings-section[open] > summary > svg {
  transform: rotate(90deg);
}
.settings-section > div {
  padding: 0 2px 24px;
}
.settings-section .notice,
.settings-section .storage-note {
  font-size: 11px;
}
.journal-page > .date-control {
  width: fit-content;
  margin: 0 auto 20px;
}
.journal-total {
  padding: 24px 0 28px;
  text-align: center;
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 10px;
}
.journal-total > span {
  font-size: 11px;
  color: var(--muted);
}
.journal-total > b {
  font-size: 36px;
  letter-spacing: -1.5px;
  line-height: 1.2;
}
.journal-total > b small {
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0;
}
.journal-total > div {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  font-size: 10px;
  color: var(--muted);
}
.journal-total > div > span {
  display: flex;
  align-items: center;
  gap: 5px;
}
.journal-total i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--macro-color);
}
.journal-page .meal {
  border-radius: 22px;
  box-shadow: none;
}
.journal-page .meal-photo-button {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  float: right;
  margin-top: 12px;
  margin-left: 10px;
}
.journal-page .meal-photo {
  width: 48px;
  height: 48px;
  object-fit: cover;
}
.journal-page .meal-tools {
  font-size: 10px;
}
.journal-page .meal-tools button {
  font-size: 10px;
}
.add-photo-first {
  margin: 5px 0 15px;
}
.add-photo-first > button {
  background: var(--green);
  color: var(--on-green);
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 28px;
  border-radius: 23px;
  min-height: 145px;
}
.add-photo-first svg {
  width: 36px;
  height: 36px;
}
.add-photo-first b {
  font-size: 15px;
  font-weight: 600;
}
.add-options {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.add-options > button {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 16px 3px;
  border-bottom: 1px solid var(--line);
  background: none;
  text-align: left;
}
.add-options > button > span {
  background: var(--subtle);
  color: var(--green);
  width: 36px;
  height: 36px;
  border-radius: 13px;
  display: grid;
  place-items: center;
}
.add-options > button > span svg {
  width: 18px;
  height: 18px;
}
.add-options > button b {
  font-size: 12px;
  font-weight: 550;
  flex: 1;
}
.add-options > button > svg {
  width: 13px;
  color: var(--muted);
}
.google-search-link {
  display: block;
  margin: 0 0 14px;
  padding: 8px 0;
  background: none;
  text-align: left;
  font-size: 11px;
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.photo-help {
  margin: 15px 0;
  color: var(--muted);
  font-size: 11px;
}
.photo-help summary {
  cursor: pointer;
  padding: 8px 0;
}
.photo-help p {
  padding: 10px 0;
  line-height: 1.8;
}
.energy-breakdown > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid var(--line);
  padding: 16px 0;
  font-size: 12px;
}
.energy-breakdown b {
  font-weight: 650;
}
.meal-detail-actions {
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
  margin-top: 20px;
}
.meal-detail-actions .btn {
  font-size: 11px;
}
.meal-detail-list .entry {
  font-size: 11px;
}
.meal-detail-list .entry-info small {
  font-size: 10px;
}
.inline-help {
  font-size: 11px;
  color: var(--muted);
  margin: 12px 0 20px;
}
.inline-help > summary {
  cursor: pointer;
}
.card,
.plan-day {
  box-shadow: none;
}
.plan-summary {
  border-radius: 17px;
  font-size: 11px;
}
.drive-card {
  border-radius: 22px;
}
#modal {
  border-radius: 28px;
}
#modal-content {
  padding: 25px;
}
.modal-head h2 {
  font-size: 20px;
  letter-spacing: -0.6px;
}
.modal-head {
  margin-bottom: 20px;
}
.btn {
  min-height: 44px;
  font-size: 12px;
}
.btn.small {
  font-size: 11px;
}
#app > .page-head {
  display: flex;
  justify-content: flex-end;
}
.page-head > .btn {
  margin-left: auto;
}
.entry-info small {
  line-height: 1.6;
}
.card > .sub {
  font-size: 12px;
}
.profile-card {
  box-shadow: none;
}
/* Actual state changes trigger these short transitions; no continual decoration. */
#app > div,
#app > section {
  animation: nolio-page-in 0.32s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
.daily-meal,
.activity-preview-row {
  animation: nolio-row-in 0.35s both;
}
.daily-meal:nth-child(2) {
  animation-delay: 35ms;
}
.daily-meal:nth-child(3) {
  animation-delay: 70ms;
}
.daily-meal:nth-child(4) {
  animation-delay: 105ms;
}
.home-tabs button,
.day,
.photo-primary,
.daily-meal,
.add-options > button {
  transition:
    background-color 0.18s,
    transform 0.18s,
    box-shadow 0.18s;
}
.photo-primary:active,
.daily-meal:active,
.add-options > button:active {
  transform: scale(0.985);
}
.mini-progress > i {
  animation: nolio-bar-in 0.65s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}
#modal[open] {
  animation: nolio-sheet-in 0.26s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.photo-preview {
  animation: nolio-page-in 0.3s both;
}
@keyframes nolio-ring-arrive {
  from {
    stroke-dashoffset: 100;
    opacity: 0.2;
  }
  to {
    stroke-dashoffset: 0;
    opacity: 1;
  }
}
@keyframes nolio-page-in {
  from {
    opacity: 0;
    transform: translateY(7px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes nolio-row-in {
  from {
    opacity: 0;
    transform: translateY(5px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes nolio-bar-in {
  from {
    transform: scaleX(0);
    transform-origin: left;
  }
  to {
    transform: scaleX(1);
    transform-origin: left;
  }
}
@keyframes nolio-sheet-in {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@media (max-width: 700px) {
  .shell {
    max-width: 500px;
  }
  .shell > .app-topbar {
    height: 85px;
    padding: 18px 20px;
    gap: 12px;
  }
  #app-logo img {
    width: 43px;
    height: 43px;
    border-radius: 14px;
  }
  #app-title {
    font-size: 21px;
  }
  main {
    padding: 0 20px 22px;
  }
  .phone-dashboard {
    display: flex;
    flex-direction: column;
    gap: 18px;
  }
  .phone-primary,
  .phone-secondary {
    width: 100%;
  }
  .week {
    gap: 9px;
    margin-bottom: 17px;
  }
  .day {
    min-height: 58px;
    border-radius: 18px;
  }
  .home-tabs {
    margin-bottom: 19px;
  }
  .home-tabs button {
    min-height: 34px;
    font-size: 11px;
    min-width: 115px;
  }
  .calorie-focus {
    padding: 20px;
    border-radius: 26px;
  }
  .calorie-orbit {
    max-width: 252px;
    margin-top: 8px;
  }
  .nutrition-dial.large strong {
    font-size: 38px;
  }
  .remaining-pill {
    margin-top: -10px;
  }
  .focus-totals {
    padding: 14px 0;
  }
  .camera-search-pair {
    margin-bottom: 16px;
  }
  .photo-primary {
    min-height: 65px;
    padding: 15px 18px;
  }
  .photo-primary > span {
    font-size: 12px;
  }
  .water-strip {
    padding: 15px;
    margin-bottom: 23px;
  }
  .daily-meal {
    padding: 15px;
  }
  .sport-focus {
    padding: 20px;
  }
  .sport-main-metric {
    margin: 25px 0;
  }
  .sport-main-metric > strong {
    font-size: 50px;
  }
  .phone-secondary > .nutrition-return {
    margin-top: 6px;
  }
  .activity-preview {
    margin-top: 21px;
  }
  .personal-title {
    padding-top: 10px;
  }
  .card {
    padding: 20px;
    border-radius: 22px;
  }
  .planner-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .page-head {
    margin-top: 0;
  }
  .recipe-tools {
    flex-wrap: wrap;
    gap: 10px;
  }
  .modal-head {
    margin-bottom: 17px;
  }
  #modal {
    max-height: calc(100dvh - 18px);
    width: calc(100vw - 18px);
    border-radius: 26px;
  }
  #modal-content {
    padding: 22px;
  }
  .form-grid {
    gap: 14px;
  }
  .sport-focus ~ .activity-preview {
    margin-bottom: 4px;
  }
  .history-chart {
    gap: 7px;
  }
  .settings-section > summary {
    font-size: 13px;
    padding: 20px 1px;
  }
  .energy-breakdown > div {
    font-size: 11px;
  }
  .meal-detail-actions .btn {
    flex: 1;
  }
  .journal-page .week {
    margin-top: 20px;
  }
  body {
    padding-bottom: calc(105px + env(safe-area-inset-bottom));
  }
  #toast {
    bottom: calc(104px + env(safe-area-inset-bottom));
  }
}
@media (max-width: 360px) {
  main {
    padding-inline: 15px;
  }
  .shell > .app-topbar {
    padding-inline: 15px;
    gap: 10px;
  }
  #app-title {
    font-size: 20px;
  }
  .week {
    gap: 7px;
  }
  .day {
    min-height: 55px;
  }
  .day strong {
    font-size: 14px;
  }
  .calorie-focus {
    padding: 18px 16px;
  }
  .calorie-orbit {
    max-width: 235px;
  }
  .compact-macros {
    gap: 6px;
  }
  .compact-macros > div {
    padding: 10px 8px;
  }
  .compact-macros span {
    font-size: 8px;
  }
  .compact-macros b {
    font-size: 11px;
  }
  .compact-macros b small {
    font-size: 8px;
  }
  .daily-meal {
    padding: 13px;
    gap: 10px;
  }
  .daily-meal-text b {
    font-size: 12px;
  }
  .daily-meal-icon {
    width: 36px;
    height: 36px;
  }
  .water-strip > button {
    font-size: 9px;
    padding: 7px;
  }
  .water-strip {
    gap: 8px;
  }
  .water-strip .water-less {
    width: 24px;
    min-width: 24px;
  }
  .photo-primary {
    padding: 14px;
    gap: 9px;
  }
  .search-shortcut {
    min-width: 58px;
    width: 58px;
  }
  .photo-primary > span {
    font-size: 11px;
  }
  #mobile-nav .nav-item {
    font-size: 8px;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  #modal-content {
    padding: 20px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
.dish-placeholder {
  display: grid;
  place-items: center;
  background: var(--sage);
  color: var(--green);
  height: 80px;
  border-radius: 18px;
}
.dish-placeholder svg {
  width: 32px;
  height: 32px;
  opacity: 0.65;
}
.recipe-img {
  max-height: 160px;
}
.recipe-card h3 {
  font-size: 16px;
}
.recipe-tools .quiet {
  font-size: 10px;
}
.menus-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin: 16px 0 22px;
}
.week-control {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px;
  font-size: 11px;
}
.week-control > span {
  margin-right: auto;
  font-size: 12px;
}
.week-control .btn {
  font-size: 10px;
}
.menu-days {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.menu-day {
  border: 1px solid var(--line);
  background: var(--card);
  border-radius: 21px;
  overflow: hidden;
}
.menu-day > summary {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 17px 19px;
  list-style: none;
  cursor: pointer;
}
.menu-day > summary::-webkit-details-marker {
  display: none;
}
.menu-day > summary > span {
  display: flex;
  flex-direction: column;
  gap: 3px;
  flex: 1;
}
.menu-day > summary b {
  text-transform: capitalize;
  font-size: 13px;
  font-weight: 650;
}
.menu-day > summary small {
  color: var(--muted);
  font-size: 10px;
}
.menu-day > summary em {
  font-size: 10px;
  color: var(--muted);
  font-style: normal;
}
.menu-day > summary > svg {
  width: 14px;
  height: 14px;
  color: var(--muted);
  transition: transform 0.2s;
}
.menu-day[open] > summary > svg {
  transform: rotate(90deg);
}
.menu-day[open] > summary {
  border-bottom: 1px solid var(--line);
}
.menu-day-body {
  padding: 3px 19px 16px;
}
.menu-item {
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.menu-item > small {
  font-size: 9px;
  color: var(--green);
  font-weight: 550;
}
.menu-item > b {
  font-size: 13px;
  font-weight: 600;
}
.menu-item > span {
  font-size: 10px;
  color: var(--muted);
}
.menu-item-actions {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 4px;
}
.menu-item-actions > .small-link {
  color: var(--green);
  margin-right: auto;
  font-weight: 600;
}
.menu-add {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  font-size: 11px;
  color: var(--green);
  background: var(--sage);
  width: 100%;
  min-height: 42px;
  border-radius: 99px;
  margin-top: 15px;
}
.menu-add svg {
  width: 16px;
  height: 16px;
}
.settings-section .version {
  margin-top: 16px;
}
.menus-page {
  max-width: 700px;
  margin: auto;
}
#mobile-nav .nav-item {
  position: relative;
}
#mobile-nav .nav-item.active:after {
  left: 50%;
  transform: translateX(-50%);
  bottom: 1px;
}
.boot-mark {
  display: none;
}
.booting .shell,
.booting #mobile-nav {
  visibility: hidden;
}
.booting .boot-mark {
  display: grid;
  place-items: center;
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 100;
}
.boot-mark img {
  width: 76px;
  height: 76px;
  border-radius: 24px;
}
.sport-budget-toggle {
  display: flex;
  align-items: center;
  gap: 9px;
  grid-column: 1/-1;
  border-top: 1px solid color-mix(in srgb, var(--green) 15%, transparent);
  padding-top: 12px;
  margin-top: 3px;
  font-size: 10px;
  line-height: 1.6;
}
.sport-budget-toggle input {
  margin: 0;
  width: 18px;
  height: 18px;
  min-height: 18px;
  accent-color: var(--green);
}
.drive-disclosure {
  margin-top: 25px;
  border-top: 1px solid var(--line);
  padding: 16px 0;
}
.drive-disclosure > summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
  list-style: none;
}
.drive-disclosure > summary > svg {
  width: 14px;
  height: 14px;
  color: var(--muted);
}
.drive-disclosure[open] > summary > svg {
  transform: rotate(90deg);
}
.drive-disclosure > p {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.8;
  margin: 17px 0;
}
.drive-disclosure .drive-actions {
  margin-top: 15px;
}
.drive-disclosure .btn {
  min-height: 44px;
}

/* Readability correction: surfaces always use the active theme. */
.week-control {
  background: var(--card);
  color: var(--ink);
  border: 1px solid var(--line);
}
.week-control > span {
  color: var(--ink);
  font-size: 13px;
  font-weight: 500;
}
.week-control .icon-btn {
  color: var(--muted);
}
.food-row,
.macro,
.water .btn {
  background: var(--card);
  color: var(--ink);
}
.small-link {
  font-size: 11px;
}
.menu-day > summary small {
  font-size: 12px;
}
.menu-day > summary em {
  font-size: 11px;
}
.menu-item > span,
.menu-item > small,
.menu-add {
  font-size: 11px;
}
.compact-macros span,
.compact-macros b small {
  font-size: 10px;
}
.daily-meal-text small {
  font-size: 11px;
}
#mobile-nav .nav-item {
  font-size: 10px;
}
:root[data-theme="dark"] input::placeholder,
:root[data-theme="dark"] textarea::placeholder {
  color: var(--muted);
  opacity: 1;
}
:root[data-theme="dark"] .week-control .btn.light {
  color: var(--ink);
  background: var(--subtle);
}
@media (max-width: 360px) {
  #mobile-nav .nav-item {
    font-size: 9px;
  }
  .week-control > span {
    font-size: 12px;
  }
  .compact-macros span,
  .compact-macros b small {
    font-size: 9px;
  }
}

/* Daily workflow finishing, including narrow screens and system text sizing. */
[hidden] { display: none !important; }
.recipe-search { margin-bottom: 18px; }
.recipe-title-button { border: 0; background: none; color: inherit; font: inherit; text-align: left; padding: 0; cursor: pointer; overflow-wrap: anywhere; }
.recipe-read-photo { display: block; width: 100%; max-height: 240px; object-fit: cover; border-radius: 20px; }
.recipe-read-meta { display: flex; gap: 12px; flex-wrap: wrap; color: var(--muted); margin: 14px 0; font-size: 13px; }
.recipe-steps { white-space: pre-wrap; line-height: 1.7; overflow-wrap: anywhere; }
.cooking-list { margin-bottom: 20px; }
.cooking-list label { display: flex; align-items: center; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.cooking-list input { flex: 0 0 20px; width: 20px; height: 20px; accent-color: var(--green); }
.cooking-list span { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.cooking-list b { font-size: 13px; white-space: nowrap; }
.cooking-list label:has(input:checked) span { text-decoration: line-through; opacity: .6; }
.menu-consumed { color: var(--muted); }
.water-edit { color: inherit; background: none; border: 0; padding: 0; font: inherit; text-align: left; cursor: pointer; }
.water-edit b, .water-edit small { display: block; }
.water-edit small { color: var(--muted); font-size: 11px; margin-top: 4px; }
.shopping-filter { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; margin: 0 0 20px; font-size: 13px; }
.shopping-filter label { display: flex; align-items: center; gap: 9px; min-height: 44px; }
.shopping-filter input { width: 20px; height: 20px; accent-color: var(--green); }
.shopping-filter span { color: var(--muted); }
#app, .card, .entry-info, .activity-row > div, .menu-item, .recipe-card { min-width: 0; }
.entry-info b, .activity-row h3, .menu-item > b { overflow-wrap: anywhere; }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid var(--green); outline-offset: 4px; }
@media (max-width: 600px) {
  input, select, textarea { font-size: 16px; }
  .week-control { flex-wrap: wrap; gap: 5px; }
  .week-control > span { flex: 1; min-width: 0; text-align: center; }
  .week-control > .btn { width: 100%; margin-top: 4px; }
  .shopping-toolbar, .shopping-toolbar > div { flex-wrap: wrap; gap: 8px; }
  .shopping-item { flex-wrap: wrap; }
  .shopping-item .checkline { flex: 1; min-width: min(150px, 100%); }
  .category-select { max-width: 100%; }
  .activity-row { flex-wrap: wrap; }
  .activity-row > div:nth-child(2) { flex: 1; min-width: min(180px, 100%); }
  .history-chart { overflow-x: auto; justify-content: flex-start; padding-bottom: 10px; }
  .history-col { flex: 0 0 42px; }
  .stat-grid { grid-template-columns: 1fr; }
  .stat-grid .card { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px; }
  .stat-grid .card > b { font-size: 28px; white-space: nowrap; }
  .meal-detail-list .entry, .meal .entry { display: grid; grid-template-columns: minmax(0,1fr) auto auto; gap: 9px; }
  .meal-detail-list .entry .entry-info, .meal .entry .entry-info { grid-column: 1 / -1; }
  .meal-detail-list .entry > span, .meal .entry > .entry-kcal { justify-self: start; }
  .recipe-card .actions { flex-wrap: wrap; }
  .recipe-card .actions .btn { flex: 1 1 auto; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; } }
