@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("./fonts/jakarta-400.ttf") format("truetype");
}
@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("./fonts/jakarta-500.ttf") format("truetype");
}
@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("./fonts/jakarta-600.ttf") format("truetype");
}
@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("./fonts/jakarta-700.ttf") format("truetype");
}
@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("./fonts/jakarta-800.ttf") format("truetype");
}
:root {
  color-scheme: light;
  --bg: #fbf9f5;
  --card: #fff;
  --subtle: #f4efe6;
  --ink: #1e293b;
  --muted: #617065;
  --green: #2d5a43;
  --on-green: #fff;
  --lime: #efdfbe;
  --line: #eae8e1;
  --protein: #2d5a43;
  --carbs: #b57c0d;
  --fat: #cb644c;
  --sage: #e8f0eb;
  --blue: #2684a5;
  --orange: var(--protein);
  --purple: var(--carbs);
  --shadow: 0 6px 24px -8px #233b2d0a;
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #151b18;
  --card: #1e2722;
  --subtle: #29332c;
  --ink: #edf1e9;
  --muted: #b0bdb3;
  --green: #a1d1b4;
  --on-green: #102e20;
  --lime: #d6c8a5;
  --line: #344238;
  --protein: #a1d1b4;
  --carbs: #e7b75a;
  --fat: #f3967f;
  --sage: #293d31;
  --blue: #7ac5df;
  --shadow: none;
}
body {
  font-family: "Plus Jakarta Sans", system-ui, sans-serif;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
}
h1,
h2,
h3,
.brand,
.ring-center,
.budget,
.stat-grid b {
  font-family: "Plus Jakarta Sans", system-ui, sans-serif;
}
h1 {
  font-size: 32px;
  letter-spacing: -1.2px;
  line-height: 1.3;
  font-weight: 750;
}
h2 {
  font-size: 17px;
  letter-spacing: -0.4px;
}
h3 {
  font-size: 15px;
}
.sub {
  color: var(--muted);
  line-height: 1.65;
}
small,
.quiet,
.notice {
  color: var(--muted);
}
button,
input,
select,
textarea {
  font: inherit;
}
button {
  color: inherit;
}
textarea {
  width: 100%;
  min-height: 90px;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--ink);
  border-radius: 12px;
  padding: 12px;
  resize: vertical;
}
button,
a,
input,
select,
textarea {
  touch-action: manipulation;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 3px;
}
.card,
.meal,
.plan-day,
dialog,
.more-grid > a {
  background: var(--card);
  color: var(--ink);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  border-radius: 24px;
}
.card {
  padding: 26px;
}
.page-head {
  margin-bottom: 22px;
}
.page-head .eyebrow {
  font-size: 10px;
  font-weight: 650;
  letter-spacing: 0.1em;
}
.heading-dot {
  color: var(--green);
}
.shell {
  max-width: 1600px;
  margin-inline: auto;
  padding-left: 242px;
}
.shell > header {
  background: var(--bg);
}
main {
  max-width: 1180px;
  margin: auto;
  padding: 28px 40px 60px;
}
aside {
  background: var(--card);
  border-color: var(--line);
  z-index: 50;
}
.brand {
  color: var(--green);
  font-size: 32px;
  letter-spacing: -1.7px;
}
.brandmark {
  background: var(--green);
  color: var(--on-green);
  border-radius: 14px;
}
.dot {
  display: none;
}
.aside-note {
  font-size: 12px;
}
.aside-bottom {
  font-size: 10px;
  color: var(--muted);
}
.aside-bottom small {
  color: var(--muted);
}
.nav-item {
  color: var(--muted);
}
.nav-item.active {
  background: var(--sage);
  color: var(--green);
}
.nav-item:hover {
  background: var(--subtle);
}
.avatar {
  background: var(--sage);
  color: var(--green);
}
.shell > footer {
  color: var(--muted);
  border-color: var(--line);
  font-size: 11px;
}
.btn {
  background: var(--green);
  color: var(--on-green);
  border-radius: 999px;
  min-height: 44px;
  padding: 11px 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  line-height: 1.4;
  font-weight: 600;
  white-space: normal;
  text-align: center;
}
.btn.light {
  background: var(--subtle);
  color: var(--ink);
  border: 1px solid var(--line);
}
.btn.soft {
  background: var(--sage);
  color: var(--green);
}
.btn.danger {
  background: #9b352b;
  color: white;
}
.btn.small {
  font-size: 12px;
  min-height: 38px;
  padding: 9px 14px;
}
.icon-btn {
  display: inline-grid;
  place-items: center;
  min-width: 38px;
  min-height: 38px;
  background: transparent;
  color: var(--muted);
  padding: 8px;
  flex-shrink: 0;
}
.icon-btn:hover {
  background: var(--subtle);
}
.text-button {
  color: var(--green);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  line-height: 1.5;
  background: none;
  min-height: 32px;
}
.text-button > svg {
  width: 14px;
  height: 14px;
}
.add {
  display: grid;
  place-items: center;
  min-width: 40px;
  min-height: 40px;
  width: 40px;
  height: 40px;
  padding: 9px;
  background: var(--sage);
  color: var(--green);
  font-size: 0;
  flex-shrink: 0;
  border-radius: 50%;
}
.add svg {
  width: 20px;
  height: 20px;
}
input,
select {
  color: var(--ink);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  min-height: 44px;
  max-width: 100%;
}
input[type="checkbox"] {
  accent-color: var(--green);
  min-height: 20px;
  width: 20px;
  height: 20px;
  flex: none;
}
input[type="file"] {
  min-height: 0;
}
input::placeholder,
textarea::placeholder {
  color: var(--muted);
  opacity: 0.85;
}
.field {
  color: var(--ink);
  font-size: 12px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.field > label {
  color: var(--ink);
}
.notice,
.storage-note {
  font-size: 11px;
  line-height: 1.8;
  color: var(--muted);
  background: var(--subtle);
  padding: 12px 14px;
  border-radius: 12px;
}
.tabs {
  background: var(--subtle);
  border-color: var(--line);
  border-radius: 999px;
  padding: 4px;
  display: flex;
  flex-wrap: wrap;
  gap: 3px;
}
.tabs button {
  color: var(--muted);
  background: transparent;
  border-radius: 999px;
  min-height: 38px;
  padding: 8px 15px;
  font-size: 12px;
}
.tabs button.active {
  color: var(--green);
  background: var(--card);
  box-shadow: var(--shadow);
}
.date-control {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px;
  gap: 0;
}
.date-control input {
  background: none;
  border: 0;
  font-size: 12px;
  min-width: 0;
  width: 140px;
}
.week {
  gap: 10px;
  margin-bottom: 28px;
  max-width: 100%;
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
}
.day {
  background: var(--card);
  border: 1px solid var(--line);
  color: var(--ink);
  border-radius: 18px;
  min-width: 0;
  padding: 11px 8px;
}
.day strong {
  font-size: 17px;
}
.day small {
  font-size: 11px;
  color: var(--muted);
}
.day.active {
  background: var(--green);
  color: var(--on-green);
  border-color: var(--green);
}
.day.active small {
  color: var(--on-green);
}
.day i {
  background: var(--lime);
}
.nature-dashboard {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}
.nature-dashboard > div {
  min-width: 0;
}
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin: 0 0 18px;
}
.section-head h2 {
  margin: 0;
}
.section-head svg {
  width: 20px;
  height: 20px;
  vertical-align: middle;
}
.calorie-card .section-head h2 {
  font-size: 17px;
  margin-top: 4px;
}
.calorie-card .section-head .eyebrow {
  font-size: 9px;
  color: var(--muted);
  letter-spacing: 0.08em;
}
.calorie-card .section-head > .text-button {
  margin-left: auto;
}
.nutrition-dial {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  width: 100%;
  max-width: 138px;
  margin: auto;
}
.nutrition-dial svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
  overflow: visible;
}
.nutrition-dial circle {
  fill: none;
  stroke-width: 9;
  stroke-linecap: round;
}
.nutrition-dial .dial-track {
  stroke: var(--subtle);
}
.nutrition-dial .dial-progress {
  transition: stroke-dasharray 0.6s ease;
}
.nutrition-dial > div {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 3px;
}
.nutrition-dial span {
  font-size: 10px;
  color: var(--muted);
}
.nutrition-dial strong {
  font-size: 21px;
  letter-spacing: -0.8px;
  font-variant-numeric: tabular-nums;
  line-height: 1.4;
}
.nutrition-dial strong small {
  font-size: 9px;
  font-weight: 400;
  letter-spacing: 0;
  margin-left: 3px;
  color: var(--muted);
}
.nutrition-dial > div > small {
  font-size: 9px;
  color: var(--muted);
}
.nutrition-dial.large {
  max-width: 268px;
  margin: 24px auto 4px;
}
.nutrition-dial.large circle {
  stroke-width: 11;
}
.nutrition-dial.large strong {
  font-size: 40px;
  letter-spacing: -1.6px;
}
.nutrition-dial.large strong small {
  font-size: 13px;
}
.nutrition-dial.large span {
  font-size: 12px;
}
.nutrition-dial.large > div > small {
  font-size: 12px;
}
.balance-label {
  text-align: center;
  font-size: 11px;
  color: var(--green);
  background: var(--sage);
  border-radius: 999px;
  width: fit-content;
  max-width: 100%;
  margin: 12px auto 24px;
  padding: 6px 12px;
}
.balance-label.over {
  color: var(--fat);
  background: var(--subtle);
}
.energy-legend {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 11px;
  color: var(--muted);
  border-block: 1px solid var(--line);
  padding: 17px 0;
}
.energy-legend span {
  display: flex;
  align-items: center;
  gap: 6px;
}
.energy-legend b {
  margin-left: auto;
  color: var(--ink);
  font-weight: 550;
}
.energy-legend i {
  width: 7px;
  height: 7px;
  background: var(--green);
  border-radius: 50%;
}
.macro-dials {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 20px;
}
.macro-dials article {
  min-width: 0;
}
.quick-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 16px;
}
.quick-actions button {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 18px;
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: left;
  min-height: 95px;
  min-width: 0;
}
.quick-actions button > svg {
  flex: none;
  width: 23px;
  height: 23px;
  color: var(--green);
}
.quick-actions button > svg:last-child {
  width: 14px;
  margin-left: auto;
}
.quick-actions small {
  display: block;
  font-size: 8px;
  letter-spacing: 0.07em;
  margin-bottom: 5px;
}
.quick-actions b {
  font-size: 11px;
  line-height: 1.6;
  font-weight: 650;
}
.quick-actions .photo-action {
  background: var(--green);
  color: var(--on-green);
  border-color: var(--green);
}
.quick-actions .photo-action small,
.quick-actions .photo-action svg {
  color: var(--on-green);
}
.nature-water {
  margin-bottom: 26px;
  padding: 22px;
}
.nature-water h2 {
  font-size: 14px;
}
.nature-water h2 svg {
  color: var(--blue);
  margin-right: 5px;
}
.nature-water b {
  font-size: 17px;
  color: var(--green);
}
.nature-water b small {
  font-size: 10px;
  font-weight: 400;
}
.water-glasses {
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  gap: 5px;
  margin: 20px 0;
}
.water-glasses i {
  display: block;
  height: 10px;
  border-radius: 99px;
  background: var(--subtle);
}
.water-glasses .filled {
  background: var(--blue);
}
.water-buttons {
  display: flex;
  align-items: center;
  gap: 8px;
}
.water-buttons .quiet {
  margin-right: auto;
  font-size: 10px;
}
.meal {
  padding: 17px 20px;
  margin-bottom: 14px;
}
.meal-title {
  gap: 12px;
}
.meal-icon {
  background: var(--subtle);
  color: var(--green);
  width: 40px;
  height: 40px;
  min-width: 40px;
}
.meal h3 {
  font-size: 14px;
}
.meal-info small {
  font-size: 10px;
}
.entry {
  gap: 8px;
  border-color: var(--line);
  padding: 12px 0;
  flex-wrap: wrap;
}
.entry-info {
  min-width: 100px;
  flex: 1;
}
.entry-info b {
  font-size: 12px;
  overflow-wrap: anywhere;
}
.entry-info small {
  font-size: 10px;
  line-height: 1.7;
}
.entry-kcal {
  font-size: 12px;
  white-space: nowrap;
}
.entry-kcal small {
  font-size: 10px;
}
.entry .icon-btn {
  min-width: 32px;
  width: 32px;
  min-height: 36px;
  padding: 7px;
}
.meal-tools {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 8px;
  border-top: 1px solid var(--line);
  padding-top: 6px;
}
.meal-tools button {
  font-size: 10px;
}
.meal-photo-button {
  padding: 0;
  border-radius: 12px;
  overflow: hidden;
  width: 100%;
  margin-top: 15px;
  background: var(--subtle);
}
.meal-photo {
  display: block;
  object-fit: cover;
  width: 100%;
  max-height: 190px;
}
.home-details {
  border-top: 1px solid var(--line);
  margin-top: 25px;
  padding-top: 16px;
}
.home-details summary {
  cursor: pointer;
  font-size: 12px;
  color: var(--muted);
  padding-bottom: 12px;
}
.day-plan-card {
  background: var(--sage);
  border-color: var(--line);
  color: var(--ink);
}
.day-plan-card p {
  color: var(--muted);
}
.sport-summary {
  margin-top: 16px;
}
.sport-number,
.sport-number small {
  color: var(--ink);
}
#mobile-nav {
  display: none;
}
.profile-card {
  margin-bottom: 20px;
}
.theme-options {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 16px;
}
.connection-list {
  margin-top: 16px;
}
.connection-list > div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
}
.connection-list small {
  font-size: 10px;
}
.weight-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  border-bottom: 1px solid var(--line);
  padding: 10px 0;
}
.integration-card {
  margin-top: 20px;
}
.activity-row {
  gap: 12px;
  align-items: flex-start;
}
.activity-row > div:nth-child(2) {
  flex: 1;
  min-width: 0;
}
.activity-row h3 {
  font-size: 14px;
}
.activity-row small {
  font-size: 11px;
  line-height: 1.8;
}
.activity-row p {
  font-size: 11px;
  margin: 6px 0;
  overflow-wrap: anywhere;
}
.activity-row .icon-btn {
  width: 32px;
  min-width: 32px;
}
#modal {
  background: var(--card);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 26px;
  max-height: calc(100dvh - 32px);
  max-width: 620px;
  width: calc(100vw - 28px);
  padding: 0;
}
#modal-content {
  padding: 28px;
}
#modal::backdrop {
  background: #101b1666;
  backdrop-filter: blur(5px);
}
.modal-head {
  position: relative;
  background: var(--card);
  margin-bottom: 22px;
  border-color: var(--line);
}
.modal-head h2 {
  font-size: 21px;
}
.form-grid {
  gap: 16px;
}
.photo-picker {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 20px 0;
}
.photo-preview {
  width: 100%;
  max-height: 300px;
  object-fit: contain;
  border-radius: 16px;
  background: var(--subtle);
}
.online-search {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin: 14px 0;
}
.online-search .quiet {
  font-size: 10px;
}
.online-product {
  display: flex;
  gap: 14px;
  background: var(--card);
  color: var(--ink);
  width: 100%;
  text-align: left;
}
.online-product img {
  width: 44px;
  height: 50px;
  object-fit: contain;
  flex-shrink: 0;
  background: #fff;
  border-radius: 8px;
}
.online-product > span {
  flex: 1;
  min-width: 0;
}
.online-product strong {
  font-size: 12px;
  overflow-wrap: anywhere;
}
.online-product small {
  display: block;
  font-size: 10px;
}
.food-row {
  border-color: var(--line);
}
.select-food {
  color: var(--ink);
  background: none;
}
.select-food small {
  color: var(--muted);
}
.heart {
  color: var(--muted);
}
.heart.saved {
  color: var(--fat);
}
.total-box {
  background: var(--sage);
  color: var(--green);
}
.total-box small,
.total-macros {
  color: var(--green);
}
.add-hub {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.import-activity {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
}
.import-activity span {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.import-activity b {
  font-size: 13px;
}
.import-activity small {
  font-size: 11px;
}
.import-activity em {
  font-size: 11px;
  color: var(--fat);
  font-style: normal;
}
.stat-grid .card {
  background: var(--card);
}
.stat-grid b {
  font-size: 27px;
  color: var(--ink);
  line-height: 1.5;
}
.stat-grid b small {
  font-size: 12px;
}
.stat-grid > div > small {
  font-size: 11px;
}
.stats-two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 20px;
}
.stats-two h3 {
  margin: 26px 0 10px;
}
.history-chart {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 25px 0 5px;
}
.history-col {
  min-width: 30px;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  background: none;
  padding: 0;
  color: var(--ink);
  font-size: 9px;
}
.history-plot {
  height: 150px;
  width: 100%;
  position: relative;
  background: var(--subtle);
  border-radius: 8px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.history-plot i {
  display: block;
  background: var(--green);
  width: 65%;
  border-radius: 5px 5px 0 0;
}
.history-plot em {
  position: absolute;
  width: 90%;
  height: 2px;
  background: var(--carbs);
  left: 5%;
}
.history-plot > span {
  margin: auto;
  color: var(--muted);
}
.history-col small {
  font-size: 9px;
}
.energy-donut {
  width: 190px;
  height: 190px;
  margin: 25px auto;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: conic-gradient(
    var(--protein) 0 var(--protein-end),
    var(--carbs) var(--protein-end) var(--carbs-end),
    var(--fat) var(--carbs-end) 100%
  );
}
.energy-donut > span {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--card);
  width: 145px;
  height: 145px;
  font-size: 25px;
  font-weight: 700;
}
.energy-donut small {
  font-size: 10px;
  font-weight: 400;
}
.macro-legend span {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: space-between;
  font-size: 11px;
  margin: 10px 0;
}
.macro-legend span:before {
  content: "";
  background: var(--dot);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex: none;
}
.macro-legend b {
  font-weight: 500;
  margin-left: auto;
}
.breakdown-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 12px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
}
.planner-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.plan-day {
  padding: 20px;
}
.plan-day.is-today {
  border-color: var(--green);
}
.plan-day-head,
.plan-meal,
.planned-food,
.shopping-item,
.activity-row {
  border-color: var(--line);
}
.plan-meal-title {
  color: var(--ink);
}
.planned-food {
  background: var(--subtle);
  color: var(--ink);
}
.planned-food small,
.plan-empty {
  color: var(--muted);
}
.plan-summary {
  background: var(--sage);
  color: var(--ink);
}
.plan-summary span {
  color: var(--ink);
}
.shopping-toolbar {
  color: var(--ink);
}
.shopping-group {
  background: var(--card);
}
.checkline {
  color: var(--ink);
}
.category-select {
  background: var(--subtle);
  color: var(--ink);
}
.tag {
  background: var(--sage);
  color: var(--green);
}
.more-grid > a {
  color: var(--ink);
}
.more-grid > a small {
  color: var(--muted);
}
.more-grid .meal-icon {
  background: var(--subtle);
}
.recipe-card,
.recipe-tools {
  color: var(--ink);
}
.recipe-art {
  background: var(--sage);
}
.tip {
  background: var(--subtle);
  color: var(--muted);
}
.version {
  color: var(--muted);
}
.balance-equation {
  color: var(--ink);
}
.switchline {
  color: var(--ink);
}
.form-actions {
  gap: 12px;
}
.actions {
  flex-wrap: wrap;
}
#toast {
  background: var(--ink);
  color: var(--bg);
}
@media (max-width: 1100px) {
  main {
    padding: 28px 24px 50px;
  }
  .nature-dashboard {
    gap: 20px;
  }
  .quick-actions {
    grid-template-columns: 1fr;
  }
  .quick-actions button {
    min-height: 74px;
  }
  .calorie-card {
    padding: 20px;
  }
  .nutrition-dial strong {
    font-size: 18px;
  }
  .nutrition-dial span {
    font-size: 9px;
  }
}
@media (max-width: 800px) {
  aside {
    display: none;
  }
  .shell {
    padding-left: 0;
  }
  .shell > header {
    padding: 18px 20px;
    height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
  .shell > header > .eyebrow {
    display: none;
  }
  .mobile-brand {
    display: flex;
    font-size: 29px;
  }
  .shell > header .avatar {
    width: 40px;
    height: 40px;
  }
  .shell > footer {
    padding-bottom: 120px;
  }
  main {
    padding: 16px 20px 30px;
  }
  .page-head {
    align-items: flex-start;
    gap: 14px;
    flex-wrap: wrap;
  }
  .page-head h1 {
    font-size: 27px;
  }
  .page-head .sub {
    font-size: 12px;
  }
  .date-control {
    margin-left: auto;
  }
  .date-control input {
    width: 128px;
    font-size: 11px;
  }
  .date-control .icon-btn {
    min-width: 28px;
    width: 28px;
    padding: 5px;
  }
  .nature-dashboard {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }
  .calorie-card {
    padding: 22px;
  }
  .quick-actions {
    grid-template-columns: 1fr 1fr;
  }
  .quick-actions button {
    padding: 16px 12px;
    gap: 8px;
  }
  .quick-actions button > svg:last-child {
    display: none;
  }
  .nutrition-dial {
    max-width: 130px;
  }
  .nutrition-dial strong {
    font-size: 21px;
  }
  .nutrition-dial span {
    font-size: 10px;
  }
  .nutrition-dial.large {
    max-width: 260px;
  }
  .nature-water {
    margin-bottom: 26px;
  }
  .stats-two {
    grid-template-columns: 1fr;
  }
  .planner-grid {
    grid-template-columns: 1fr;
  }
  .card {
    padding: 22px;
  }
  .stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
  .stat-grid > .card:last-child {
    grid-column: 1/-1;
  }
  .stat-grid b {
    font-size: 25px;
  }
  .form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .range-tabs {
    width: 100%;
    justify-content: center;
  }
  .range-tabs button {
    flex: 1;
  }
  .week {
    gap: 7px;
  }
  .day {
    padding: 9px 3px;
    border-radius: 17px;
  }
  .day strong {
    font-size: 16px;
  }
  .day small {
    font-size: 10px;
  }
  #mobile-nav {
    display: flex;
    position: fixed;
    z-index: 80;
    left: 14px;
    right: 14px;
    bottom: calc(12px + env(safe-area-inset-bottom));
    padding: 6px;
    border: 1px solid var(--line);
    background: var(--card);
    box-shadow: 0 10px 40px #0001;
    border-radius: 26px;
    justify-content: space-around;
    align-items: center;
    height: 73px;
    backdrop-filter: blur(18px);
  }
  #mobile-nav .nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    flex: 1;
    min-width: 0;
    min-height: 58px;
    padding: 5px 1px;
    font-size: 9px;
    font-weight: 600;
    background: transparent;
    color: var(--muted);
    border-radius: 16px;
    line-height: 1.5;
  }
  #mobile-nav .nav-item svg {
    width: 22px;
    height: 22px;
    margin: 0;
  }
  #mobile-nav .nav-item.active {
    color: var(--green);
    background: var(--sage);
  }
  #mobile-nav .center-add {
    color: var(--green);
  }
  #mobile-nav .center-add svg {
    background: var(--green);
    color: var(--on-green);
    padding: 10px;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    margin-top: -19px;
    box-shadow: 0 0 0 5px var(--bg);
  }
  .entry .entry-info {
    min-width: 95px;
  }
  .entry-kcal {
    font-size: 11px;
  }
  .meal {
    padding: 17px;
  }
  .meal h3 {
    font-size: 13px;
  }
  .connection-list > div {
    font-size: 11px;
  }
  .profile-card {
    padding: 20px;
  }
  .theme-options .btn {
    flex: 1;
    font-size: 12px;
  }
  #modal-content {
    padding: 22px;
  }
  #modal .tabs button {
    font-size: 10px;
    padding: 8px 10px;
  }
  .food-row strong {
    font-size: 12px;
  }
  .day-plan-card {
    flex-wrap: wrap;
  }
  .more-grid {
    grid-template-columns: 1fr;
  }
  .history-plot {
    height: 130px;
  }
}
@media (max-width: 360px) {
  main {
    padding-inline: 15px;
  }
  .calorie-card {
    padding: 17px;
  }
  .macro-dials {
    gap: 3px;
  }
  .nutrition-dial strong {
    font-size: 17px;
  }
  .nutrition-dial span {
    font-size: 8px;
  }
  .nutrition-dial > div > small {
    font-size: 8px;
  }
  .page-head h1 {
    font-size: 25px;
  }
  .quick-actions b {
    font-size: 10px;
  }
  .quick-actions button > svg {
    width: 20px;
    height: 20px;
  }
  .meal {
    padding: 14px;
  }
  .meal-title {
    gap: 8px;
  }
  .meal-icon {
    width: 34px;
    height: 34px;
    min-width: 34px;
  }
  .entry .icon-btn {
    width: 28px;
    min-width: 28px;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .stat-grid {
    grid-template-columns: 1fr;
  }
  .stat-grid > .card:last-child {
    grid-column: auto;
  }
  .theme-options {
    gap: 5px;
  }
  .theme-options .btn {
    padding-inline: 10px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
.shell {
  margin: 0 auto;
  padding: 0 0 0 242px;
}
.shell > header {
  padding-inline: 40px;
  margin-bottom: 0;
}
.eyebrow {
  color: var(--muted);
}
aside {
  overflow-y: auto;
}
.drive-card,
.ingredient {
  background: var(--subtle);
}
.sport-summary {
  background: var(--card);
}
.profile-card > h2,
.stats-two h2 {
  color: var(--ink);
}
.food-list .food-row > small {
  color: var(--muted);
}
.idea-row {
  border-color: var(--line);
}
.recipe-instructions {
  margin-top: 20px;
}
.ingredient input {
  min-width: 0;
}
.plan-meal-title .add {
  font-size: 22px;
  line-height: 1;
}
.home-details .day-plan-card {
  margin-bottom: 15px;
}
.card h2 {
  line-height: 1.5;
}
#toast {
  z-index: 120;
}
@media (max-width: 1100px) and (min-width: 801px) {
  aside {
    width: 205px;
  }
  .shell {
    padding-left: 205px;
  }
  .shell > header {
    padding-inline: 24px;
  }
}
@media (max-width: 800px) {
  .shell {
    margin: 0;
    padding: 0;
  }
  .shell > header {
    padding-inline: 20px;
  }
  body {
    padding-bottom: 0;
  }
  .shell > footer {
    padding-bottom: calc(112px + env(safe-area-inset-bottom));
  }
  .profile-card {
    max-width: none;
  }
  #toast {
    bottom: 110px;
  }
  .activity-row {
    flex-wrap: wrap;
  }
  .activity-row > div:nth-child(2) {
    flex-basis: calc(100% - 60px);
  }
  .activity-row > .icon-btn {
    margin-left: auto;
  }
  .activity-row > .icon-btn + .icon-btn {
    margin-left: 0;
  }
}
