:root {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #111411;
  background: #eef0ea;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  background: #eef0ea;
  overflow-x: hidden;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
  touch-action: manipulation;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.62;
}

:where(button, input, summary, a):focus-visible {
  outline: 3px solid #225e35;
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 8px;
  left: 8px;
  transform: translateY(-160%);
  padding: 10px 14px;
  border-radius: 12px;
  color: #fff;
  background: #111411;
  font-weight: 800;
}

.skip-link:focus {
  transform: translateY(0);
}

.app-shell {
  width: min(760px, 100vw);
  min-height: 100vh;
  margin: 0 auto;
  padding: 82px 20px calc(112px + env(safe-area-inset-bottom));
  background: #f8f8f4;
}

.app-content {
  display: grid;
  gap: 18px;
}

.app-header {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 50%;
  width: min(760px, 100vw);
  min-height: 70px;
  transform: translateX(-50%);
  display: grid;
  grid-template-columns: 44px 1fr 44px;
  gap: 10px;
  align-items: center;
  padding: calc(10px + env(safe-area-inset-top)) 20px 8px;
  background: rgba(248, 248, 244, 0.94);
  backdrop-filter: blur(18px);
}

.app-shell.public-reader {
  padding-bottom: 54px;
  background:
    radial-gradient(circle at 90% 4%, rgba(189, 255, 0, 0.12), transparent 260px),
    #f8f8f4;
}

.public-app-header {
  grid-template-columns: minmax(0, 1fr) auto;
}

.public-app-brand {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #151815;
  text-decoration: none;
}

.public-app-mark {
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  display: grid !important;
  place-items: center;
  border-radius: 12px;
  color: #111411;
  background: #bdff00;
  box-shadow: 0 8px 18px rgba(31, 35, 31, 0.12);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: -0.04em;
}

.public-app-brand span,
.public-app-brand strong,
.public-app-brand small {
  display: block;
}

.public-app-brand strong {
  font-size: 16px;
  letter-spacing: -0.02em;
}

.public-app-brand small {
  margin-top: 1px;
  color: #707970;
  font-size: 11px;
  font-weight: 750;
}

.public-read-badge {
  padding: 7px 10px;
  border: 1px solid #dce7d4;
  border-radius: 999px;
  color: #2d633d;
  background: #eef8f0;
  font-size: 11px;
  font-weight: 900;
}

.icon-button {
  position: relative;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #151815;
  background: #fff;
  box-shadow: 0 10px 22px rgba(31, 35, 31, 0.09);
}

.dot {
  position: absolute;
  top: 6px;
  right: 5px;
  min-width: 17px;
  height: 17px;
  display: grid;
  place-items: center;
  padding: 0 4px;
  border-radius: 50%;
  color: #fff;
  background: #ff4d62;
  font-size: 10px;
  font-weight: 900;
  line-height: 1;
}

.provider-pill {
  height: 44px;
  min-width: 0;
  border: 0;
  border-radius: 999px;
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr) auto;
  gap: 7px;
  align-items: center;
  padding: 0 12px;
  color: #151815;
  background: #fff;
  box-shadow: 0 10px 22px rgba(31, 35, 31, 0.08);
}

.provider-pill span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
  font-weight: 800;
}

.provider-pill strong {
  padding: 4px 7px;
  border-radius: 999px;
  color: #77242e;
  background: #ffe2e6;
  font-size: 10px;
  text-transform: uppercase;
}

.provider-pill strong.ready {
  color: #0f3d21;
  background: #bbf7d0;
  box-shadow: inset 0 0 0 1px #74d68a;
}

.hero-panel {
  min-height: 224px;
  display: grid;
  grid-template-columns: 1fr 112px;
  gap: 16px;
  align-items: end;
  padding: 30px 26px;
  border-radius: 28px;
  color: #fff;
  background: #171a17;
  box-shadow: 0 22px 44px rgba(22, 25, 22, 0.18);
}

.hero-panel.connected {
  background:
    radial-gradient(circle at 88% 12%, rgba(189, 255, 0, 0.2), transparent 34%),
    #171a17;
}

.hero-panel span {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
  line-height: 1.35;
}

.hero-panel .eyebrow {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 0;
  color: #bdff00;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.hero-panel .eyebrow svg {
  width: 17px;
  height: 17px;
}

.hero-panel h1 {
  margin: 8px 0 10px;
  font-size: 29px;
  line-height: 1.02;
  letter-spacing: 0;
}

.hero-proof {
  width: 112px;
  height: 112px;
  border-radius: 28px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 4px;
  color: #111411;
  background: #bdff00;
}

.hero-panel.connected .hero-proof {
  box-shadow: 0 16px 38px rgba(189, 255, 0, 0.12);
}

.hero-proof strong {
  font-size: 34px;
  line-height: 1;
}

.hero-proof span {
  color: #111411;
  font-size: 11px;
  font-weight: 800;
  text-align: center;
}

.setup-progress {
  padding: 20px;
  border: 1px solid #e3e7df;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(31, 35, 31, 0.05);
}

.section-heading {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: start;
}

.section-heading h2,
.section-heading p,
.section-kicker {
  margin: 0;
}

.section-heading h2 {
  margin-top: 3px;
  font-size: 20px;
}

.section-kicker {
  color: #5c665c;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.section-heading > span {
  flex: 0 0 auto;
  padding: 6px 9px;
  border-radius: 999px;
  color: #245b34;
  background: #e3f6e7;
  font-size: 12px;
  font-weight: 900;
}

.setup-progress ol {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.setup-progress li {
  min-width: 0;
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr);
  gap: 8px;
  align-items: start;
  padding: 12px 10px;
  border-radius: 16px;
  background: #f4f5f1;
}

.setup-progress li.current {
  color: #263115;
  background: #efffc0;
}

.setup-progress li.done {
  background: #eef8f0;
}

.step-icon {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border: 2px solid #c8cec5;
  border-radius: 50%;
}

.done .step-icon {
  color: #fff;
  border-color: #2e7542;
  background: #2e7542;
}

.current .step-icon {
  border-color: #5f7920;
  box-shadow: inset 0 0 0 5px #efffc0;
  background: #6f8d21;
}

.step-icon svg {
  width: 14px;
  height: 14px;
}

.setup-progress strong,
.setup-progress small {
  display: block;
}

.setup-progress strong {
  font-size: 13px;
  line-height: 1.2;
}

.setup-progress small {
  margin-top: 4px;
  color: #697168;
  font-size: 11px;
  line-height: 1.25;
}

.toolbar {
  display: grid;
  gap: 12px;
  margin: 18px 0;
}

.verified-toolbar {
  margin-top: 0;
}

.toolbar .primary-button {
  width: 100%;
}

.nutrition-gate {
  display: grid;
  gap: 10px;
  margin: 0 0 16px;
  padding: 16px;
  border-radius: 22px;
  box-shadow: 0 14px 30px rgba(31, 35, 31, 0.06);
}

.nutrition-gate.blocked {
  border: 1px solid #f2b84b;
  color: #241709;
  background: linear-gradient(180deg, #fff8e8, #fffaf2);
}

.nutrition-gate h2,
.nutrition-gate p {
  margin: 0;
}

.nutrition-gate h2 {
  font-size: 20px;
  line-height: 1.05;
}

.nutrition-gate p {
  color: #59401e;
  font-size: 13px;
  line-height: 1.45;
}

.nutrition-gate ul {
  display: grid;
  gap: 7px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nutrition-gate li,
.nutrition-gate small {
  padding: 9px 10px;
  border-radius: 12px;
  color: #68450f;
  background: rgba(255, 255, 255, 0.7);
  font-size: 12px;
  line-height: 1.35;
}

.vegan-needs-panel,
.recipe-needs {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid #dbead2;
  border-radius: 20px;
  color: #1c2d1f;
  background: linear-gradient(180deg, #fbfff7, #f4faee);
}

.recipe-needs {
  margin: 4px 0 2px;
}

.need-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.need-chip-row em {
  padding: 7px 10px;
  border-radius: 999px;
  color: #285230;
  background: #e3f6d8;
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
}

.search-box {
  height: 48px;
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 8px;
  align-items: center;
  padding: 0 14px;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 12px 24px rgba(31, 35, 31, 0.06);
}

.search-box input {
  min-width: 0;
  border: 0;
  outline: 0;
  color: #151815;
  background: transparent;
}

.recipe-filters {
  display: grid;
  gap: 0;
  padding: 8px;
  border: 1px solid #dfe6dc;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(31, 35, 31, 0.06);
}

.recipe-filters.is-open {
  gap: 14px;
  padding-bottom: 16px;
}

.recipe-filter-heading {
  display: flex;
  gap: 8px;
  align-items: center;
}

.recipe-filter-toggle {
  min-width: 0;
  min-height: 58px;
  flex: 1 1 auto;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  border: 0;
  border-radius: 14px;
  padding: 8px 10px;
  color: #151815;
  background: transparent;
  text-align: left;
}

.recipe-filter-toggle:hover,
.recipe-filter-toggle:focus-visible {
  background: #f5f8f2;
}

.recipe-filter-toggle-copy {
  min-width: 0;
  display: grid;
  gap: 1px;
}

.recipe-filter-toggle-copy .section-kicker {
  margin: 0;
  font-size: 9px;
}

.recipe-filter-toggle-copy strong {
  font-size: 17px;
}

.recipe-filter-toggle-copy small {
  max-width: min(55vw, 440px);
  overflow: hidden;
  color: #657065;
  font-size: 11px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.recipe-filter-toggle-meta {
  flex: 0 0 auto;
  display: inline-flex;
  gap: 8px;
  align-items: center;
}

.recipe-filter-active-count {
  border-radius: 999px;
  padding: 6px 9px;
  color: #31402d;
  background: #edf3e9;
  font-size: 10px;
  font-weight: 900;
}

.recipe-filter-chevron {
  display: inline-grid;
  width: 26px;
  height: 26px;
  place-items: center;
  color: #354035;
  font-size: 22px;
  line-height: 1;
  transform: translateY(-2px);
  transition: transform 160ms ease;
}

.recipe-filters.is-open .recipe-filter-chevron {
  transform: rotate(180deg) translateY(2px);
}

.recipe-filter-reset {
  flex: 0 0 auto;
  min-height: 38px;
  border: 0;
  border-radius: 999px;
  padding: 0 12px;
  color: #263226;
  background: #edf2e9;
  font-size: 12px;
  font-weight: 900;
}

.recipe-filter-panel {
  display: grid;
  gap: 15px;
  padding: 0 8px;
}

.recipe-filter-panel[hidden] {
  display: none;
}

.recipe-filter-group {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.recipe-filter-group > strong,
.recipe-source-filter > strong {
  color: #374137;
  font-size: 12px;
}

.recipe-filter-group > small {
  color: #697269;
  font-size: 11px;
  line-height: 1.35;
}

.recipe-filter-chip-row {
  display: flex;
  gap: 7px;
  max-width: 100%;
  overflow-x: auto;
  padding: 1px 1px 5px;
  scrollbar-width: thin;
  scroll-snap-type: x proximity;
}

.recipe-filter-chip {
  min-height: 40px;
  flex: 0 0 auto;
  display: inline-flex;
  gap: 7px;
  align-items: center;
  border: 1px solid #dde4da;
  border-radius: 999px;
  padding: 0 11px;
  color: #4e584e;
  background: #f6f8f3;
  font-size: 12px;
  font-weight: 850;
  scroll-snap-align: start;
}

.recipe-filter-chip em {
  min-width: 22px;
  border-radius: 999px;
  padding: 3px 6px;
  color: #536053;
  background: #e8ede4;
  font-size: 10px;
  font-style: normal;
  text-align: center;
}

.recipe-filter-chip.active {
  border-color: #89c33a;
  color: #111411;
  background: #bdff00;
}

.recipe-filter-chip.active em {
  color: #1d2919;
  background: rgba(255, 255, 255, 0.7);
}

.recipe-source-filter {
  display: grid;
  gap: 7px;
}

.recipe-source-filter select {
  width: 100%;
  min-height: 46px;
  border: 1px solid #dce4d8;
  border-radius: 14px;
  padding: 0 38px 0 12px;
  color: #1d241d;
  background: #f7f9f4;
  font: inherit;
  font-size: 13px;
  font-weight: 800;
}

.segmented {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
  padding: 5px;
  border-radius: 16px;
  background: #e4e8de;
}

.segmented.wide {
  grid-template-columns: repeat(3, 1fr);
}

.segmented button {
  min-height: 38px;
  border: 0;
  border-radius: 12px;
  color: #515850;
  background: transparent;
  font-weight: 800;
}

.segmented button.active {
  color: #111411;
  background: #fff;
  box-shadow: 0 8px 18px rgba(31, 35, 31, 0.08);
}

.empty-state,
.cart-view,
.verification-view,
.profile-view,
.detail-view {
  display: grid;
  gap: 16px;
}

.empty-state {
  padding: 24px;
  border: 1px solid #e3e7df;
  border-radius: 28px;
  color: #1e231e;
  background: #fff;
  box-shadow: 0 16px 32px rgba(31, 35, 31, 0.07);
}

.empty-state h2,
.cart-view h1,
.verification-view h1,
.profile-view h1,
.detail-view h1 {
  margin: 0;
  font-size: 26px;
  line-height: 1.05;
  letter-spacing: 0;
}

.empty-state .section-kicker {
  color: #5b6e22;
}

.action-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.technical-details {
  padding: 0 14px;
  border: 1px solid #e2e6de;
  border-radius: 16px;
  background: #f7f8f4;
}

.technical-details summary {
  padding: 13px 0;
  cursor: pointer;
  font-size: 13px;
  font-weight: 850;
}

.technical-details p,
.technical-details ul {
  margin: 0 0 14px;
  color: #677067;
  font-size: 12px;
  line-height: 1.45;
}

.technical-details ul {
  padding-left: 18px;
}

.candidate-heading {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: baseline;
  margin-top: 2px;
}

.candidate-heading span {
  color: #788078;
  font-size: 11px;
}

.empty-state p,
.muted,
.detail-view p {
  margin: 0;
  color: #687068;
  line-height: 1.45;
}

.primary-button,
.secondary-button,
.text-button {
  min-height: 50px;
  border: 0;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 18px;
  font-weight: 900;
}

.primary-button:not(:disabled):active,
.secondary-button:not(:disabled):active,
.store-option-action:not(:disabled):active {
  transform: translateY(1px);
}

.primary-button {
  color: #111411;
  background: #bdff00;
}

.secondary-button {
  color: #151815;
  background: #eef2ee;
  border: 1px solid #dce4dc;
}

.text-button {
  justify-self: start;
  color: #151815;
  background: #fff;
  box-shadow: 0 10px 20px rgba(31, 35, 31, 0.08);
}

.candidate-strip {
  display: grid;
  gap: 10px;
}

.candidate-card {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 12px;
  align-items: center;
  min-height: 86px;
  padding: 8px;
  border-radius: 18px;
  background: #f6f7f2;
}

.candidate-card img {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 16px;
  filter: saturate(0.75);
}

.candidate-card strong,
.candidate-card span {
  display: block;
}

.candidate-card strong {
  font-size: 14px;
  line-height: 1.2;
}

.candidate-card span {
  margin-top: 4px;
  color: #7a8279;
  font-size: 12px;
}

.recipes-view h1 {
  margin: 0;
}

.recipes-view h1 {
  font-size: clamp(28px, 7vw, 40px);
  line-height: 1;
  letter-spacing: -0.04em;
}

.generator-panel {
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid #e3e7df;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(31, 35, 31, 0.05);
}

.generator-panel.has-plan {
  border-color: #cce7d1;
  background: linear-gradient(180deg, #ffffff, #f3faf4);
}

.generator-panel.has-plan .muted {
  font-size: 13px;
}

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

.plan-day-section {
  display: grid;
  gap: 9px;
  padding: 12px;
  border-radius: 20px;
  background: #f7f9f4;
}

.plan-day-section h3 {
  margin: 0;
  font-size: 18px;
}

.plan-day-slots {
  display: grid;
  gap: 9px;
}

.plan-slot {
  display: grid;
  grid-template-columns: 1fr;
  gap: 9px;
  align-items: center;
  min-width: 0;
  padding: 12px;
  border: 1px solid #e2e7df;
  border-radius: 18px;
  background: #fff;
}

.slot-day {
  min-width: 0;
  display: flex;
  gap: 6px;
  align-items: baseline;
}

.slot-day strong,
.slot-day span {
  display: block;
  min-width: 0;
}

.slot-day strong {
  font-size: 14px;
  line-height: 1.1;
}

.slot-day span {
  color: #5d675d;
  font-size: 12px;
  font-weight: 800;
}

.slot-recipe {
  width: 100%;
  min-width: 0;
  border: 0;
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 11px;
  align-items: center;
  padding: 8px;
  border-radius: 16px;
  color: #111411;
  text-align: left;
  background: #f0f1ee;
}

.slot-recipe img {
  display: block;
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 14px;
}

.slot-recipe-copy {
  min-width: 0;
}

.slot-recipe strong,
.slot-recipe small {
  display: block;
  min-width: 0;
}

.slot-recipe strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  line-height: 1.15;
}

.flemme-pill {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 3px 8px;
  border: 1px solid #d5a22a;
  border-radius: 999px;
  color: #654400;
  background: #fff3c7;
  font-size: 10px;
  font-style: normal;
  font-weight: 900;
  line-height: 1;
  vertical-align: 1px;
  white-space: nowrap;
}

.slot-recipe small.nutrition-adjustment {
  color: #275f3a;
  -webkit-line-clamp: 3;
}

.nutrition-adjustment svg {
  width: 12px;
  height: 12px;
  vertical-align: -2px;
}

.flemme-compensation-note {
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 9px 12px;
  color: #35513e;
  background: #fff9e8;
  font-size: 12px;
  line-height: 1.35;
}

.slot-recipe small {
  margin-top: 3px;
  color: #6d756c;
  font-size: 11px;
  line-height: 1.25;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.slot-recipe.empty {
  min-height: 56px;
  display: grid;
  place-items: center start;
  padding: 10px 12px;
  border-radius: 14px;
  background: #f4f5f1;
}

.plan-slot.slot-empty {
  border-style: dashed;
  background: #fbfbf8;
}

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

.compact {
  min-height: 38px;
  padding: 0 12px;
  font-size: 13px;
}

.danger {
  color: #7c2933;
  background: #fff3f5;
  box-shadow: none;
}

.recipes-view {
  display: grid;
  gap: 16px;
}

.public-library-loading {
  min-height: 52vh;
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 16px;
  align-content: center;
  align-items: center;
  padding: 28px;
  border: 1px solid #e0e7db;
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 18px 38px rgba(31, 35, 31, 0.07);
}

.public-library-loading h1,
.public-library-loading p {
  margin: 0;
}

.public-library-loading h1 {
  margin-top: 4px;
  font-size: clamp(24px, 6vw, 34px);
  line-height: 1.05;
}

.public-loading-mark {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  color: #111411;
  background: #bdff00;
  box-shadow: 0 12px 24px rgba(114, 154, 0, 0.18);
}

.public-library-intro {
  max-width: 610px;
  margin: -4px 0 0;
  color: #657065;
  font-size: 14px;
  line-height: 1.5;
}

.public-recipes-view .recipe-heading-actions {
  align-self: end;
}

.shopping-list-panel {
  display: grid;
  gap: 12px;
  padding: 18px;
  border: 1px solid #dce7d4;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(31, 35, 31, 0.06);
}

.shopping-list-panel.blocked {
  border-color: #ffd1a6;
  background: #fffaf3;
}

.shopping-items {
  display: grid;
  gap: 8px;
}

.shopping-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 11px 12px;
  border-radius: 16px;
  background: #f5f7f1;
}

.shopping-item strong,
.shopping-item small {
  display: block;
  min-width: 0;
}

.shopping-item strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 14px;
}

.shopping-item small {
  margin-top: 3px;
  color: #667065;
  font-size: 12px;
  line-height: 1.3;
}

.shopping-item em {
  padding: 5px 7px;
  border-radius: 999px;
  color: #315f3c;
  background: #dff2e3;
  font-size: 10px;
  font-style: normal;
  font-weight: 900;
  white-space: nowrap;
}

.inline-warning {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  gap: 8px;
  align-items: start;
  padding: 10px;
  border-radius: 14px;
  color: #6b3d12;
  background: #fff1df;
  font-size: 12px;
  line-height: 1.35;
}

.recipe-grid-heading {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  color: #2a2f2a;
}

.recipe-grid-heading span {
  color: #747c73;
  font-size: 12px;
}

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

.recipe-card {
  display: block;
  border: 0;
  border-radius: 20px;
  padding: 9px;
  color: inherit;
  text-align: left;
  text-decoration: none;
  background: #fff;
  box-shadow: 0 14px 28px rgba(31, 35, 31, 0.07);
  font: inherit;
  cursor: pointer;
}

.recipe-card img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center;
  border-radius: 16px;
}

.recipe-card span,
.recipe-card small {
  color: #747c73;
  font-size: 12px;
}

.recipe-card .recipe-card-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 6px;
  margin-top: 10px;
}

.recipe-card-badges em {
  border-radius: 999px;
  padding: 5px 8px;
  color: #465046;
  background: #edf1ea;
  font-size: 10px;
  font-style: normal;
  font-weight: 850;
  line-height: 1.2;
}

.recipe-card-badges em.verified {
  color: #235b34;
  background: #dff2e3;
}

.recipe-card-badges em.pending {
  color: #725611;
  background: #fff1c9;
}

.recipe-card strong {
  display: block;
  margin-top: 7px;
  line-height: 1.15;
}

.recipe-card div {
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
  font-size: 12px;
}

.recipe-card em,
.recipe-card b {
  font-style: normal;
}

.detail-image {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center;
  border-radius: 28px;
  box-shadow: 0 18px 34px rgba(31, 35, 31, 0.14);
}

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

.recipe-facts div {
  min-width: 0;
  padding: 12px;
  border: 1px solid #dfe7dc;
  border-radius: 16px;
  background: #fff;
}

.recipe-facts span,
.recipe-facts strong {
  display: block;
}

.recipe-facts span {
  margin-bottom: 4px;
  color: #6b746a;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.recipe-facts strong {
  font-size: 13px;
  line-height: 1.3;
}

.nutrition-strip {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border-radius: 18px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 10px 22px rgba(31, 35, 31, 0.06);
}

.metric {
  min-height: 66px;
  display: grid;
  place-items: center;
  align-content: center;
  border-right: 1px solid #edf0e9;
}

.metric:last-child {
  border-right: 0;
}

.metric strong {
  font-size: 16px;
}

.metric span {
  color: #737b72;
  font-size: 11px;
}

.nutrition-ledger-card,
.daily-nutrition-panel {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid #dce7d4;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(31, 35, 31, 0.06);
}

.public-recipe-nutrition {
  gap: 16px;
  padding: 18px;
}

.public-recipe-nutrition .section-heading h2,
.public-recipe-nutrition .section-heading p {
  margin: 0;
}

.public-recipe-nutrition .section-heading h2 {
  margin-top: 3px;
}

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

.public-nutrient-grid article {
  min-width: 0;
  display: grid;
  gap: 5px;
  padding: 12px;
  border: 1px solid #e2eadc;
  border-radius: 16px;
  background: #f7faf4;
}

.public-nutrient-grid span {
  color: #6a7468;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.025em;
  text-transform: uppercase;
}

.public-nutrient-grid strong {
  font-size: 16px;
  line-height: 1.1;
}

.public-nutrition-note {
  padding: 11px 12px;
  border-radius: 14px;
  color: #4b5a4e !important;
  background: #edf4e7;
  font-size: 12px;
  line-height: 1.45;
}

.nutrition-ledger-card {
  background: linear-gradient(180deg, #ffffff, #f6fbf2);
}

.daily-nutrition-panel {
  background: #fbfdf8;
}

.daily-nutrition-panel.met {
  border-color: #a9dcb2;
  background: #eff9f1;
}

.daily-nutrition-panel.unknown {
  border-color: #ffd7a8;
  background: #fffaf3;
}

.daily-nutrition-panel.scope-incomplete {
  border-color: #f2bd67;
  background: #fffaf0;
}

.daily-nutrition-panel.scope-incomplete .daily-nutrition-heading span {
  color: #754510;
  background: #ffe1b8;
}

.daily-nutrition-heading {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  width: 100%;
  padding: 0;
  border: 0;
  color: inherit;
  background: transparent;
  cursor: pointer;
  font: inherit;
  text-align: left;
}

.daily-nutrition-panel.expanded .daily-nutrition-heading {
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(123, 93, 45, 0.18);
}

.daily-nutrition-content {
  display: grid;
  gap: 12px;
}

.daily-nutrition-heading strong {
  font-size: 14px;
}

.daily-nutrition-heading span,
.nutrition-ledger-card .section-heading span {
  padding: 6px 9px;
  border-radius: 999px;
  color: #224b2c;
  background: #ddf3e2;
  font-size: 11px;
  font-weight: 900;
  white-space: nowrap;
}

.nutrient-priority-toggle {
  border: 1px solid #dfe7de;
  border-radius: 16px;
  background: #fff;
  overflow: hidden;
}

.nutrient-priority-toggle summary {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding: 13px 14px;
  cursor: pointer;
  list-style: none;
}

.nutrient-priority-toggle summary::-webkit-details-marker {
  display: none;
}

.nutrient-priority-toggle summary span,
.nutrient-priority-toggle summary strong,
.nutrient-priority-toggle summary small {
  display: block;
}

.nutrient-priority-toggle summary small {
  margin-top: 3px;
  color: #687068;
  font-size: 11px;
}

.nutrient-priority-toggle summary em {
  color: #425044;
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
  text-align: right;
}

.nutrient-priority-toggle[open] summary {
  border-bottom: 1px solid #e6ece5;
}

.nutrient-priority-toggle .nutrient-gauge-list {
  padding: 10px;
}

.nutrient-gauge-list {
  display: grid;
  gap: 9px;
}

.nutrient-gauge {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 112px 42px;
  gap: 10px;
  align-items: center;
  padding: 10px;
  border-radius: 16px;
  background: #f5f7f1;
}

.nutrient-gauge.met {
  background: #edf9ef;
}

.nutrient-gauge.low {
  background: #fff3e4;
}

.nutrient-gauge.near-limit {
  background: #fff5df;
}

.nutrient-gauge.unknown {
  background: #fff7ed;
}

.nutrient-gauge.unverified-limit {
  background: #fff7ed;
}

.nutrient-gauge-copy {
  min-width: 0;
}

.nutrient-gauge-copy strong,
.nutrient-gauge-copy span,
.nutrient-gauge-copy small {
  display: block;
  min-width: 0;
}

.nutrient-gauge-copy strong {
  font-size: 13px;
  line-height: 1.1;
}

.nutrient-gauge-copy span,
.nutrient-gauge-copy small {
  margin-top: 3px;
  color: #657065;
  font-size: 11px;
  line-height: 1.25;
}

.nutrient-gauge-copy small {
  color: #8a5a1f;
}

.nutrient-gauge-meter {
  position: relative;
  height: 12px;
  border-radius: 999px;
  background: #dde4d9;
}

.nutrient-gauge-meter b {
  position: absolute;
  inset: 0 auto 0 0;
  border-radius: inherit;
  background: #9cff00;
}

.nutrient-gauge.low .nutrient-gauge-meter b,
.nutrient-gauge.unknown .nutrient-gauge-meter b,
.nutrient-gauge.unverified-limit .nutrient-gauge-meter b,
.nutrient-gauge.near-limit .nutrient-gauge-meter b {
  background: #ffb84d;
}

.nutrient-gauge.unverified-limit .nutrient-gauge-meter {
  border: 1px dashed #c7883e;
}

.nutrient-gauge.unknown .nutrient-gauge-meter {
  border: 1px dashed #c7883e;
  background: repeating-linear-gradient(
    135deg,
    #fff7ed 0,
    #fff7ed 6px,
    #ffead0 6px,
    #ffead0 12px
  );
}

.nutrient-gauge.unknown .nutrient-gauge-meter b {
  display: none;
}

.nutrient-gauge-meter i {
  position: absolute;
  top: 50%;
  width: 18px;
  height: 18px;
  transform: translate(-50%, -50%);
  border: 3px solid #fff;
  border-radius: 999px;
  background: #111411;
  box-shadow: 0 4px 10px rgba(31, 35, 31, 0.18);
}

.nutrient-gauge-meter-unknown i {
  left: 50%;
  border-color: #fff7ed;
  background: #8a5a1f;
}

.nutrient-gauge-meter-unknown i::after {
  position: absolute;
  inset: 50% auto auto 50%;
  content: "?";
  transform: translate(-50%, -54%);
  color: #fff;
  font-size: 10px;
  font-style: normal;
  font-weight: 950;
}

.nutrient-gauge em {
  justify-self: end;
  color: #111411;
  font-size: 12px;
  font-style: normal;
  font-weight: 950;
  line-height: 1.1;
  text-align: right;
}

.nutrient-gauge em .nutrient-gauge-limit {
  display: block;
  margin-top: 3px;
  color: #865317;
  font-size: 9px;
  font-style: normal;
}

.nutrient-gauge-status {
  justify-self: end;
  padding: 6px 9px;
  border-radius: 999px;
  color: #8a5a1f;
  background: #ffead0;
  font-size: 11px;
  font-weight: 900;
}

.nutrient-gauge-list.compact {
  gap: 7px;
}

.nutrient-gauge-list.compact .nutrient-gauge {
  grid-template-columns: minmax(0, 1fr) 76px 34px;
  gap: 7px;
  padding: 8px;
}

.nutrient-gauge-list.compact .nutrient-gauge-copy small {
  display: none;
}

.nutrient-gauge-list.compact .nutrient-gauge-copy span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nutrition-control-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
}

.nutrition-control-summary div {
  display: grid;
  gap: 3px;
  padding: 9px;
  border: 1px solid #ecd3ab;
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.78);
}

.nutrition-control-summary span {
  color: #725b3f;
  font-size: 9px;
  font-weight: 800;
  line-height: 1.15;
}

.nutrition-control-summary strong {
  color: #332718;
  font-size: 15px;
}

.nutrition-declared-gap-list {
  display: grid;
  gap: 8px;
}

.nutrition-data-details {
  border-top: 1px solid rgba(123, 93, 45, 0.18);
  padding-top: 10px;
}

.nutrition-data-details > summary {
  width: fit-content;
  cursor: pointer;
  color: #6f532d;
  font-size: 12px;
  font-weight: 900;
}

.nutrition-data-details[open] > summary {
  margin-bottom: 10px;
}

.nutrition-declared-gap {
  display: grid;
  gap: 4px;
  padding: 11px;
  border: 1px solid #efba74;
  border-radius: 14px;
  color: #6c4213;
  background: #fff0d9;
}

.nutrition-declared-gap strong {
  font-size: 12px;
}

.nutrition-declared-gap span {
  font-size: 11px;
  line-height: 1.4;
}

.nutrition-scope-warning,
.nutrition-calculation-method {
  border: 1px solid #e8c68f;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.78);
  overflow: hidden;
}

.nutrition-scope-warning summary,
.nutrition-calculation-method summary {
  padding: 11px 12px;
  cursor: pointer;
  list-style-position: inside;
  color: #563714;
  font-size: 12px;
  font-weight: 900;
}

.nutrition-scope-warning summary strong,
.nutrition-scope-warning summary span {
  display: block;
}

.nutrition-scope-warning summary span {
  margin: 3px 0 0 17px;
  color: #7b6243;
  font-size: 10px;
  font-weight: 700;
}

.nutrition-scope-warning ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px 14px;
  margin: 0;
  padding: 0 14px 13px 31px;
  color: #664a28;
  font-size: 10px;
}

.nutrition-calculation-method p {
  margin: 0;
  padding: 0 12px 10px;
  color: #665947;
  font-size: 10px;
  line-height: 1.45;
}

.recipe-guide {
  display: grid;
  gap: 14px;
  padding: 16px;
  border: 1px solid #dfe7de;
  border-radius: 26px;
  background: linear-gradient(180deg, #ffffff, #f6faf4);
  box-shadow: 0 16px 34px rgba(31, 35, 31, 0.08);
}

.recipe-guide.blocked {
  border-color: #ff4d62;
  background: #fff7f8;
}

.recipe-sheet {
  gap: 18px;
  margin-top: 10px;
  padding: 18px;
  background: #fffdf7;
}

.recipe-sheet-heading {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: start;
}

.recipe-sheet-heading h2,
.recipe-sheet-heading p,
.recipe-ingredient-recap h3,
.recipe-ingredient-recap p {
  margin: 0;
}

.recipe-sheet-heading h2 {
  margin-top: 3px;
  font-size: clamp(24px, 7vw, 34px);
  line-height: 0.98;
}

.recipe-sheet-heading > span {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  flex: 0 0 auto;
  padding: 0 12px;
  border-radius: 999px;
  color: #263019;
  background: #f4d982;
  font-size: 13px;
  font-weight: 950;
}

.recipe-sheet-heading > span svg {
  width: 17px;
  height: 17px;
}

.recipe-time-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.recipe-time-grid > div {
  display: grid;
  gap: 5px;
  padding: 13px;
  border: 1px solid #eadfac;
  border-radius: 17px;
  background: #fff7d7;
}

.recipe-time-grid small {
  color: #6d674e;
  font-size: 11px;
  font-weight: 850;
}

.recipe-time-grid strong {
  color: #171a10;
  font-size: 20px;
  line-height: 1;
}

.recipe-time-note {
  margin-top: -8px;
  color: #6d674e;
  font-size: 11px;
  line-height: 1.4;
}

.recipe-ingredient-recap {
  display: grid;
  gap: 12px;
  padding: 15px;
  border: 1px solid #e2e8da;
  border-radius: 20px;
  background: #fff;
}

.recipe-ingredient-recap h3 {
  margin-top: 3px;
  font-size: 19px;
}

.recipe-ingredient-recap ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.recipe-ingredient-recap li {
  min-width: 0;
  display: grid;
  gap: 2px;
  padding-top: 8px;
  border-top: 1px solid #edf0e9;
}

.recipe-ingredient-recap li strong {
  color: #283421;
  font-size: 12px;
}

.recipe-ingredient-recap li span {
  overflow: hidden;
  color: #596159;
  font-size: 12px;
  line-height: 1.3;
  text-overflow: ellipsis;
}

.recipe-step-list {
  display: grid;
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.recipe-step-card {
  overflow: hidden;
  border: 1px solid #dee5da;
  border-radius: 23px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(31, 35, 31, 0.08);
}

.recipe-step-media,
.cook-mode-media {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #eef1e9;
}

.recipe-step-media > img,
.cook-mode-media > img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.recipe-step-copy {
  display: grid;
  gap: 10px;
  padding: 15px;
}

.recipe-step-copy h3,
.recipe-step-copy p {
  margin: 0;
}

.recipe-step-copy h3 {
  color: #151811;
  font-size: 23px;
  line-height: 1.05;
}

.recipe-step-instruction {
  color: #333a31;
  font-size: 16px;
  font-weight: 720;
  line-height: 1.42;
}

.step-ingredient-reminder {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.step-ingredient-reminder strong,
.step-ingredient-reminder span {
  padding: 6px 8px;
  border-radius: 999px;
  font-size: 11px;
  line-height: 1;
}

.step-ingredient-reminder strong {
  color: #674c0f;
  background: #f4d982;
}

.step-ingredient-reminder span {
  color: #405043;
  background: #edf4e9;
  font-weight: 850;
}

.recipe-step-details {
  padding: 0 11px;
  border-radius: 14px;
  background: #f5f7f1;
}

.recipe-step-details summary {
  padding: 11px 0;
  cursor: pointer;
  color: #465044;
  font-size: 12px;
  font-weight: 900;
}

.recipe-step-details > p,
.recipe-step-details > ul {
  margin: 0 0 11px;
  color: #5a6358;
  font-size: 12px;
  line-height: 1.4;
}

.recipe-step-details > ul {
  padding-left: 18px;
}

@media (min-width: 720px) {
  .recipe-step-card {
    display: grid;
    grid-template-columns: minmax(260px, 0.82fr) minmax(0, 1fr);
  }

  .recipe-step-copy {
    align-content: center;
    padding: 22px;
  }
}

.guide-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: start;
}

.guide-heading h2,
.guide-heading p {
  margin: 0;
}

.guide-heading h2 {
  font-size: 22px;
  line-height: 1.05;
}

.guide-heading p {
  margin-top: 6px;
  color: #596259;
  font-size: 13px;
  line-height: 1.45;
}

.guide-heading > span {
  padding: 7px 10px;
  border-radius: 999px;
  color: #244a2f;
  background: #dff3e4;
  font-size: 11px;
  font-weight: 900;
  white-space: nowrap;
}

.guide-equipment {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.guide-equipment em {
  padding: 7px 9px;
  border-radius: 999px;
  color: #4f5a50;
  background: #eef2ea;
  font-size: 11px;
  font-style: normal;
  font-weight: 800;
}

.guide-before {
  padding: 0 12px;
  border: 1px solid #e2e8df;
  border-radius: 16px;
  background: #fff;
}

.guide-before summary {
  padding: 12px 0;
  cursor: pointer;
  font-weight: 900;
}

.guide-before ul {
  margin: 0 0 12px;
  padding-left: 18px;
  color: #5e695e;
  font-size: 13px;
  line-height: 1.45;
}

.guide-cook-mode {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid #cfeac0;
  border-radius: 20px;
  background: linear-gradient(180deg, #f6ffe9, #edffd8);
}

.guide-cook-mode strong,
.guide-cook-mode span {
  display: block;
}

.guide-cook-mode strong {
  font-size: 17px;
  line-height: 1.1;
}

.guide-cook-mode span {
  margin-top: 4px;
  color: #51604e;
  font-size: 13px;
  line-height: 1.35;
}

.guide-next-button {
  min-height: 64px;
  width: 100%;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  border: 0;
  border-radius: 999px;
  color: #11160f;
  background: #9cff00;
  box-shadow: 0 14px 28px rgba(111, 179, 0, 0.22);
  font-size: 17px;
  font-weight: 950;
  touch-action: manipulation;
}

.guide-next-button:active {
  transform: translateY(1px);
}

.step-heading {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  color: #657065;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.step-heading em {
  padding: 5px 8px;
  border-radius: 999px;
  color: #234b2e;
  background: #e2f4e5;
  font-style: normal;
  letter-spacing: 0;
  text-transform: none;
}

.step-note {
  display: grid;
  gap: 4px;
  padding: 10px;
  border-radius: 14px;
  background: #f3f6ef;
}

.step-note.check {
  background: #eef8f0;
}

.step-note strong {
  color: #2c5035;
  font-size: 12px;
}

.step-note span {
  color: #596259;
  font-size: 13px;
  line-height: 1.35;
}

.cook-mode-overlay {
  position: fixed;
  z-index: 60;
  inset: 0;
  display: grid;
  grid-template-rows: auto 5px minmax(0, 1fr) auto;
  gap: 12px;
  width: min(720px, 100%);
  height: 100dvh;
  max-height: 100dvh;
  overflow: hidden;
  box-sizing: border-box;
  margin: 0 auto;
  padding: max(14px, env(safe-area-inset-top)) 14px max(14px, env(safe-area-inset-bottom));
  color: #111411;
  background: #f7f9f3;
  box-shadow: 0 0 0 100vmax rgba(17, 20, 17, 0.55);
}

.cook-mode-overlay header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.cook-mode-overlay header p,
.cook-mode-overlay header strong {
  display: block;
  margin: 0;
}

.cook-mode-overlay header p {
  color: #536053;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.cook-mode-overlay header strong {
  margin-top: 2px;
  font-size: 18px;
}

.cook-mode-overlay header button {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border: 0;
  border-radius: 999px;
  color: #111411;
  background: #e7ece2;
}

.cook-mode-progress {
  overflow: hidden;
  border-radius: 999px;
  background: #dfe6d9;
}

.cook-mode-progress b {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: #8ce600;
}

.cook-mode-step {
  min-height: 0;
  overflow-y: auto;
  display: grid;
  align-content: start;
  gap: 12px;
  padding: 12px;
  border-radius: 24px;
  background: #fff;
}

.cook-mode-media {
  border-radius: 18px;
}

.cook-mode-step h2,
.cook-mode-step p {
  margin: 0;
}

.cook-mode-step h2 {
  font-size: 24px;
  line-height: 1.05;
}

.cook-mode-step > p {
  font-size: 18px;
  line-height: 1.45;
}

.cook-mode-actions {
  display: grid;
  grid-template-columns: minmax(100px, 0.45fr) minmax(0, 1fr);
  gap: 10px;
}

.cook-mode-actions .secondary-button,
.cook-mode-actions .guide-next-button {
  min-height: 58px;
}

.detail-view h2,
.requirements h2 {
  margin: 10px 0 0;
  font-size: 17px;
}

.connection-card {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 14px;
  border: 1px solid #dbe4dc;
  border-radius: 18px;
  background: #fff;
}

.connection-card.ready {
  border-color: #bfe1c7;
  background: #eff9f1;
}

.connection-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: #2d6c3f;
  background: #d9f1de;
}

.connection-card strong,
.connection-card small {
  display: block;
}

.connection-card small {
  margin-top: 3px;
  color: #657065;
  line-height: 1.35;
}

.ingredient-list,
.requirements ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ingredient-list li,
.requirements li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border-radius: 16px;
  background: #fff;
}

.requirements li {
  justify-content: start;
  color: #77242e;
  background: #fff3f5;
}

.requirements .verified-requirements li {
  color: #2a653b;
  background: #eef8f0;
}

.store-options {
  display: grid;
  gap: 8px;
  margin-top: 4px;
}

.store-locator-heading {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-top: 4px;
  padding: 12px;
  border-radius: 16px;
  background: #fff;
}

.store-locator-heading strong,
.store-locator-heading small {
  display: block;
}

.store-locator-heading small {
  margin-top: 3px;
  color: #687068;
  line-height: 1.35;
}

.store-options strong,
.store-options span,
.store-options small {
  display: block;
}

.store-options strong {
  font-size: 15px;
}

.store-options p {
  margin: 0;
  color: #687068;
  font-size: 13px;
  line-height: 1.35;
}

.store-options article {
  display: grid;
  gap: 4px;
  padding: 12px;
  border-radius: 16px;
  background: #fff;
}

.store-options article.selected {
  border: 1px solid #b7d7bf;
  background: #eff9f1;
}

.store-option-heading {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.store-option-heading em {
  flex: 0 0 auto;
  padding: 4px 7px;
  border-radius: 999px;
  color: #2b643b;
  background: #d5efd9;
  font-size: 10px;
  font-style: normal;
  font-weight: 900;
  text-transform: uppercase;
}

.store-option-heading .store-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 4px;
}

.store-options span {
  font-weight: 900;
}

.store-options small {
  color: #6d756c;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.store-option-action {
  min-height: 38px;
  border: 0;
  border-radius: 14px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  color: #111411;
  background: #bdff00;
  font-weight: 900;
}

.store-option-action:disabled {
  color: #37503e;
  background: #d8e7db;
}

.ingredient-list small {
  display: block;
  color: #7a8279;
}

.ingredient-list em {
  flex: 0 0 auto;
  color: #8a2b35;
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
}

.public-install-card {
  position: relative;
  display: grid;
  gap: 17px;
  margin-top: 12px;
  padding: clamp(22px, 5vw, 34px);
  border-radius: 30px;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(circle at 92% 8%, rgba(189, 255, 0, 0.22), transparent 180px),
    #152019;
  box-shadow: 0 22px 46px rgba(21, 32, 25, 0.24);
}

.public-install-card::after {
  position: absolute;
  right: -48px;
  bottom: -82px;
  width: 190px;
  height: 190px;
  border: 1px solid rgba(189, 255, 0, 0.24);
  border-radius: 50%;
  content: "";
}

.public-install-heading {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 13px;
  align-items: center;
}

.public-install-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  color: #111411;
  background: #bdff00;
}

.public-install-heading h2,
.public-install-heading p,
.public-install-card > p {
  margin: 0;
}

.public-install-heading .section-kicker {
  color: #bdff00;
}

.public-install-heading h2 {
  margin-top: 4px;
  color: #fff;
  font-size: clamp(23px, 6vw, 32px);
  line-height: 1;
}

.public-install-card > p {
  position: relative;
  z-index: 1;
  color: rgba(255, 255, 255, 0.76);
  font-size: 14px;
  line-height: 1.58;
}

.public-install-requirements {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 8px;
}

.public-install-requirements span {
  display: flex;
  align-items: center;
  gap: 9px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 12px;
  font-weight: 750;
}

.public-install-requirements span::before {
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #bdff00;
  box-shadow: 0 0 0 4px rgba(189, 255, 0, 0.1);
  content: "";
}

.public-install-requirements strong {
  color: #bdff00;
}

.public-install-button {
  position: relative;
  z-index: 1;
  min-height: 58px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 22px;
  border-radius: 999px;
  color: #111411;
  background: #bdff00;
  box-shadow: 0 12px 26px rgba(189, 255, 0, 0.18);
  font-size: 15px;
  font-weight: 950;
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.public-install-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 30px rgba(189, 255, 0, 0.24);
}

.public-install-button span {
  margin-left: auto;
  font-size: 18px;
}

.marketplace-status-list {
  display: grid;
  justify-items: end;
  gap: 4px;
}

.marketplace-status {
  display: grid;
  justify-items: end;
  gap: 3px;
}

.marketplace-status em {
  border-radius: 999px;
  padding: 5px 8px;
  font-size: 11px;
  line-height: 1.2;
}

.marketplace-status small {
  max-width: 170px;
  color: #667066;
  font-size: 11px;
  line-height: 1.25;
  text-align: right;
}

.marketplace-status-available em {
  color: #25653b;
  background: #e0f3e4;
}

.marketplace-status-unavailable em {
  color: #8a2b35;
  background: #fff0f2;
}

.marketplace-status-to_verify em {
  color: #775d16;
  background: #fff5d9;
}

.marketplace-status-source_reference em,
.marketplace-status-not_required em {
  color: #50605a;
  background: #edf2ef;
}

.profile-card {
  display: grid;
  gap: 5px;
  padding: 18px;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 10px 22px rgba(31, 35, 31, 0.06);
}

.profile-card span {
  color: #697168;
}

.profile-card small {
  color: #3e6549;
  font-weight: 750;
}

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

.picnic-progress-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px 14px;
  padding: 16px;
  border: 1px solid #dbe7d3;
  border-radius: 18px;
  background: #f8fcf5;
}

.picnic-progress-card strong,
.picnic-progress-card span,
.picnic-progress-card small {
  display: block;
}

.picnic-progress-card span,
.picnic-progress-card small {
  color: #697168;
  font-size: 12px;
  line-height: 1.35;
}

.picnic-progress-card b {
  align-self: center;
  color: #276239;
  font-size: 18px;
}

.picnic-progress-meter {
  grid-column: 1 / -1;
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: #e2ebdd;
}

.picnic-progress-meter i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: #4a8b54;
  transition: width 300ms ease;
}

.picnic-progress-card small {
  grid-column: 1 / -1;
}

.verification-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 10px;
  align-items: center;
  padding: 14px;
  border-radius: 18px;
  background: #fff;
}

.verification-row strong,
.verification-row span {
  display: block;
}

.verification-row span {
  margin-top: 4px;
  color: #697168;
  font-size: 12px;
  line-height: 1.35;
}

.verification-row em,
.verification-row b {
  padding: 5px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-style: normal;
}

.verification-row em {
  color: #7c2933;
  background: #ffe2e6;
}

.verification-row b {
  color: #276239;
  background: #dbf8df;
}

.bottom-nav {
  position: fixed;
  z-index: 20;
  bottom: max(12px, env(safe-area-inset-bottom));
  left: 50%;
  width: min(720px, calc(100vw - 24px));
  height: 68px;
  transform: translateX(-50%);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
  padding: 6px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 -12px 32px rgba(31, 35, 31, 0.16);
  backdrop-filter: blur(18px);
}

.bottom-nav button {
  border: 0;
  border-radius: 18px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 2px;
  color: #687068;
  background: transparent;
  font-size: 11px;
  font-weight: 800;
}

.bottom-nav button.active {
  color: #111411;
  background: #bdff00;
}

.status-panel,
.notifications {
  position: fixed;
  z-index: 40;
  left: 50%;
  bottom: 92px;
  width: min(720px, calc(100vw - 24px));
  transform: translateX(-50%);
  padding: 16px;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 22px 44px rgba(31, 35, 31, 0.2);
}

.notifications {
  top: 74px;
  bottom: auto;
}

.notification-list {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.notification-list article {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 10px;
  border-radius: 16px;
  background: #f5f7f1;
}

.notification-list article strong,
.notification-list article p {
  margin: 0;
}

.notification-list article p {
  margin-top: 3px;
  color: #687068;
  font-size: 12px;
  line-height: 1.35;
}

.notification-list .secondary-button {
  min-height: 34px;
  position: static;
  width: auto;
  height: auto;
  padding: 0 10px;
  border-radius: 999px;
}

.status-panel.error {
  border: 2px solid #ff4d62;
}

.status-panel.success {
  border: 2px solid #4fd16b;
}

.status-panel.loading {
  border: 2px solid #bdff00;
}

.status-panel button,
.notifications button {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 50%;
  background: #eef0ea;
}

.status-panel strong,
.notifications strong {
  display: block;
  padding-right: 40px;
}

.status-panel p,
.notifications p {
  margin: 6px 0 0;
  color: #687068;
}

.status-panel ul {
  margin: 10px 0 0;
  padding-left: 18px;
  color: #687068;
  font-size: 13px;
}

.sheet-backdrop {
  position: fixed;
  z-index: 50;
  inset: 0;
  display: grid;
  place-items: end center;
  padding: 16px;
  background: rgba(15, 18, 15, 0.32);
  overscroll-behavior: contain;
}

.sheet {
  width: min(720px, 100%);
  display: grid;
  gap: 10px;
  padding: 18px;
  border-radius: 28px;
  background: #fff;
}

.sheet-heading {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
}

.sheet .sheet-close {
  min-height: 40px;
  width: 40px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  padding: 0;
  border-radius: 50%;
}

.sheet h2 {
  margin: 0 0 4px;
}

.sheet button {
  min-height: 64px;
  border: 0;
  border-radius: 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 0 14px;
  background: #f3f5ef;
}

.sheet > button.selected {
  box-shadow: inset 0 0 0 2px #438052;
  background: #eef8f0;
}

.sheet span {
  color: #7a8279;
  font-size: 12px;
}

@media (max-width: 680px) {
  .app-shell {
    padding-inline: 16px;
  }

  .app-header {
    padding-inline: 16px;
  }

  .hero-panel {
    min-height: 230px;
    grid-template-columns: minmax(0, 1fr) 92px;
    padding: 24px 18px;
  }

  .hero-panel h1 {
    font-size: clamp(24px, 7vw, 29px);
  }

  .hero-proof {
    width: 92px;
    height: 92px;
    border-radius: 24px;
  }

  .setup-progress ol {
    grid-template-columns: 1fr;
  }

  .setup-progress li {
    padding: 10px;
  }

  .action-row {
    grid-template-columns: 1fr;
  }

  .generator-panel {
    padding: 16px;
  }

  .guide-heading {
    grid-template-columns: 1fr;
  }

  .guide-heading > span {
    justify-self: start;
  }

  .slot-recipe {
    grid-template-columns: 58px minmax(0, 1fr);
    gap: 9px;
  }

  .slot-recipe img {
    width: 58px;
    height: 58px;
  }

  .nutrient-gauge,
  .nutrient-gauge-list.compact .nutrient-gauge {
    grid-template-columns: minmax(0, 1fr);
  }

  .nutrient-gauge-meter {
    width: 100%;
  }

  .nutrient-gauge em {
    justify-self: start;
  }

  .nutrient-gauge-status {
    justify-self: start;
  }

  .nutrient-priority-toggle summary,
  .store-locator-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .verification-row {
    grid-template-columns: 1fr auto;
  }

  .verification-row b {
    display: none;
  }

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

@media (max-width: 390px) {
  .provider-pill strong {
    display: none;
  }

  .provider-pill {
    grid-template-columns: 20px minmax(0, 1fr);
  }

  .hero-panel {
    grid-template-columns: 1fr;
  }

  .hero-proof {
    width: 100%;
    height: 66px;
    grid-template-columns: auto auto;
    gap: 8px;
  }

  .hero-proof strong {
    font-size: 28px;
  }

  .bottom-nav span {
    font-size: 10px;
  }

  .public-read-badge {
    display: none;
  }

  .public-app-header {
    grid-template-columns: 1fr;
  }

  .public-install-heading {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
  }
}

.profile-heading {
  max-width: 44rem;
  margin-bottom: 1.15rem;
}

.profile-heading h1 {
  margin: 0.15rem 0 0.5rem;
}

.profile-heading p:last-child {
  margin: 0;
  color: var(--muted, #66736e);
  line-height: 1.55;
}

.profile-questionnaire {
  display: grid;
  gap: 1rem;
  margin-bottom: 1rem;
}

.profile-question,
.profile-advanced {
  margin: 0;
  padding: 1rem;
  border: 1px solid rgba(23, 53, 45, 0.13);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.88);
}

.profile-question legend {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0 0.3rem;
  color: var(--ink, #17352d);
  font-weight: 800;
}

.profile-question legend span {
  display: grid;
  width: 1.75rem;
  height: 1.75rem;
  place-items: center;
  border-radius: 999px;
  background: #dff4e7;
  color: #1f6d48;
  font-size: 0.85rem;
}

.question-help {
  margin: 0.65rem 0 0;
  color: var(--muted, #66736e);
  font-size: 0.9rem;
  line-height: 1.45;
}

.measurement-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
}

.simple-value-field,
.advanced-energy-field {
  display: flex;
  align-items: center;
  width: min(100%, 16rem);
  margin-top: 0.8rem;
  overflow: hidden;
  border: 1px solid rgba(23, 53, 45, 0.2);
  border-radius: 0.85rem;
  background: #fff;
}

.simple-value-field:focus-within,
.advanced-energy-field:focus-within {
  outline: 3px solid rgba(45, 135, 91, 0.2);
  border-color: #2d875b;
}

.simple-value-field input,
.advanced-energy-field input {
  min-width: 0;
  flex: 1;
  min-height: 3.15rem;
  padding: 0.7rem 0.85rem;
  border: 0;
  outline: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: 1.1rem;
  font-weight: 750;
}

.simple-value-field strong,
.advanced-energy-field strong {
  padding: 0 0.85rem;
  color: var(--muted, #66736e);
  white-space: nowrap;
}

.activity-choices {
  display: grid;
  gap: 0.65rem;
  margin-top: 0.8rem;
}

.activity-choice {
  position: relative;
  display: block;
  cursor: pointer;
}

.activity-choice input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.activity-choice > span {
  display: grid;
  gap: 0.2rem;
  padding: 0.9rem 1rem;
  border: 1px solid rgba(23, 53, 45, 0.14);
  border-radius: 0.85rem;
  background: #fff;
  transition: border-color 140ms ease, background 140ms ease, box-shadow 140ms ease;
}

.activity-choice small {
  color: var(--muted, #66736e);
}

.activity-choice input:checked + span {
  border-color: #2d875b;
  background: #edf9f1;
  box-shadow: inset 0 0 0 1px #2d875b;
}

.activity-choice input:focus-visible + span {
  outline: 3px solid rgba(45, 135, 91, 0.24);
  outline-offset: 2px;
}

.profile-advanced summary {
  cursor: pointer;
  color: var(--ink, #17352d);
  font-weight: 800;
}

.advanced-content {
  display: grid;
  gap: 0.7rem;
  padding-top: 1rem;
}

.advanced-content label {
  display: grid;
  gap: 0.25rem;
}

.advanced-content label span,
.advanced-content > small {
  color: var(--muted, #66736e);
  line-height: 1.45;
}

.advanced-energy-field {
  width: min(100%, 21rem);
  margin-top: 0;
}

.advanced-safety-check {
  display: flex !important;
  grid-template-columns: auto 1fr;
  align-items: flex-start;
  gap: 0.65rem !important;
  padding: 0.8rem;
  border-radius: 0.8rem;
  background: #fff8e7;
}

.advanced-safety-check input {
  margin-top: 0.2rem;
}

.advanced-safety-check > span {
  display: grid;
  gap: 0.2rem;
}

.profile-science-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.profile-science-links a {
  padding: 0.45rem 0.7rem;
  border-radius: 999px;
  background: #edf9f1;
  color: #1f6d48;
  font-size: 0.82rem;
  font-weight: 750;
  text-decoration: none;
}

.profile-science-links a:focus-visible,
.profile-science-links a:hover {
  text-decoration: underline;
}

.profile-save {
  justify-self: start;
}

.profile-summary {
  margin-bottom: 1rem;
}

@media (min-width: 760px) {
  .profile-questionnaire {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .activity-question,
  .profile-advanced,
  .profile-save {
    grid-column: 1 / -1;
  }

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

  .activity-choices.compact-choices {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .activity-choices.flemme-frequency-choices {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 420px) {
  .measurement-fields {
    grid-template-columns: 1fr;
  }

  .activity-choices.flemme-frequency-choices {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.nutrition-declared-gap {
  display: grid;
  gap: 0.25rem;
  margin-top: 0.75rem;
  padding: 0.75rem;
  border-radius: 0.75rem;
  background: #fff4d6;
  color: #684900;
}

.recipe-heading-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.65rem;
}

.recipe-heading-actions > span {
  color: var(--muted, #66736e);
  font-size: 0.86rem;
  font-weight: 750;
}

.recipe-heading-actions .primary-button {
  min-height: 2.65rem;
  padding: 0.6rem 0.85rem;
}

.recipe-import-backdrop {
  position: fixed;
  z-index: 100;
  inset: 0;
  display: grid;
  place-items: end center;
  padding: 1rem;
  background: rgba(8, 24, 19, 0.58);
  backdrop-filter: blur(7px);
}

.recipe-import-sheet {
  position: relative;
  width: min(100%, 42rem);
  max-height: min(90vh, 54rem);
  overflow: auto;
  padding: 1.3rem;
  border: 1px solid rgba(23, 53, 45, 0.12);
  border-radius: 1.45rem;
  background: #fffefa;
  box-shadow: 0 24px 70px rgba(8, 24, 19, 0.28);
}

.recipe-import-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  display: grid;
  width: 2.65rem;
  height: 2.65rem;
  place-items: center;
  border: 0;
  border-radius: 999px;
  background: #edf3ef;
  color: var(--ink, #17352d);
}

.recipe-import-intro {
  padding-right: 3rem;
}

.recipe-import-intro h2,
.recipe-import-review-heading h2,
.recipe-import-result h2 {
  margin: 0;
  color: var(--ink, #17352d);
  font-size: clamp(1.45rem, 5vw, 2rem);
  line-height: 1.1;
}

.recipe-import-intro p,
.recipe-import-result p {
  margin: 0.65rem 0 0;
  color: var(--muted, #66736e);
  line-height: 1.5;
}

.recipe-import-choices {
  display: grid;
  gap: 0.7rem;
  margin-top: 1.2rem;
}

.recipe-import-choice {
  display: grid;
  grid-template-columns: 3.15rem minmax(0, 1fr);
  align-items: center;
  gap: 0.85rem;
  width: 100%;
  min-height: 4.9rem;
  padding: 0.8rem;
  border: 1px solid rgba(23, 53, 45, 0.13);
  border-radius: 1rem;
  background: #fff;
  color: var(--ink, #17352d);
  text-align: left;
}

.recipe-import-choice:active {
  transform: scale(0.99);
}

.recipe-import-choice-icon {
  display: grid;
  width: 3.15rem;
  height: 3.15rem;
  place-items: center;
  border-radius: 0.9rem;
  background: #e2f4e8;
  color: #1f6d48;
}

.recipe-import-choice:nth-child(2) .recipe-import-choice-icon {
  background: #17352d;
  color: #fff;
}

.recipe-import-choice:nth-child(3) .recipe-import-choice-icon {
  background: #fff1cb;
  color: #775607;
}

.recipe-import-choice:nth-child(4) .recipe-import-choice-icon {
  background: #f3e8ff;
  color: #70419b;
}

.recipe-import-choice:nth-child(5) .recipe-import-choice-icon {
  background: #e3f1ff;
  color: #245f94;
}

.recipe-import-choice strong,
.recipe-import-choice small {
  display: block;
}

.recipe-import-choice strong {
  font-size: 1rem;
}

.recipe-import-choice small {
  margin-top: 0.2rem;
  color: var(--muted, #66736e);
  font-size: 0.84rem;
}

.recipe-import-review-heading {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: 0.8rem;
}

.recipe-import-review-heading .text-button {
  margin-top: 0.05rem;
}

.recipe-import-review-heading .section-kicker {
  margin: 0 0 0.25rem;
}

.recipe-import-pages {
  display: grid;
  gap: 0.65rem;
  margin-top: 1rem;
}

.recipe-import-page {
  display: grid;
  grid-template-columns: 4rem minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.75rem;
  min-height: 5rem;
  padding: 0.6rem;
  border: 1px solid rgba(23, 53, 45, 0.12);
  border-radius: 0.9rem;
  background: #fff;
}

.recipe-import-page > img,
.recipe-import-file-icon {
  width: 4rem;
  height: 4rem;
  border-radius: 0.65rem;
  background: #eef3ef;
  object-fit: cover;
}

.recipe-import-file-icon {
  display: grid;
  place-items: center;
  color: #1f6d48;
}

.recipe-import-page strong,
.recipe-import-page small {
  display: block;
}

.recipe-import-page small {
  max-width: 16rem;
  margin-top: 0.18rem;
  overflow: hidden;
  color: var(--muted, #66736e);
  font-size: 0.78rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.recipe-import-page-actions {
  display: grid;
  grid-template-columns: repeat(2, 2.35rem);
  gap: 0.25rem;
}

.recipe-import-page-actions button {
  display: grid;
  width: 2.35rem;
  height: 2.35rem;
  place-items: center;
  border: 0;
  border-radius: 0.65rem;
  background: #edf3ef;
  color: var(--ink, #17352d);
}

.recipe-import-page-actions button:disabled {
  opacity: 0.3;
}

.recipe-import-page-actions button svg {
  width: 1rem;
  height: 1rem;
}

.recipe-import-review-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
  margin-top: 1rem;
}

.recipe-import-error {
  margin: 0.85rem 0 0;
  padding: 0.75rem 0.85rem;
  border-radius: 0.75rem;
  background: #ffebe7;
  color: #8c2d20;
  font-size: 0.88rem;
  line-height: 1.4;
}

.recipe-instagram-field {
  display: grid;
  gap: 0.45rem;
  margin-top: 1.25rem;
  color: var(--ink, #17352d);
  font-weight: 800;
}

.recipe-instagram-field input {
  width: 100%;
  min-height: 3.35rem;
  padding: 0.75rem 0.9rem;
  border: 1px solid rgba(23, 53, 45, 0.2);
  border-radius: 0.85rem;
  background: #fff;
  color: inherit;
  font: inherit;
  font-weight: 500;
}

.recipe-instagram-field input:focus {
  outline: 3px solid rgba(45, 135, 91, 0.2);
  border-color: #2d875b;
}

.recipe-import-submit {
  width: 100%;
  margin-top: 1rem;
}

.recipe-import-result {
  display: grid;
  justify-items: center;
  min-height: 22rem;
  align-content: center;
  padding: 1.5rem 0.5rem;
  text-align: center;
}

.recipe-import-result .primary-button {
  margin-top: 1.25rem;
}

.recipe-import-result-icon {
  display: grid;
  width: 4.2rem;
  height: 4.2rem;
  margin-bottom: 1rem;
  place-items: center;
  border-radius: 999px;
  background: #dff4e7;
  color: #1f6d48;
}

.recipe-import-result-icon svg {
  width: 2rem;
  height: 2rem;
}

.recipe-import-spinner {
  width: 3.25rem;
  height: 3.25rem;
  margin-bottom: 1rem;
  border: 4px solid #dfe9e2;
  border-top-color: #2d875b;
  border-radius: 999px;
  animation: recipe-import-spin 800ms linear infinite;
}

@keyframes recipe-import-spin {
  to { transform: rotate(360deg); }
}

.recipe-import-tracker {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.recipe-import-tracker-error {
  grid-column: 1 / -1;
  margin: 0;
  padding: 0.75rem 0.85rem;
  border-radius: 0.8rem;
  background: #ffebe7;
  color: #8c2d20;
  font-size: 0.84rem;
  line-height: 1.4;
}

.recipe-import-card {
  display: grid;
  grid-template-columns: 5rem minmax(0, 1fr);
  gap: 0.8rem;
  min-height: 9.2rem;
  padding: 0.75rem;
  overflow: hidden;
  border: 1px solid rgba(45, 135, 91, 0.18);
  border-radius: 1.15rem;
  background: #fff;
  box-shadow: 0 14px 28px rgba(31, 35, 31, 0.07);
}

.recipe-import-card.failed {
  border-color: rgba(173, 59, 42, 0.22);
}

.recipe-import-card-visual {
  position: relative;
  display: grid;
  min-height: 7.7rem;
  place-items: center;
  overflow: hidden;
  border-radius: 0.85rem;
  background: linear-gradient(145deg, #dff4e7, #f2f8ee);
  color: #1f6d48;
}

.recipe-import-card-visual::after {
  position: absolute;
  inset: -20% auto -20% -70%;
  width: 45%;
  content: "";
  transform: skewX(-18deg);
  background: rgba(255, 255, 255, 0.72);
  animation: recipe-import-shimmer 1.6s ease-in-out infinite;
}

.recipe-import-card.failed .recipe-import-card-visual {
  background: #ffebe7;
  color: #9b3829;
}

.recipe-import-card.failed .recipe-import-card-visual::after,
.recipe-import-card.completed .recipe-import-card-visual::after {
  display: none;
}

.recipe-import-card-visual svg {
  width: 1.7rem;
  height: 1.7rem;
}

.recipe-import-card-copy {
  min-width: 0;
  display: grid;
  align-content: center;
  gap: 0.42rem;
}

.recipe-import-card-copy .recipe-card-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.recipe-import-card-copy > strong {
  color: var(--ink, #17352d);
  line-height: 1.2;
}

.recipe-import-card-copy > small {
  color: var(--muted, #66736e);
  font-size: 0.76rem;
  line-height: 1.35;
}

.recipe-import-card-copy .secondary-button {
  width: fit-content;
  margin-top: 0.15rem;
}

.recipe-import-card-progress {
  height: 0.35rem;
  margin-top: 0.2rem;
  overflow: hidden;
  border-radius: 999px;
  background: #e4ece6;
}

.recipe-import-card-progress i {
  display: block;
  width: 42%;
  height: 100%;
  border-radius: inherit;
  background: #2d875b;
  animation: recipe-import-progress 1.5s ease-in-out infinite;
}

@keyframes recipe-import-shimmer {
  to { left: 135%; }
}

@keyframes recipe-import-progress {
  0% { transform: translateX(-105%); }
  100% { transform: translateX(245%); }
}

.recipe-scanner {
  position: fixed;
  z-index: 120;
  inset: 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  background: #050806;
  color: #fff;
}

.recipe-scanner-header {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 3.2rem minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.5rem;
  min-height: calc(4.25rem + env(safe-area-inset-top));
  padding: calc(0.7rem + env(safe-area-inset-top)) 0.8rem 0.7rem;
  background: #0b130f;
}

.recipe-scanner-header > button {
  min-height: 2.65rem;
  padding: 0 0.75rem;
  border: 0;
  border-radius: 0.7rem;
  background: rgba(255,255,255,0.1);
  color: #fff;
  font-weight: 800;
}

.recipe-scanner-header > button:first-child {
  display: grid;
  width: 2.65rem;
  padding: 0;
  place-items: center;
}

.recipe-scanner-header > button:disabled {
  opacity: 0.38;
}

.recipe-scanner-header strong,
.recipe-scanner-header small {
  display: block;
  text-align: center;
}

.recipe-scanner-header small {
  margin-top: 0.15rem;
  color: rgba(255,255,255,0.66);
  font-size: 0.75rem;
}

.recipe-scanner-stage {
  position: relative;
  min-height: 0;
  overflow: hidden;
  background: #020302;
}

.recipe-scanner-stage video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.recipe-scanner-frame {
  position: absolute;
  inset: clamp(1.2rem, 6vw, 3rem);
  border: 1px solid rgba(255,255,255,0.42);
  border-radius: 0.8rem;
  box-shadow: 0 0 0 100vmax rgba(0,0,0,0.22);
  pointer-events: none;
}

.recipe-scanner-frame i {
  position: absolute;
  width: 2.4rem;
  height: 2.4rem;
  border-color: #fff;
  border-style: solid;
}

.recipe-scanner-frame i:nth-child(1) {
  top: -2px;
  left: -2px;
  border-width: 4px 0 0 4px;
  border-radius: 0.8rem 0 0;
}

.recipe-scanner-frame i:nth-child(2) {
  top: -2px;
  right: -2px;
  border-width: 4px 4px 0 0;
  border-radius: 0 0.8rem 0 0;
}

.recipe-scanner-frame i:nth-child(3) {
  right: -2px;
  bottom: -2px;
  border-width: 0 4px 4px 0;
  border-radius: 0 0 0.8rem;
}

.recipe-scanner-frame i:nth-child(4) {
  bottom: -2px;
  left: -2px;
  border-width: 0 0 4px 4px;
  border-radius: 0 0 0 0.8rem;
}

.recipe-scanner-message {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(85%, 22rem);
  margin: 0;
  padding: 0.8rem 1rem;
  border-radius: 0.8rem;
  background: rgba(5, 8, 6, 0.82);
  text-align: center;
  transform: translate(-50%, -50%);
}

.recipe-scanner-message.error {
  background: rgba(102, 25, 18, 0.9);
}

.recipe-scanner-controls {
  display: grid;
  grid-template-columns: minmax(4rem, 1fr) 5.2rem minmax(4rem, 1fr);
  align-items: center;
  gap: 1rem;
  min-height: calc(7.6rem + env(safe-area-inset-bottom));
  padding: 0.85rem 1rem calc(0.85rem + env(safe-area-inset-bottom));
  background: #0b130f;
}

.recipe-scanner-shutter {
  display: grid;
  width: 5rem;
  height: 5rem;
  padding: 0;
  place-items: center;
  border: 4px solid #fff;
  border-radius: 999px;
  background: transparent;
}

.recipe-scanner-shutter span {
  width: 3.75rem;
  height: 3.75rem;
  border-radius: inherit;
  background: #fff;
}

.recipe-scanner-shutter:active:not(:disabled) span {
  transform: scale(0.9);
}

.recipe-scanner-shutter:disabled {
  opacity: 0.35;
}

.recipe-scanner-thumbnails {
  display: flex;
  min-width: 0;
}

.recipe-scanner-thumbnails img {
  width: 2.75rem;
  height: 3.4rem;
  margin-right: -0.65rem;
  border: 2px solid #0b130f;
  border-radius: 0.4rem;
  background: #26332c;
  object-fit: cover;
}

.recipe-scanner-count {
  justify-self: end;
  min-width: 2rem;
  font-size: 1.05rem;
  font-weight: 800;
  text-align: center;
}

@media (min-width: 680px) {
  .recipe-import-backdrop {
    place-items: center;
  }

  .recipe-import-sheet {
    padding: 1.7rem;
  }

  .recipe-import-choices {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .recipe-heading-actions {
    align-items: flex-end;
    flex-direction: column;
    gap: 0.4rem;
  }

  .recipe-import-backdrop {
    padding: 0;
  }

  .recipe-import-sheet {
    width: 100%;
    max-height: 92vh;
    padding: 1.15rem;
    border-radius: 1.35rem 1.35rem 0 0;
  }

  .recipe-import-page {
    grid-template-columns: 3.4rem minmax(0, 1fr);
  }

  .recipe-import-page > img,
  .recipe-import-file-icon {
    width: 3.4rem;
    height: 3.9rem;
  }

  .recipe-import-page-actions {
    grid-column: 1 / -1;
    grid-template-columns: repeat(4, 1fr);
  }

  .recipe-import-page-actions button {
    width: 100%;
  }

  .recipe-import-review-actions {
    grid-template-columns: 1fr;
  }

  .recipe-import-tracker {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .recipe-import-spinner,
  .recipe-import-card-visual::after,
  .recipe-import-card-progress i {
    animation-duration: 3000ms;
  }
}

.nutrition-declared-gap span {
  font-size: 0.82rem;
  line-height: 1.4;
}
.recipe-history-note {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0.25rem 0 0.8rem;
  color: var(--muted, #59645c);
  font-size: 0.9rem;
  font-weight: 650;
}

.recipe-history-note svg {
  width: 1rem;
  height: 1rem;
  color: var(--accent, #4f8f18);
}

.calendar-view {
  display: grid;
  gap: 1rem;
}

.calendar-page-heading {
  display: grid;
  gap: 0.3rem;
  padding: 0.4rem 0.2rem 0.2rem;
}

.calendar-page-heading h1,
.calendar-page-heading p {
  margin: 0;
}

.calendar-page-heading h1 {
  color: #111411;
  font-size: clamp(2rem, 8vw, 2.75rem);
  line-height: 1;
  letter-spacing: -0.04em;
}

.calendar-page-heading > p:last-child {
  color: #687068;
  line-height: 1.45;
}

.calendar-toolbar {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.75rem;
  padding: 0.55rem;
  border: 1px solid #dce4da;
  border-radius: 1.25rem;
  background: #fff;
  box-shadow: 0 8px 22px rgba(31, 35, 31, 0.05);
}

.calendar-view-switch,
.calendar-period-navigation {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  padding: 0.2rem;
  border-radius: 0.9rem;
  background: #f1f5ef;
}

.calendar-view-switch button,
.calendar-period-navigation button {
  min-height: 2.45rem;
  padding: 0.45rem 0.7rem;
  border: 0;
  border-radius: 0.7rem;
  color: #596259;
  background: transparent;
  font-size: 0.76rem;
  font-weight: 850;
}

.calendar-view-switch button:hover,
.calendar-view-switch button:focus-visible,
.calendar-period-navigation button:hover,
.calendar-period-navigation button:focus-visible {
  color: #182018;
  background: #e3eadf;
}

.calendar-view-switch button.active {
  color: #172017;
  background: #bdff00;
  box-shadow: 0 2px 6px rgba(55, 78, 31, 0.16);
}

.calendar-period-navigation {
  justify-self: end;
}

.calendar-period-navigation button:first-child,
.calendar-period-navigation button:last-child {
  width: 2.45rem;
  padding-inline: 0;
  font-size: 1.45rem;
  line-height: 1;
}

.calendar-toolbar > strong {
  grid-column: 2;
  grid-row: 1;
  min-width: 0;
  overflow: hidden;
  color: #202620;
  font-size: 0.9rem;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.calendar-week-panel,
.calendar-month-panel,
.calendar-year-panel,
.calendar-history-panel {
  display: grid;
  gap: 1rem;
  padding: 1.1rem;
  overflow: hidden;
  border: 1px solid #e0e6dd;
  border-radius: 1.5rem;
  background: #fff;
  box-shadow: 0 12px 28px rgba(31, 35, 31, 0.06);
}

.calendar-week-panel,
.calendar-month-panel,
.calendar-year-panel {
  border-color: #cfe6d4;
  background: linear-gradient(180deg, #fff, #f4faf4);
}

.calendar-section-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.calendar-section-heading h2,
.calendar-section-heading p {
  margin: 0;
}

.calendar-section-heading h2 {
  margin-top: 0.2rem;
  color: #111411;
  font-size: 1.25rem;
  line-height: 1.1;
}

.calendar-section-heading > span {
  flex: 0 0 auto;
  padding: 0.4rem 0.6rem;
  border-radius: 999px;
  color: #285b38;
  background: #e2f4e6;
  font-size: 0.72rem;
  font-weight: 900;
}

.calendar-grid-scroll {
  max-width: 100%;
  overflow-x: auto;
  border: 1px solid #e1e7df;
  border-radius: 1.1rem;
  background: #f8faf6;
  scrollbar-color: #a9b7a8 transparent;
  scrollbar-width: thin;
}

.calendar-grid-scroll:focus-visible {
  outline-offset: 2px;
}

.calendar-week-grid {
  display: grid;
  min-width: 42rem;
  grid-template-columns: 4rem repeat(7, minmax(5.4rem, 1fr));
  gap: 1px;
  background: #e1e7df;
}

.calendar-grid-corner,
.calendar-day-heading,
.calendar-meal-heading,
.calendar-meal-cell {
  background: #fff;
}

.calendar-grid-corner {
  position: sticky;
  z-index: 3;
  left: 0;
  display: grid;
  min-height: 4.5rem;
  place-items: center;
  color: #4f6656;
  background: #f1f5ef;
}

.calendar-day-heading {
  display: grid;
  min-height: 4.5rem;
  align-content: center;
  justify-items: center;
  gap: 0.1rem;
  color: #5e675e;
}

.calendar-day-heading span {
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.calendar-day-heading strong {
  color: #151815;
  font-size: 1.3rem;
  line-height: 1;
}

.calendar-day-heading small {
  color: #30623d;
  font-size: 0.58rem;
  font-weight: 850;
}

.calendar-day-heading.is-today {
  color: #111411;
  background: #bdff00;
}

.calendar-meal-heading {
  position: sticky;
  z-index: 2;
  left: 0;
  display: grid;
  min-height: 7.4rem;
  place-items: center;
  padding: 0.4rem;
  color: #465046;
  background: #f1f5ef;
  font-size: 0.68rem;
  font-weight: 900;
  text-transform: uppercase;
}

.calendar-meal-cell {
  min-width: 0;
  min-height: 7.4rem;
  display: grid;
  align-content: start;
  gap: 0.4rem;
  padding: 0.45rem;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  color: #151815;
  text-align: left;
}

button.calendar-meal-cell:hover,
button.calendar-meal-cell:focus-visible {
  background: #f3f9ee;
}

.calendar-meal-cell img {
  display: block;
  width: 100%;
  height: 4.1rem;
  border-radius: 0.65rem;
  object-fit: cover;
}

.calendar-meal-cell strong {
  display: -webkit-box;
  overflow: hidden;
  font-size: 0.7rem;
  line-height: 1.2;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.calendar-meal-cell.is-empty {
  place-content: center;
  color: #7b837a;
  background: #fafbf8;
  font-size: 0.68rem;
  font-weight: 800;
  text-align: center;
}

.calendar-month-scroll {
  max-width: 100%;
  overflow-x: auto;
  border: 1px solid #e1e7df;
  border-radius: 1.1rem;
  background: #e1e7df;
  scrollbar-color: #a9b7a8 transparent;
  scrollbar-width: thin;
}

.calendar-month-scroll:focus-visible {
  outline-offset: 2px;
}

.calendar-month-grid {
  display: grid;
  min-width: 48rem;
  grid-template-columns: repeat(7, minmax(6.5rem, 1fr));
  gap: 1px;
}

.calendar-month-weekday {
  min-height: 2.5rem;
  display: grid;
  place-items: center;
  color: #526052;
  background: #f0f4ee;
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.calendar-month-day {
  min-width: 0;
  min-height: 9.5rem;
  display: grid;
  align-content: start;
  gap: 0.45rem;
  padding: 0.45rem;
  background: #fff;
}

.calendar-month-day.is-outside {
  background: #f7f8f5;
  opacity: 0.58;
}

.calendar-month-day.is-today {
  box-shadow: inset 0 0 0 2px #83b900;
}

.calendar-month-day header {
  min-height: 1.7rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.35rem;
}

.calendar-month-day time {
  width: 1.75rem;
  height: 1.75rem;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #242924;
  font-size: 0.78rem;
  font-weight: 900;
}

.calendar-month-day.is-today time {
  background: #bdff00;
}

.calendar-month-day header span {
  color: #42704e;
  font-size: 0.56rem;
  font-weight: 900;
}

.calendar-month-day-items {
  display: grid;
  gap: 0.3rem;
}

.calendar-month-meal,
.calendar-month-history {
  width: 100%;
  min-width: 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 0.35rem;
  padding: 0.32rem;
  overflow: hidden;
  border: 1px solid #dce7d9;
  border-radius: 0.55rem;
  color: #283228;
  background: #f2f8ef;
  text-align: left;
}

.calendar-month-meal:hover,
.calendar-month-meal:focus-visible,
.calendar-month-history:hover,
.calendar-month-history:focus-visible {
  border-color: #94ba8f;
  background: #e8f4e4;
}

.calendar-month-meal > span,
.calendar-month-history > svg {
  width: 1.25rem;
  height: 1.25rem;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #285b38;
  background: #dcefdc;
  font-size: 0.58rem;
  font-weight: 950;
}

.calendar-month-history {
  border-color: #e6e0cc;
  background: #fff9e9;
}

.calendar-month-history > svg {
  padding: 0.2rem;
  color: #695217;
  background: #f3e7bd;
}

.calendar-month-meal strong,
.calendar-month-history strong {
  overflow: hidden;
  font-size: 0.64rem;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.calendar-month-history.is-unavailable,
.calendar-month-day-items > small {
  color: #7a6e58;
  font-size: 0.6rem;
}

.calendar-month-day-empty {
  padding-top: 0.5rem;
  color: #c4cbc1;
  font-size: 0.7rem;
  text-align: center;
}

.calendar-year-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}

.calendar-year-month {
  min-width: 0;
  display: grid;
  gap: 0.55rem;
  padding: 0.8rem;
  border: 1px solid #dfe7dc;
  border-radius: 1rem;
  color: #1d231d;
  background: #fff;
  text-align: left;
}

.calendar-year-month:hover,
.calendar-year-month:focus-visible {
  border-color: #99bd94;
  background: #f7fbf5;
  transform: translateY(-1px);
}

.calendar-year-month-heading {
  min-width: 0;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.45rem;
}

.calendar-year-month-heading strong {
  font-size: 0.86rem;
}

.calendar-year-month-heading small {
  overflow: hidden;
  color: #717a70;
  font-size: 0.56rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.calendar-year-weekdays,
.calendar-year-days {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0.12rem;
}

.calendar-year-weekdays i,
.calendar-year-days i {
  display: grid;
  min-width: 0;
  place-items: center;
  border-radius: 0.28rem;
  font-style: normal;
  font-size: 0.54rem;
  line-height: 1;
}

.calendar-year-weekdays i {
  min-height: 0.9rem;
  color: #8a9289;
  font-weight: 900;
}

.calendar-year-days i {
  min-height: 1.1rem;
  position: relative;
  color: #4d564d;
}

.calendar-year-days i.is-outside {
  color: transparent;
}

.calendar-year-days i.has-meal::after {
  position: absolute;
  right: 0.08rem;
  bottom: 0.08rem;
  width: 0.28rem;
  height: 0.28rem;
  border-radius: 999px;
  background: #78a700;
  content: "";
}

.calendar-year-days i.is-today {
  color: #162016;
  background: #bdff00;
  font-weight: 950;
}

.calendar-empty-week,
.calendar-history-empty,
.calendar-history-loading,
.calendar-history-error {
  display: grid;
  align-items: center;
  gap: 0.85rem;
  padding: 1rem;
  border-radius: 1rem;
  background: #f4f7f2;
}

.calendar-empty-week {
  grid-template-columns: auto minmax(0, 1fr) auto;
}

.calendar-empty-week > svg,
.calendar-history-empty > svg,
.calendar-history-loading > svg,
.calendar-history-error > svg {
  width: 1.5rem;
  height: 1.5rem;
  color: #477154;
}

.calendar-empty-week strong,
.calendar-empty-week p,
.calendar-history-empty strong,
.calendar-history-empty p,
.calendar-history-error strong,
.calendar-history-error p {
  margin: 0;
}

.calendar-empty-week p,
.calendar-history-empty p,
.calendar-history-error p {
  margin-top: 0.2rem;
  color: #687068;
  font-size: 0.82rem;
  line-height: 1.4;
}

.calendar-history-groups {
  display: grid;
  gap: 1rem;
}

.calendar-history-day {
  display: grid;
  gap: 0.55rem;
}

.calendar-history-day h3 {
  margin: 0;
  color: #4d584d;
  font-size: 0.78rem;
  font-weight: 900;
}

.calendar-history-day > div {
  display: grid;
  gap: 0.5rem;
}

.calendar-history-item {
  width: 100%;
  min-width: 0;
  min-height: 4.75rem;
  display: grid;
  grid-template-columns: 4rem minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.75rem;
  padding: 0.4rem;
  border: 1px solid #e3e8e0;
  border-radius: 1rem;
  color: #151815;
  background: #fafbf8;
  text-align: left;
}

button.calendar-history-item:hover,
button.calendar-history-item:focus-visible {
  border-color: #a9cca8;
  background: #f2f8ef;
}

.calendar-history-item img,
.calendar-history-placeholder {
  width: 4rem;
  height: 4rem;
  border-radius: 0.8rem;
}

.calendar-history-item img {
  display: block;
  object-fit: cover;
}

.calendar-history-placeholder {
  display: grid;
  place-items: center;
  color: #7b5b21;
  background: #fff1d5;
}

.calendar-history-item > span:nth-child(2) {
  min-width: 0;
}

.calendar-history-item strong,
.calendar-history-item small {
  display: block;
}

.calendar-history-item strong {
  overflow: hidden;
  font-size: 0.9rem;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.calendar-history-item small {
  margin-top: 0.25rem;
  color: #6c756b;
  font-size: 0.74rem;
  line-height: 1.3;
}

.calendar-history-arrow {
  padding-right: 0.45rem;
  color: #728072;
  font-size: 1.7rem;
  line-height: 1;
}

.calendar-history-item.is-unavailable {
  grid-template-columns: 4rem minmax(0, 1fr);
  border-style: dashed;
}

.calendar-history-empty,
.calendar-history-loading {
  grid-template-columns: auto minmax(0, 1fr);
  color: #5f695f;
}

.calendar-history-error {
  grid-template-columns: auto minmax(0, 1fr) auto;
  color: #732c25;
  background: #fff0ec;
}

.calendar-history-error > svg {
  color: #a34437;
}

.bottom-nav {
  grid-template-columns: repeat(5, 1fr);
}

@media (max-width: 900px) {
  .calendar-year-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .calendar-week-panel,
  .calendar-month-panel,
  .calendar-year-panel,
  .calendar-history-panel {
    padding: 0.85rem;
  }

  .calendar-toolbar {
    grid-template-columns: 1fr;
  }

  .calendar-view-switch,
  .calendar-period-navigation {
    width: 100%;
  }

  .calendar-view-switch button {
    flex: 1;
  }

  .calendar-period-navigation {
    justify-content: space-between;
  }

  .calendar-toolbar > strong {
    grid-column: 1;
    grid-row: 2;
  }

  .calendar-week-grid {
    min-width: 44rem;
    grid-template-columns: 4rem repeat(7, minmax(5.6rem, 1fr));
  }

  .calendar-month-grid {
    min-width: 46rem;
  }

  .calendar-year-grid {
    grid-template-columns: 1fr;
  }

  .calendar-year-month {
    padding: 0.9rem;
  }

  .calendar-year-weekdays i,
  .calendar-year-days i {
    font-size: 0.66rem;
  }

  .calendar-year-days i {
    min-height: 1.45rem;
  }

  .calendar-empty-week,
  .calendar-history-error {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .calendar-empty-week .primary-button,
  .calendar-history-error .secondary-button {
    grid-column: 1 / -1;
    width: 100%;
  }

  .bottom-nav {
    gap: 1px;
    padding-inline: 4px;
  }

  .bottom-nav button {
    padding-inline: 2px;
  }

  .bottom-nav span {
    font-size: 9px;
  }
}
