:root {
  color-scheme: light;
  --ink: #191a34;
  --muted: #5b5b67;
  --line: #dcd9d2;
  --paper: #f7f6f2;
  --gold: #cbaa78;
  --navy: #181938;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select {
  font: inherit;
}
button,
summary,
input[type="checkbox"],
select {
  cursor: pointer;
}
button,
a,
input,
select,
summary {
  touch-action: manipulation;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
summary:focus-visible {
  outline: 3px solid #996f32;
  outline-offset: 3px;
}
.wrap {
  width: min(1170px, calc(100% - 64px));
  margin: auto;
}
.planner-footer { padding-block: 1.25rem; border-top: 1px solid var(--line); }
.planner-footer-links { display: flex; flex-wrap: wrap; gap: .7rem 1.1rem; }
.planner-footer-links a { color: var(--muted); font-size: .85rem; text-underline-offset: 3px; }
.mast {
  background: var(--navy);
  color: white;
}
.mast-inner,
.heading,
.shop-head,
.dialog-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.mast-inner {
  height: 64px;
}
.mast-inner > span {
  font-size: 0.84rem;
  color: #dddbe1;
  margin-inline-end: auto;
}
@media (max-width: 31rem) {
  .mast-inner > span { display: none; }
}
.brand {
  color: #fff;
  text-decoration: none;
  font-weight: 750;
  letter-spacing: 0.12em;
}
.brand b {
  color: #dec59c;
}
.heading {
  margin: 44px 0 28px;
}
.heading p,
.small,
#goal,
#recipe-info,
.footnote,
.shop-head p {
  color: var(--muted);
  line-height: 1.5;
}
.heading p {
  margin: 0.5rem 0 0;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1,
.summary h2,
.shop-head h2,
dialog h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
  letter-spacing: -0.035em;
}
h1 {
  font-size: clamp(2.55rem, 5vw, 4.65rem);
  line-height: 1.02;
  margin: 0;
}
h2 {
  font-size: 1.25rem;
}
button {
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 9px 15px;
  color: var(--ink);
  background: transparent;
  font-weight: 600;
}
.light,
.meal-actions button,
#close-dialog {
  border-color: var(--line);
  background: white;
}
.light:hover,
.meal-actions button:hover,
#close-dialog:hover {
  border-color: var(--ink);
}
.layout {
  display: grid;
  grid-template-columns: minmax(225px, 288px) minmax(0, 1fr);
  gap: 30px;
  align-items: start;
  margin-bottom: 48px;
}
aside,
.workspace {
  min-width: 0;
}
aside {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 22px;
}
aside h2 {
  margin: 0 0 3px;
}
.small {
  font-size: 0.87rem;
}
.fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}
form label {
  display: block;
  font-size: 0.84rem;
  font-weight: 600;
  margin: 12px 0;
}
form input[type="number"],
form input[type="text"],
select {
  width: 100%;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 10px;
  margin-top: 6px;
  color: var(--ink);
  min-width: 0;
}
.primary {
  width: 100%;
  background: var(--navy);
  color: white;
  margin: 12px 0 0;
  padding: 13px;
}
.primary:hover {
  background: #303154;
}
.filters {
  border-block: 1px solid var(--line);
  margin: 18px 0 5px;
  padding: 12px 0;
  font-size: 0.86rem;
}
.filters summary {
  font-weight: 650;
}
.filters label,
.check {
  display: flex;
  align-items: center;
  gap: 8px;
}
.filters label {
  font-weight: 400;
  margin: 8px 0;
}
.filters input,
.check input {
  accent-color: var(--navy);
  width: 17px;
  height: 17px;
  flex-shrink: 0;
}
.filter-list {
  max-height: 220px;
  overflow: auto;
}
.include-catalogue { margin-block: .65rem; }
.custom-food { padding-block-start: .75rem; border-top: 1px solid var(--line); }
.custom-food h3 { margin: 0; font-size: .9rem; }
.custom-food .light { min-height: 44px; }
.footnote {
  margin: 12px 0 0;
  font-size: 0.78rem;
}
.tabs {
  display: flex;
  border-bottom: 1px solid var(--line);
  gap: 22px;
}
.tabs button {
  padding: 0 0 12px;
  border-radius: 0;
  color: var(--muted);
  border: 0;
  border-bottom: 3px solid transparent;
}
.tabs button[aria-pressed="true"] {
  border-color: var(--ink);
  color: var(--ink);
}
#account-link[hidden], #account-actions[hidden] {
  display: none;
}
.coaching-offer:not([hidden]) {
  margin: 12px 0 16px;
  padding: 12px;
  border: 1px solid #6b5736;
  border-radius: 10px;
  background: radial-gradient(ellipse at top right, #3a2d18, #181510 70%);
  color: #f9f4e9;
}
.coaching-offer h2 {
  margin: 0 0 8px;
  font-size: 1rem;
}
.coaching-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.coaching-actions a {
  position: relative;
  display: grid;
  align-content: center;
  gap: 3px;
  min-height: 60px;
  padding: 8px 28px 8px 10px;
  border: 1px solid #705b36;
  border-radius: 6px;
  color: #f9f4e9;
  font-size: .87rem;
  text-decoration: none;
}
.coaching-actions a::after {
  content: '→' / '';
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: #f0d79d;
}
.coaching-actions a > span { color: #f0d79d; font-size: .79rem; }
.coaching-actions a:hover { background: #342b1e; border-color: #e4c889; }
.coaching-offer .coaching-secondary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  color: #f0d79d;
  font-size: .83rem;
  text-underline-offset: 3px;
}
@media (max-width: 700px) {
  .coaching-actions { grid-template-columns: 1fr; }
}
#account-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  margin: 12px 0;
}
#account-status {
  margin: 0;
  overflow-wrap: anywhere;
}
#account-status:empty {
  display: none;
}
#account-status a {
  color: var(--gold-light, #d4af37);
}
#save-account:disabled {
  opacity: .55;
  cursor: not-allowed;
}
#notice,
#include-note {
  margin: 10px 0;
  font-size: 0.9rem;
  color: #70451b;
  line-height: 1.4;
}
#notice:empty {
  margin: 0;
}
.days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 5px;
  margin: 16px 0;
}
.days button {
  display: grid;
  place-content: center;
  gap: 3px;
  padding: 7px 2px;
  color: var(--muted);
  font-size: 0.78rem;
}
.days button b {
  font-size: 1.08rem;
  color: var(--ink);
}
.days button[aria-pressed="true"] {
  border-color: var(--ink);
  background: #fff;
  color: var(--ink);
}
.summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 23px 25px;
  border-radius: 14px;
  background: var(--navy);
  color: #fff;
  margin-bottom: 13px;
}
.summary #day-label {
  color: #e4ceb0;
  font-size: 0.9rem;
}
.summary[hidden] {
  display: none;
}
.summary h2 {
  margin: 4px 0;
  font-size: 2.35rem;
  line-height: 1;
}
.summary #goal {
  margin: 0;
  color: #e1dfe7;
  font-size: 0.8rem;
}
.macros {
  display: flex;
  gap: 16px;
}
.macros div {
  display: grid;
  gap: 4px;
}
.macros strong {
  font-size: 1.12rem;
}
.macros span {
  font-size: 0.78rem;
  color: #e1dfe7;
}
.meal {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 15px;
  background: white;
  border: 1px solid var(--line);
  padding: 17px 20px;
  border-radius: 12px;
  margin: 8px 0;
}
.meal h3 {
  font-size: 1.09rem;
  margin: 4px 0 5px;
}
.meal-content {
  display: flex;
  align-items: center;
  gap: clamp(9px, 2vw, 15px);
  min-width: 0;
  overflow-wrap: anywhere;
}
.meal-thumb,
.recipe-photo {
  display: block;
  object-fit: cover;
  border: 1px solid var(--gold-edge);
  border-radius: 9px;
}
.meal-thumb {
  flex: none;
  width: clamp(50px, 8vw, 82px);
  aspect-ratio: 1;
}
.recipe-photo {
  width: min(100%, 340px);
  width: min(100%, 340px, 48vh);
  width: min(100%, 340px, 48svh);
  height: auto;
  aspect-ratio: 1;
  margin: 12px auto;
}
.meta,
.label-mini {
  font-size: 0.82rem;
  color: var(--muted);
}
.label-mini {
  font-weight: 700;
  color: #705431;
}
.meal-actions {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
}
.meal-actions button {
  font-size: 0.78rem;
  padding: 8px 10px;
}
.shop-head {
  margin: 20px 0 14px;
}
.shop-head h2 {
  font-size: 2rem;
  margin: 0;
}
.shop-head p {
  margin: 4px 0;
}
.g-group {
  margin: 10px 0 18px;
}
.g-group h3 {
  font-size: 1rem;
  margin: 0 0 6px;
}
.check {
  border-bottom: 1px solid var(--line);
  padding: 9px 2px;
  font-size: 0.9rem;
}
.check span {
  flex: 1;
}
.check:has(input:checked) span {
  color: var(--muted);
  text-decoration: line-through;
}
.check:has(input:checked) {
  background: #d5a95b14;
}
.check b {
  font-weight: 600;
}
#shop-progress {
  color: var(--gold-light);
  font-weight: 650;
}
.share-status:empty {
  margin: 0;
}
.share-status:not(:empty) {
  margin: 8px 0;
  color: var(--gold-light);
}
.action-with-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.button-icon {
  width: 1.15em;
  height: 1.15em;
  flex: none;
}
.dialog-head span {
  color: #705431;
  font-weight: 650;
}
dialog {
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 26px;
  max-width: min(520px, calc(100% - 30px));
  width: 100%;
  max-height: 85vh;
  overflow: auto;
}
dialog:not([open]) {
  display: none;
}
body.recipe-dialog-fallback {
  overflow: hidden;
}
.recipe-dialog-fallback dialog[open] {
  display: block;
  position: fixed;
  top: 50%;
  left: 50%;
  margin: 0;
  transform: translate(-50%, -50%);
  z-index: 100;
  box-shadow: 0 0 0 100vmax #16162dcc;
}
dialog::backdrop {
  background: #16162d99;
}
dialog h2 {
  font-size: 2rem;
  margin: 18px 0 8px;
}
dialog h3 {
  font-size: 1.03rem;
  margin: 20px 0 6px;
}
dialog li {
  padding: 3px 0;
  line-height: 1.45;
}
dialog ul,
dialog ol {
  padding-left: 22px;
  margin: 6px 0;
}
.dialog-head button {
  font-size: 0.83rem;
}
.empty {
  color: var(--muted);
  margin: 20px 0;
}
#print-week {
  display: none;
}
@media (max-width: 880px) {
  .wrap {
    width: min(100% - 32px, 1170px);
  }
  .layout {
    gap: 15px;
    grid-template-columns: 220px minmax(0, 1fr);
  }
  aside {
    padding: 15px;
  }
  .meal {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .summary {
    padding: 18px;
  }
  .macros {
    gap: 10px;
  }
}
@media (max-width: 650px) {
  .wrap {
    width: calc(100% - 28px);
  }
  .mast-inner {
    height: 51px;
  }
  .mast-inner > span {
    font-size: 0.73rem;
  }
  .heading {
    margin: 24px 0 17px;
    align-items: start;
  }
  .heading .light {
    padding: 8px;
    font-size: 0.76rem;
  }
  .layout {
    display: flex;
    flex-direction: column;
  }
  .workspace,
  aside {
    width: 100%;
  }
  .summary {
    gap: 10px;
  }
  .summary h2 {
    font-size: 1.85rem;
  }
  .macros {
    gap: 8px;
  }
  .macros strong {
    font-size: 0.88rem;
  }
  .macros span {
    font-size: 0.68rem;
  }
  aside {
    padding: 14px;
  }
  form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 10px;
  }
  form h2,
  form > p,
  .fields,
  .filters,
  form button {
    grid-column: 1/-1;
  }
  .fields {
    gap: 10px;
  }
  form label {
    margin: 5px 0;
  }
  .filters {
    margin: 7px 0 0;
  }
  .primary {
    margin-top: 8px;
  }
  .footnote {
    margin-top: 6px;
  }
  .days {
    margin: 12px 0;
  }
  .shop-head {
    align-items: start;
  }
  .shop-head h2 {
    font-size: 1.6rem;
  }
  .shop-head button {
    font-size: 0.78rem;
  }
  .meal {
    padding: 13px;
  }
}
@media print {
  body {
    background: white;
    color: black;
  }
  .mast,
  .planner-footer,
  .heading,
  .layout,
  dialog,
  noscript {
    display: none !important;
  }
  .wrap {
    width: 100%;
  }
  #print-week {
    display: block;
  }
  #print-week h2 {
    margin: 12px 0 3px;
  }
  #print-week ul {
    margin-top: 0;
  }
  #print-week section {
    break-inside: avoid;
  }
  #print-week .print-shopping {
    break-before: page;
    break-inside: auto;
  }
  #print-week.shopping-only > :not(.print-shopping) {
    display: none;
  }
  #print-week.shopping-only .print-shopping {
    break-before: auto;
  }
  .print-shopping-groups {
    column-count: 2;
    column-gap: 10mm;
    font-size: 10pt;
  }
  .print-shopping-groups section {
    margin: 0 0 3mm;
  }
  .print-shopping-groups h3 {
    margin: 0 0 1mm;
    font-size: 11pt;
  }
  .print-shopping-groups ul {
    margin: 0;
    padding: 0;
    list-style: none;
  }
  .print-shopping-groups li {
    margin-bottom: 1mm;
  }
  .print-shopping-groups li::before {
    display: inline-block;
    width: 2.5mm;
    height: 2.5mm;
    margin-right: 2mm;
    border: 1px solid black;
    content: "";
  }
  .print-shopping-groups li.bought::before {
    content: "✓";
    line-height: 2.5mm;
    text-align: center;
  }
}
.settings-summary {
  display: none;
}
@media (max-width: 650px) {
  .settings-summary {
    display: list-item;
    font-weight: 650;
  }
  .settings-summary + form h2 {
    display: none;
  }
  #settings-panel[open] > .settings-summary {
    margin-bottom: 10px;
  }
}

@font-face {
  font-family: Inter;
  src: url(inter-latin.woff2) format("woff2");
  font-weight: 400 600;
  font-display: swap;
}
@font-face {
  font-family: Inter;
  src: url(inter-cyrillic.woff2) format("woff2");
  font-weight: 400 600;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Tenor Sans";
  src: url(tenor-sans-latin.woff2) format("woff2");
  font-display: swap;
}
@font-face {
  font-family: "Tenor Sans";
  src: url(tenor-sans-cyrillic.woff2) format("woff2");
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
:root {
  color-scheme: dark;
  --ink: #f4f1eb;
  --muted: #bcb9b3;
  --line: #35332c;
  --paper: #0c0c0c;
  --panel: #161513;
  --gold: #d4af37;
  --gold-light: #ffe6ad;
  --gold-edge: #6a542f;
  --gold-metal: linear-gradient(113deg, #ba9454 0%, #e6c680 25%, #fff0c3 43%, #d6ad65 66%, #b58a49 100%);
}
.mast {
  background: linear-gradient(100deg, #141411, var(--paper) 65%);
  border-bottom: 1px solid #51432b;
}
.brand img {
  display: block;
  width: 165px;
  max-height: 42px;
  object-fit: contain;
  object-position: left;
}
.heading {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  align-items: center;
  min-height: clamp(330px, 35vw, 465px);
  padding: clamp(32px, 6vw, 80px);
  margin-top: 26px;
  border: 1px solid var(--gold-edge);
  border-radius: 22px;
  background: #12100d;
  box-shadow: 0 22px 52px #0006;
}
.heading::before, .hero-photo {
  position: absolute;
  inset: 0;
  height: 100%;
}
.heading::before {
  content: "";
  z-index: -1;
  background: linear-gradient(90deg, #11100e 12%, #11100e 39%, #11100ed6 49%, #11100e5e 60%, transparent 80%),
    linear-gradient(0deg, #0c0c0cbd, transparent 32%);
}
.heading::after {
  content: "";
  position: absolute;
  z-index: -1;
  pointer-events: none;
  inset: 12px;
  border: 1px solid #f9d89738;
  border-radius: 14px;
}
.hero-photo {
  z-index: -2;
  left: auto;
  width: 63%;
  object-fit: cover;
  object-position: 50% 55%;
}
.hero-copy {
  max-width: 560px;
}
.hero-copy h1 {
  max-width: 6.6em;
  font-size: clamp(3.65rem, 7.3vw, 6rem);
  line-height: 0.97;
}
.hero-copy em {
  display: block;
  width: fit-content;
  color: var(--gold-light);
  font-style: normal;
  padding-bottom: 0.08em;
}
@supports ((background-clip: text) or (-webkit-background-clip: text)) {
  .hero-copy em {
    background-image: var(--gold-metal);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
  }
}
.hero-copy p {
  max-width: 330px;
  margin-top: 15px;
  color: #e1dad0;
}
.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}
.hero-actions button {
  width: auto;
  margin: 0;
}
.hero-actions .light {
  background: #171512;
  border-color: var(--gold-edge);
}
.hero-example {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--gold-light);
  text-underline-offset: 3px;
  font-size: 0.92rem;
}
.hero-example-family {
  gap: 6px;
  max-width: 100%;
}
.hero-example-family .button-icon {
  color: #d4af37;
}
.planner-guide {
  margin: 16px 0;
  padding: 14px 18px;
  border: 1px solid var(--gold-edge);
  border-radius: 12px;
  background: #181511;
}
.planner-guide h2 {
  margin: 0 0 8px;
  font-size: 1.15rem;
}
.planner-guide ol {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px 30px;
  padding-inline-start: 22px;
  margin: 0;
  font-size: 0.85rem;
  color: var(--muted);
}
.planner-guide li::marker {
  color: var(--gold-light);
}
@media (max-width: 740px) {
  .planner-guide ol {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 430px) {
  .planner-guide ol {
    grid-template-columns: 1fr;
  }
  .shop-actions {
    justify-content: start;
  }
}
@media print {
  .planner-guide {
    display: none;
  }
}
#week-title {
  margin: 12px 0 0;
}
h1, h2, .summary h2, .shop-head h2, dialog h2 {
  font-family: "Tenor Sans", Georgia, serif;
  font-weight: 400;
  letter-spacing: -0.035em;
}
aside, .workspace, .meal, dialog, .light, .meal-actions button, #close-dialog {
  background: var(--panel);
  color: var(--ink);
}
.primary, .days button[aria-pressed="true"] {
  color: #17110a;
  background: var(--gold-metal);
  border-color: #e7c17c;
  box-shadow: inset 0 1px 0 #ffedbb, inset 0 -1px 0 #886222;
}
.primary:hover {
  color: #17110a;
  background: linear-gradient(113deg, #d2ac69, #fff0c3 38%, #e1bb74 70%, #c49c5b);
  border-color: #ffe6ad;
}
.layout > aside, .workspace {
  background: linear-gradient(154deg, #191816, #10100f 62%);
  border: 1px solid var(--line);
  border-radius: 16px;
}
.workspace {
  padding: clamp(14px, 2.1vw, 26px);
}
.tabs button[aria-pressed="true"] {
  color: var(--gold-light);
  background: #251e13;
  border-color: var(--gold-edge);
}
#notice,
#include-note {
  color: #e7cd86;
}
.summary {
  background: radial-gradient(ellipse at top left, #352719, #191613 70%);
  border: 1px solid var(--gold-edge);
}
.summary #day-label, .label-mini, .dialog-head span {
  color: #e4c686;
}
.summary #day-label {
  display: block;
  width: fit-content;
  border-bottom: 1px solid #896733;
  padding: 0 0 4px;
  margin: 0 0 9px;
}
.macros {
  font-variant-numeric: tabular-nums;
  align-items: start;
}
.macros strong {
  white-space: nowrap;
}
.days button {
  min-height: 44px;
  border-color: var(--line);
}
.days button:not([aria-pressed="true"]):hover {
  background: #1e1b15;
  color: var(--ink);
  border-color: var(--gold-edge);
}
.meal {
  position: relative;
  overflow: hidden;
  background: linear-gradient(108deg, #221e17, #171614 47%, #121211);
  padding-left: 24px;
}
.meal::before {
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  content: "";
  background: linear-gradient(#8c6738, #e3be76 30%, #72532b 85%);
}
.meal h3 {
  color: var(--ink);
  line-height: 1.28;
}
.meal-actions button:first-child {
  color: var(--gold-light);
  border-color: var(--gold-edge);
  background: #261e13;
}
.meal-actions button:first-child:hover, #calculate-goals:hover, [data-member-calculate]:hover {
  border-color: #ecc988;
}
.meal-actions button, .tabs button, .light, .check {
  min-height: 44px;
}
.filters input, .check input {
  accent-color: var(--gold);
}
.prep-options {
  grid-column: 1 / -1;
  display: grid;
  gap: 7px;
}
.prep-options legend {
  margin-bottom: 8px;
  color: var(--ink);
  font-weight: 600;
}
.prep-scope {
  margin: 2px 0 0;
}
#settings .prep-option {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  min-height: 44px;
  padding: 11px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #121211;
  cursor: pointer;
}
#settings .prep-option:has(input:checked) {
  border-color: var(--gold-edge);
  background: #221b12;
}
#settings .prep-option:has(input:focus-visible) {
  outline: 2px solid var(--gold-light);
  outline-offset: 2px;
}
#variety-note {
  color: var(--gold-light);
}
.prep-option input {
  accent-color: var(--gold);
  margin: 2px 0 0;
  width: 17px;
  height: 17px;
  flex: none;
}
.prep-option small {
  display: block;
  color: var(--muted);
  margin-top: 3px;
  font-weight: 400;
}
.prep-note, #recipe-batch-note {
  color: var(--gold-light);
}
.prep-note {
  margin: 6px 0 0;
  font-size: .82rem;
}
.time-note {
  margin: 4px 0 0;
}
#kitchen-time {
  color: var(--muted);
  font-size: 0.78rem;
  margin: 6px 0 0;
}
form fieldset {
  border: 0;
  padding: 0;
  margin: 0;
  min-width: 0;
}
.training-picker {
  margin-top: 14px;
}
.training-picker legend {
  color: var(--gold-light);
  font-size: 0.84rem;
}
.training-days {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 4px;
}
form .training-days label {
  display: grid;
  place-items: center;
  gap: 5px;
  padding: 6px 0;
  min-height: 42px;
  cursor: pointer;
}
.training-days input,
#keep-schedule-label input,
[data-member-keep] input {
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: var(--gold);
}
.training-days :checked + span {
  color: var(--gold-light);
  font-weight: 700;
}
#keep-schedule-label:not([hidden]),
[data-member-keep]:not([hidden]) {
  display: grid;
  grid-template-columns: 16px minmax(0, 1fr);
  align-items: start;
  gap: 10px;
  min-height: 44px;
  padding-block: 8px;
  line-height: 1.4;
  cursor: pointer;
}
#keep-schedule-label input,
[data-member-keep] input {
  margin-top: 2px;
}
#auto-settings > p {
  margin-bottom: 0;
}
.mode-options {
  margin-top: 12px;
}
.mode-options legend {
  color: var(--muted);
  font-size: 0.83rem;
}
.mode-options label {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 28px;
  margin: 4px 0;
}
.mode-options input {
  accent-color: var(--gold);
  margin: 0;
  width: 16px;
  height: 16px;
}
#calculate-goals, [data-member-calculate] {
  width: 100%;
  color: var(--gold-light);
  border-color: var(--gold-edge);
  background: #241c11;
}
#profile-message:not(:empty), [data-member-status]:not(:empty) {
  color: #e7cd86;
  margin-top: 9px;
}
[data-member-status]:empty {
  margin: 0;
}
#household-settings {
  margin-top: 18px;
}
#household-settings > legend {
  color: var(--gold-light);
  font-weight: 600;
}
#household-settings > p {
  margin: 7px 0 12px;
}
.household-member {
  min-width: 0;
  margin-bottom: 8px;
  border: 1px solid var(--gold-edge);
  border-radius: 12px;
  background: #1d1914;
}
.household-member > summary {
  min-height: 44px;
  padding: 11px 12px;
  cursor: pointer;
  color: var(--gold-light);
  overflow-wrap: anywhere;
}
.household-member > summary .small {
  white-space: nowrap;
  margin-inline-start: 8px;
}
.household-member-body {
  padding: 0 12px 12px;
}
.household-member-body > .fields {
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
}
.household-member-body > .fields input,
.household-member-body > .fields select {
  min-height: 44px;
}
.household-member [data-member-child] p {
  margin: 5px 0 10px;
}
.household-actions, .shop-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
}
.shop-actions {
  justify-content: end;
}
.household-actions button, .household-remove, .shop-actions button {
  min-height: 44px;
  width: auto;
  margin: 0;
}
.household-actions button:disabled {
  opacity: 0.55;
  cursor: default;
}
#family-overview:not([hidden]) {
  margin: 14px 0;
}
#family-overview .meal {
  min-width: 0;
}
#recipe-ingredient-breakdown {
  margin-top: 10px;
  color: var(--muted);
}
#recipe-ingredients li + li {
  margin-top: 12px;
}
#recipe-ingredients .swap-actions {
  margin-top: 5px;
}
.swap-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.swap-actions button {
  min-height: 44px;
  max-width: 100%;
  white-space: normal;
  overflow-wrap: anywhere;
}
.swap-original {
  display: block;
  overflow-wrap: anywhere;
}
#recipe-swap-form {
  padding: 14px;
  margin: 16px 0;
  border: 1px solid var(--gold-edge);
  border-radius: 8px;
}
#recipe-swap-form:not([hidden]) {
  display: block;
}
.swap-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 10px;
}
.swap-heading span {
  color: var(--gold-light);
}
#recipe-swap-form h4 {
  margin: 0;
  overflow-wrap: anywhere;
}
#recipe-swap-form legend {
  padding: 0;
}
#recipe-swap-form input[type="text"],
#recipe-swap-form select {
  width: 100%;
}
#recipe-swap-form .check {
  display: flex;
  align-items: center;
}
#swap-error,
#recipe-swap-status,
#recipe-swap-prep {
  color: var(--gold-light);
  overflow-wrap: anywhere;
}
#swap-error:empty,
#recipe-swap-status:empty {
  display: none;
}
#recipe-ingredient-breakdown summary {
  min-height: 44px;
  cursor: pointer;
  color: var(--gold-light);
}
.person-switcher:not([hidden]) {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0;
}
.person-switcher button {
  min-height: 44px;
  padding: 6px 12px;
  border-color: var(--line);
  color: var(--ink);
}
.person-switcher button[aria-pressed="true"] {
  border-color: var(--gold-edge);
  color: var(--gold-light);
  background: #251e13;
}
#recipe-portion-calculator {
  margin: 16px 0;
  padding: 14px;
  border: 1px solid var(--gold-edge);
  border-radius: 12px;
}
#recipe-portion-calculator h3 {
  margin-top: 0;
}
#recipe-portion-calculator input {
  display: block;
  max-width: 190px;
  margin-top: 6px;
}
#recipe-portion-results {
  margin: 8px 0;
}
#recipe-portion-results div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 5px 0;
}
#recipe-portion-results dd {
  margin: 0;
  color: var(--gold-light);
  font-weight: 700;
  white-space: nowrap;
}
#recipe-portion-error:empty {
  display: none;
}
.goal-preview {
  background: linear-gradient(146deg, #2b2115, #1a1712 76%);
  border: 1px solid var(--gold-edge);
  border-radius: 12px;
  margin-top: 12px;
  padding: 12px;
}
.goal-preview h3 {
  margin: 0;
  font-size: 0.92rem;
}
.goal-preview dl {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin: 8px 0 0;
}
.goal-preview dt {
  color: var(--muted);
  font-size: 0.78rem;
}
.goal-preview dd {
  margin: 2px 0 0;
  font-weight: 600;
}
.goal-preview p {
  margin: 8px 0 0;
}
#build-week:disabled {
  cursor: default;
  opacity: 0.5;
}
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible {
  outline-color: var(--gold-light);
}
@media (max-width: 650px) {
  .brand img {
    width: 145px;
  }
  #settings > label,
  #settings > fieldset {
    grid-column: 1 / -1;
  }
  .heading {
    min-height: 0;
    padding: clamp(154px, 48vw, 260px) 22px 27px;
    margin-top: 16px;
  }
  .heading::before {
    background: linear-gradient(180deg, #0c0c0c23 8%, transparent 20%, #11100e96 39%, #11100e 57%);
  }
  .heading::after {
    inset: 7px;
  }
  .hero-photo {
    width: 100%;
    height: clamp(218px, 64vw, 370px);
    object-position: 50% 46%;
  }
  .hero-copy h1 {
    max-width: 8em;
    font-size: clamp(2.9rem, 11vw, 4.5rem);
  }
  .hero-copy p {
    max-width: 265px;
    font-size: 0.9rem;
  }
  .hero-actions {
    margin-top: 17px;
  }
  .hero-actions button {
    max-width: 100%;
  }
  .meal {
    padding-left: 16px;
  }
}
@media (max-width: 500px) {
  .summary {
    display: grid;
    gap: 14px;
  }
  .macros {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
  }
}
@media print {
  :root {
    color-scheme: light;
    background: white;
  }
}
