:root {
  font-family: Arial, Helvetica, sans-serif;
  color: #253a32;
  background: #f8f8f2;
  --ink: #253a32;
  --muted: #607269;
  --line: #dce3d6;
  --green: #315740;
  --light: #edf3e3;
  --accent: #e5efab;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}
a {
  color: inherit;
  text-underline-offset: 4px;
}
button,
summary {
  cursor: pointer;
}
button,
a,
input,
select,
textarea,
summary {
  touch-action: manipulation;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid #397da3;
  outline-offset: 3px;
}
.shell {
  max-width: 1240px;
  padding: 0 36px;
  margin: auto;
}
.header {
  height: 92px;
  display: flex;
  gap: 25px;
  align-items: center;
  border-bottom: 1px solid var(--line);
}
.brand {
  font-size: 29px;
  letter-spacing: -1.3px;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}
.brand span {
  color: #8c9c43;
}
.imc-top {
  font-size: 11px;
  margin-left: auto;
}
.languages {
  display: flex;
  border: 1px solid var(--line);
  padding: 4px;
  border-radius: 30px;
  background: #fff;
}
.languages a {
  font-size: 10px;
  text-decoration: none;
  font-weight: 700;
  padding: 10px;
  border-radius: 25px;
}
.languages a[aria-current] {
  background: var(--green);
  color: #fff;
}
.hero {
  display: grid;
  grid-template-columns: 1fr 260px;
  gap: 45px;
  padding-top: 46px;
  padding-bottom: 40px;
  align-items: center;
}
.eyebrow {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1.6px;
  line-height: 1.8;
}
h1 {
  font-size: 49px;
  line-height: 1.08;
  letter-spacing: -2px;
  font-weight: 500;
  max-width: 780px;
  margin: 17px 0;
}
h2 {
  font-size: 25px;
  letter-spacing: -0.7px;
  line-height: 1.25;
  font-weight: 500;
  margin: 12px 0 17px;
}
h3 {
  font-size: 15px;
  line-height: 1.5;
  margin: 12px 0;
}
p {
  font-size: 12px;
  line-height: 1.85;
}
.lead {
  font-size: 16px;
  color: var(--muted);
  max-width: 650px;
}
.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 10px;
  color: var(--muted);
  margin-top: 23px;
}
.bowl-art {
  height: 210px;
  width: 240px;
  border-radius: 50%;
  background: #e9edda;
  position: relative;
  border: 12px solid #f0f2e6;
  box-shadow: 0 0 0 1px #dce3ca;
}
.ingredient-leaf {
  position: absolute;
  left: 20px;
  top: 25px;
  width: 95px;
  height: 115px;
  background: #6c8d55;
  border-radius: 65% 30% 60% 35%;
  transform: rotate(-25deg);
  box-shadow: inset 15px -8px #5e7c48;
}
.ingredient-grain {
  position: absolute;
  right: 10px;
  top: 14px;
  width: 100px;
  height: 90px;
  background: #e3ce90;
  border-radius: 50% 50% 35% 50%;
  transform: rotate(12deg);
  box-shadow: inset -10px -10px #d5bf80;
}
.ingredient-protein {
  position: absolute;
  right: 26px;
  bottom: 22px;
  background: #dba58a;
  width: 105px;
  height: 65px;
  border-radius: 55% 40% 50% 40%;
  transform: rotate(-17deg);
}
.art-label {
  position: absolute;
  background: #fffdf4;
  border: 1px solid var(--line);
  bottom: -17px;
  left: 38px;
  padding: 10px 17px;
  transform: rotate(-4deg);
  font-size: 12px;
}
.tabs {
  display: flex;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  padding: 6px;
  gap: 3px;
  overflow-x: auto;
}
.tabs button {
  border: 0;
  background: transparent;
  border-radius: 8px;
  padding: 14px 16px;
  font-size: 12px;
  line-height: 1.5;
  white-space: nowrap;
  flex: 1;
}
.tabs button[aria-selected="true"] {
  background: var(--green);
  color: #fff;
}
.tabs button:last-child {
  background: #eef3d9;
}
.tabs button:last-child[aria-selected="true"] {
  background: var(--green);
}
.app-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 290px;
  gap: 25px;
  align-items: start;
  margin-top: 20px;
}
.workspace-main {
  min-width: 0;
}
.workspace-main > [role="tabpanel"],
.compare-panel {
  background: white;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 27px;
  margin-bottom: 23px;
}
.controls {
  border: 0;
  padding: 0;
  margin: 0;
  min-width: 0;
}
.search-head > label {
  font-size: 13px;
  font-weight: 600;
}
.search-box {
  display: flex;
  gap: 10px;
  align-items: center;
  border: 1px solid #b7c7b0;
  border-radius: 10px;
  padding: 4px 12px;
  margin-top: 11px;
  background: #fafcf7;
}
.search-box > span {
  font-size: 25px;
}
.search-box input {
  border: 0 !important;
  background: transparent !important;
  padding: 12px 0 !important;
  margin: 0 !important;
}
.search-box button {
  border: 0;
  background: transparent;
  padding: 10px;
  font-size: 18px;
}
label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.7;
  margin-bottom: 17px;
}
input:not([type="checkbox"]),
select,
textarea {
  display: block;
  width: 100%;
  min-width: 0;
  background: #fcfdf9;
  border: 1px solid #ced8c8;
  border-radius: 7px;
  padding: 11px;
  margin-top: 7px;
  font-size: 13px;
  line-height: 1.5;
}
input[type="checkbox"] {
  accent-color: var(--green);
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}
select[multiple] {
  font-size: 11px;
  padding: 6px;
}
textarea {
  resize: vertical;
}
.hint {
  font-size: 10px;
  color: var(--muted);
  font-weight: 400;
  line-height: 1.8;
}
.notice {
  background: #fff4dc;
  border: 1px solid #eddfbd;
  color: #6a542a;
  border-radius: 8px;
  padding: 13px;
  font-size: 11px;
  line-height: 1.8;
}
.status {
  font-size: 12px;
  line-height: 1.8;
  color: #8c3429;
}
.status:empty {
  display: none;
}
.filters,
.advanced {
  border-block: 1px solid var(--line);
  padding: 15px 0;
  margin: 20px 0;
}
.filters summary,
.advanced summary {
  font-size: 11px;
  font-weight: 600;
  line-height: 1.8;
}
.filter-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 15px;
  margin-top: 18px;
}
.filter-grid label {
  font-size: 10px;
}
.result-count {
  font-size: 10px;
  color: var(--muted);
}
#food-results {
  max-height: 295px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 9px;
  margin-bottom: 23px;
}
.food-option {
  display: block;
  width: 100%;
  text-align: left;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: #fff;
  padding: 14px 15px;
  font-size: 12px;
  line-height: 1.6;
}
.food-option span {
  display: block;
  font-size: 9px;
  color: var(--muted);
  margin-top: 4px;
}
.food-option:hover,
.food-option[aria-selected="true"] {
  background: var(--light);
}
.food-detail {
  border-top: 1px solid var(--line);
  padding-top: 13px;
}
.food-detail h2 {
  font-size: 25px;
}
.two-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}
.three-fields {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.primary,
.secondary {
  border-radius: 7px;
  padding: 12px 16px;
  font-weight: 600;
  font-size: 11px;
  line-height: 1.6;
  border: 1px solid var(--line);
  min-height: 42px;
}
.primary {
  background: var(--green);
  border-color: var(--green);
  color: white;
}
.primary:hover {
  background: #234732;
}
.secondary {
  background: #f0f4e9;
}
.text-button {
  border: 0;
  background: transparent;
  text-decoration: underline;
  text-underline-offset: 4px;
  padding: 12px 8px;
  font-size: 10px;
  line-height: 1.5;
  min-height: 40px;
}
.wide {
  width: 100%;
  margin-top: 13px;
}
.action-row,
.mini-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 18px 0;
}
.action-row > * {
  flex-grow: 1;
}
.nutrition h3 {
  font-size: 11px;
  color: var(--muted);
  margin-top: 20px;
}
.nutrient-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px 12px;
  margin: 15px 0;
}
.nutrient-grid > div {
  min-width: 0;
}
.nutrient-grid dt {
  font-size: 9px;
  color: var(--muted);
  line-height: 1.7;
}
.nutrient-grid dd {
  font-size: 18px;
  letter-spacing: -0.4px;
  margin: 5px 0;
  line-height: 1.4;
  overflow-wrap: anywhere;
}
.nutrient-grid > div:first-child dd {
  color: #426332;
  font-weight: 600;
}
.equivalent {
  font-size: 11px;
  background: #edf3e3;
  padding: 10px;
  border-radius: 6px;
}
.source-detail {
  margin: 15px 0;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}
.source-detail summary {
  font-size: 10px;
  line-height: 1.7;
}
.source-detail dl {
  font-size: 10px;
  line-height: 1.8;
}
.source-detail dt {
  font-weight: 600;
  margin-top: 8px;
}
.source-detail dd {
  margin: 0;
  color: var(--muted);
  overflow-wrap: anywhere;
}
.source-detail a {
  font-size: 10px;
}
.ingredient-row {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 15px;
  margin-top: 13px;
}
.ingredient-row h3 {
  margin-top: 0;
  font-size: 13px;
}
.item-controls {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 12px;
}
.item-controls label {
  margin-bottom: 0;
  font-size: 10px;
}
.ingredient-row .source-detail {
  margin-bottom: 0;
}
.mini-actions {
  margin: 9px 0 0;
}
.mini-actions button {
  padding: 8px 11px;
  font-size: 9px;
  min-height: 36px;
}
.recipe-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}
.editorial-card {
  background: #f6f8f0;
  border: 1px solid var(--line);
  padding: 18px;
  border-radius: 10px;
}
.editorial-card h3 {
  font-size: 15px;
  margin-top: 0;
}
.editorial-card p {
  font-size: 10px;
}
.editorial-card .nutrient-grid {
  grid-template-columns: repeat(2, 1fr);
}
.editorial-card .nutrient-grid dd {
  font-size: 15px;
}
.editorial-card button {
  width: 100%;
  margin-top: 8px;
}
.editorial-title {
  margin-top: 35px;
}
.sticky-summary {
  position: sticky;
  top: 22px;
  background: #eef2e3;
  border: 1px solid #d6dfc7;
  border-radius: 14px;
  padding: 24px;
}
.side-panel {
  align-self: stretch;
}
.sticky-summary h2 {
  font-size: 24px;
  margin-top: 12px;
}
.sticky-summary .nutrient-grid {
  grid-template-columns: 1fr 1fr;
}
.sticky-summary .nutrient-grid dd {
  font-size: 19px;
}
.macro-bars label {
  font-size: 9px;
  margin: 12px 0;
}
.macro-bars meter {
  display: block;
  width: 100%;
  height: 10px;
  margin-top: 4px;
  accent-color: #65834d;
}
.storage-panel {
  margin-top: 25px;
  padding-top: 19px;
  border-top: 1px solid #ced8c1;
}
.check {
  display: flex;
  gap: 8px;
  align-items: start;
  font-size: 10px;
}
.check input {
  margin: 2px 0 0;
}
.medical-note {
  font-size: 10px;
  color: var(--muted);
  border-top: 1px solid #ced8c1;
  padding-top: 16px;
  margin-top: 20px;
}
.empty-state {
  font-size: 12px;
  color: var(--muted);
  padding: 19px 10px;
  line-height: 1.9;
}
.allergens {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 13px;
}
.allergens legend {
  font-size: 11px;
}
.allergens label {
  display: inline-flex;
  gap: 7px;
  align-items: center;
  font-size: 10px;
  margin: 5px 10px 5px 0;
}
.candidate-card {
  border: 1px solid #ccdac0;
  border-radius: 11px;
  margin-top: 18px;
  padding: 21px;
  background: #f8fbf3;
}
.candidate-card > ul {
  padding-left: 18px;
}
.candidate-card li {
  font-size: 11px;
  line-height: 1.9;
}
.candidate-card .source-detail {
  margin: 3px 0 8px;
  padding-top: 3px;
  border: 0;
}
.candidate-card button {
  margin: 7px 5px 0 0;
}
.deviation {
  font-size: 11px;
  font-weight: 600;
}
.day-card {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 18px;
  margin: 15px 0;
}
.day-card ul,
#shopping-list ul {
  font-size: 11px;
  line-height: 2;
  padding-left: 18px;
}
.day-card button {
  margin: 5px;
}
.remaining {
  font-size: 14px;
  background: var(--light);
  border-radius: 8px;
  padding: 13px;
}
.swap-box {
  background: #edf1e7;
  border-radius: 9px;
  padding: 16px;
  margin: 15px 0;
}
.swap-box select {
  margin-bottom: 9px;
}
#distribution-fields {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.compare-panel h2 {
  font-size: 22px;
}
.education {
  padding-top: 45px;
  padding-bottom: 40px;
}
.article-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 25px;
  margin-top: 22px;
}
.article-grid article {
  border-top: 1px solid var(--line);
  padding-top: 13px;
}
.article-grid h2 {
  font-size: 17px;
  letter-spacing: -0.3px;
  line-height: 1.5;
}
.article-grid p {
  font-size: 11px;
  color: var(--muted);
}
.faq {
  display: grid;
  grid-template-columns: 0.4fr 1.6fr;
  gap: 45px;
  padding-top: 25px;
  padding-bottom: 45px;
}
.faq details {
  border-bottom: 1px solid var(--line);
  padding: 17px 0;
}
.faq summary {
  font-size: 12px;
  line-height: 1.8;
  font-weight: 600;
}
.faq p {
  font-size: 11px;
  color: var(--muted);
}
.sources {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  padding-bottom: 55px;
}
.sources > div {
  border-top: 1px solid var(--line);
  padding-top: 16px;
}
.sources h2 {
  font-size: 21px;
}
.sources p,
.sources a {
  font-size: 11px;
  color: var(--muted);
}
.sources a {
  display: block;
  margin-top: 10px;
}
.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid var(--line);
  padding-top: 26px;
  padding-bottom: 30px;
}
.footer nav {
  display: flex;
  gap: 23px;
  font-size: 10px;
}
.language-suggestion {
  font-size: 11px;
  background: var(--light);
  border-radius: 8px;
  padding: 10px;
}
.skip {
  position: absolute;
  top: -100px;
  left: 20px;
  background: #fff;
  padding: 15px;
  z-index: 10;
}
.skip:focus {
  top: 10px;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}
[hidden] {
  display: none !important;
}
#text-export textarea {
  min-height: 250px;
  margin: 20px 0;
}
@media (max-width: 1000px) {
  .shell {
    padding-left: 25px;
    padding-right: 25px;
  }
  .hero {
    grid-template-columns: 1fr 190px;
    gap: 20px;
  }
  .bowl-art {
    transform: scale(0.8);
    transform-origin: center right;
  }
  .app-grid {
    grid-template-columns: minmax(0, 1fr) 245px;
    gap: 18px;
  }
  .sticky-summary {
    padding: 19px;
  }
  .workspace-main > [role="tabpanel"],
  .compare-panel {
    padding: 22px;
  }
  .tabs button {
    padding: 13px 11px;
    font-size: 10px;
  }
  .article-grid {
    grid-template-columns: 1fr 1fr;
  }
  .three-fields {
    grid-template-columns: 1fr;
  }
  .recipe-grid {
    grid-template-columns: 1fr;
  }
  .imc-top {
    max-width: 250px;
    line-height: 1.6;
  }
}
@media (max-width: 720px) {
  .shell {
    padding-left: 20px;
    padding-right: 20px;
  }
  .header {
    height: 77px;
    gap: 12px;
  }
  .brand {
    font-size: 25px;
  }
  .imc-top {
    display: none;
  }
  .languages {
    margin-left: auto;
  }
  .hero {
    display: block;
    padding-top: 30px;
    padding-bottom: 25px;
  }
  .bowl-art {
    display: none;
  }
  h1 {
    font-size: 36px;
    letter-spacing: -1.4px;
  }
  .lead {
    font-size: 14px;
  }
  .badges {
    font-size: 9px;
    gap: 10px;
  }
  .tabs {
    margin-bottom: 8px;
  }
  .tabs button {
    flex: 0 0 auto;
    padding: 12px 14px;
    font-size: 11px;
  }
  .app-grid {
    display: flex;
    flex-direction: column;
  }
  .workspace-main,
  .side-panel {
    width: 100%;
  }
  .side-panel {
    order: 2;
  }
  .sticky-summary {
    position: static;
    padding: 24px;
  }
  .sticky-summary .nutrient-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .workspace-main > [role="tabpanel"],
  .compare-panel {
    padding: 21px 17px;
  }
  .filter-grid,
  .two-fields {
    gap: 12px;
  }
  .food-detail h2 {
    font-size: 23px;
  }
  .nutrient-grid dd {
    font-size: 17px;
  }
  .nutrient-grid dt {
    font-size: 8px;
  }
  .recipe-grid {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
  .editorial-card {
    padding: 14px;
  }
  .editorial-card h3 {
    font-size: 13px;
  }
  .editorial-card button {
    font-size: 10px;
  }
  .article-grid {
    gap: 23px;
  }
  .article-grid h2 {
    font-size: 15px;
  }
  .faq {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .sources {
    grid-template-columns: 1fr;
    gap: 25px;
  }
  .footer {
    flex-direction: column;
  }
  .footer nav {
    gap: 18px;
    flex-wrap: wrap;
    justify-content: center;
  }
  .action-row .primary {
    width: 100%;
  }
  .candidate-card {
    padding: 17px;
  }
  input:not([type="checkbox"]),
  select,
  textarea {
    font-size: 16px;
  }
  .item-controls select {
    font-size: 12px;
  }
  .food-option {
    font-size: 12px;
  }
  .education {
    padding-top: 35px;
  }
  .compare-panel .two-fields {
    grid-template-columns: 1fr;
  }
  #distribution-fields {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 380px) {
  .shell {
    padding-left: 15px;
    padding-right: 15px;
  }
  h1 {
    font-size: 32px;
  }
  .recipe-grid,
  .article-grid {
    grid-template-columns: 1fr;
  }
  .filter-grid {
    grid-template-columns: 1fr;
  }
  .two-fields {
    grid-template-columns: 1fr;
  }
  .nutrient-grid {
    gap: 12px 8px;
  }
  .nutrient-grid dd {
    font-size: 16px;
  }
}
@media print {
  body {
    background: #fff;
  }
  .header,
  .hero,
  .tabs,
  .side-panel,
  .education,
  .faq,
  .sources,
  .footer,
  .compare-panel,
  .action-row,
  .mini-actions,
  button,
  .filters,
  .search-head,
  .storage-panel {
    display: none !important;
  }
  .app-grid {
    display: block;
  }
  .workspace-main > [role="tabpanel"] {
    border: 0;
    padding: 0;
  }
  .source-detail {
    display: none;
  }
  .ingredient-row,
  .candidate-card,
  .day-card {
    break-inside: avoid;
  }
  .shell {
    max-width: none;
    padding: 0 15px;
  }
  .nutrition {
    break-inside: avoid;
  }
}
