:root { color-scheme: light; font-family: system-ui, sans-serif; color: #19362c; background: #f4f7f3; line-height: 1.55; }
* { box-sizing: border-box; }
body { margin: 0; }
header, main { max-width: 1120px; margin: auto; padding: 24px; }
header { display: flex; align-items: center; gap: 18px; padding-top: 40px; }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 0; font-size: 2rem; letter-spacing: -.06rem; }
h2 { font-size: 1.3rem; }
h3 { font-size: 1.05rem; }
header p { margin-bottom: 0; color: #506557; }
.mark { font-size: 3rem; color: #23754c; }
section { border: 1px solid #dae4da; border-radius: 18px; padding: 26px; background: white; margin-bottom: 24px; }
.notice { border-left: 4px solid #b27b22; background: #fff9eb; padding: 16px 20px; border-radius: 6px; }
.columns { display: grid; grid-template-columns: 1.1fr 1fr; gap: 24px; }
.section-heading, .input-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.section-heading { justify-content: space-between; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 18px 0; }
.stats div { background: #edf5ee; padding: 20px; border-radius: 12px; }
.stats span, .stats strong { display: block; }
.stats strong { font-size: 1.5rem; margin-top: 8px; }
.muted, footer { color: #516157; font-size: .9rem; }
label { display: block; font-size: .92rem; font-weight: 600; margin: 12px 0 6px; }
input, select, button { font: inherit; border-radius: 8px; padding: 10px 12px; max-width: 100%; }
input, select { border: 1px solid #99ac9e; background: white; color: #19362c; }
input:not([type=checkbox]):not([type=file]), select { width: 100%; }
.input-row input { flex: 1; min-width: 140px; width: auto; }
button { background: #216342; color: white; border: 1px solid #216342; cursor: pointer; margin: 8px 0; }
button:hover { background: #164c31; }
button:disabled { opacity: .6; cursor: wait; }
button.secondary { background: white; color: #216342; }
a { color: #176139; overflow-wrap: anywhere; }
details { border-top: 1px solid #dce5dc; margin-top: 18px; padding-top: 16px; }
summary { cursor: pointer; font-weight: 650; margin-bottom: 12px; }
.check { font-weight: 400; display: flex; align-items: baseline; gap: 10px; }
.check input { flex-shrink: 0; }
.fields { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
#status:not(:empty) { background: #e7f0f4; padding: 14px; border-radius: 8px; }
.result { width: 100%; text-align: left; color: #19362c; background: #f4f7f3; border: 1px solid #dce5dc; }
.result:hover { background: #e4eee4; }
.result small { display: block; }
.meal-list { padding: 0; list-style: none; }
.meal-list li { padding: 14px 0; border-bottom: 1px solid #dce5dc; }
.meal-list strong, .meal-list span { display: block; }
.meal-list button { font-size: .85rem; padding: 5px 10px; margin-left: 12px; }
#portion-form { background: #f1f6f0; padding: 18px; margin-top: 16px; border-radius: 12px; }
:focus-visible { outline: 3px solid #bc7d16; outline-offset: 3px; }
[hidden] { display: none !important; }
@media (max-width: 740px) {
  header, main { padding: 16px; }
  .columns, .fields { grid-template-columns: 1fr; gap: 0; }
  section { padding: 18px; }
  .stats { gap: 8px; }
  .stats div { padding: 10px; }
  .stats strong { font-size: 1.1rem; }
}
