/* MeasureFood expansion: familiar rounded surfaces, compact information rhythm. */
:root { --mf-ink: #183c2c; --mf-muted: #577061; --mf-line: #d8e9df; --mf-soft: #edf7f1; --mf-green: #148351; }
.mf-stack { display: grid; gap: 16px; }
.mf-card { border: 1px solid var(--mf-line); border-radius: 20px; background: #fcfefc; padding: 22px; color: var(--mf-ink); min-width: 0; }
.mf-card h2 { font-size: 18px; line-height: 1.3; margin: 0 0 12px; letter-spacing: -.025em; }
.mf-card h3 { font-size: 15px; margin: 8px 0; }
.mf-card p { line-height: 1.6; margin: 8px 0; font-size: 14px; }
.mf-card small, .mf-note { color: var(--mf-muted); font-size: 12px; line-height: 1.6; }
.mf-row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.mf-button { border: 1px solid #b9d9c9; border-radius: 12px; padding: 11px 15px; min-height: 44px; font: inherit; font-size: 13px; font-weight: 700; background: #e4f4eb; color: #12623c; cursor: pointer; }
.mf-button:hover { transform: translateY(-1px); }
.mf-button:disabled { opacity: .5; cursor: default; transform: none; }
.mf-button.mf-danger { background: #fbefeb; border-color: #e6c1b7; color: #9c3e29; }
.mf-button[aria-pressed="true"] { background: #167e50; color: #f3fcf7; border-color: #167e50; }
.mf-card label, .mf-form label { display: grid; gap: 7px; font-size: 13px; color: var(--mf-ink); margin: 12px 0; }
.mf-card input:not([type="checkbox"]), .mf-card textarea, .mf-form input, .mf-form textarea, .mf-form select { width: 100%; padding: 12px; border: 1px solid #abcab8; background: #fcfefc; border-radius: 11px; font: inherit; color: var(--mf-ink); min-height: 44px; }
.mf-card input[type="checkbox"] { accent-color: #167e50; width: 18px; height: 18px; }
.mf-card .mf-toggle { display: flex; flex-direction: row; align-items: center; justify-content: space-between; gap: 16px; padding: 7px 0; }
.mf-card details { border-top: 1px solid var(--mf-line); padding-top: 15px; margin-top: 14px; }
.mf-card summary { cursor: pointer; font-size: 14px; font-weight: 700; padding: 7px 0; }
.mf-track { background: #dfece4; height: 9px; border-radius: 10px; overflow: hidden; }
.mf-track > span { display: block; height: 100%; background: #278660; border-radius: inherit; }
.mf-message { padding: 12px 15px; background: #e8f3ed; border-radius: 12px; color: #245f44; font-size: 14px; }
.mf-error { background: #fbede9; color: #943f2f; }
.mf-empty { padding: 24px 0; color: var(--mf-muted); }
.mf-skeleton { height: 105px; border-radius: 16px; background: #e4eee8; margin-bottom: 15px; }
.mf-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 16px; }
.mf-stat { font-size: 30px; font-weight: 800; letter-spacing: -.035em; line-height: 1.2; margin: 15px 0; }
.mf-list-item { padding: 14px 0; border-bottom: 1px solid var(--mf-line); }
.mf-chart { display: flex; align-items: flex-end; gap: 10px; height: 145px; margin: 14px 0; }
.mf-chart-col { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: end; gap: 6px; height: 100%; font-size: 11px; }
.mf-chart-col i { display: block; width: min(28px, 90%); border-radius: 5px 5px 0 0; background: #378768; }
.mf-data { width: 100%; border-collapse: collapse; font-size: 13px; min-width: 0; }
.mf-data th, .mf-data td { padding: 10px 7px; text-align: left; border-bottom: 1px solid var(--mf-line); overflow-wrap: anywhere; }
.mf-data th { font-weight: 700; color: var(--mf-muted); font-size: 11px; }
.mf-dialog { width: min(500px, calc(100% - 30px)); max-height: 90dvh; overflow: auto; border: 1px solid var(--mf-line); border-radius: 22px; padding: 26px; background: #f8fcf9; color: var(--mf-ink); }
.mf-dialog::backdrop { background: rgba(18, 43, 30, .58); }
#page-wellbeing { padding: 22px; }
.mf-selectbox { flex: 0 0 auto; width: 20px; height: 20px; accent-color: #167e50; }
:is(.mf-button, .mf-card input, .mf-card textarea, .mf-card summary):focus-visible { outline: 3px solid #80b499; outline-offset: 3px; }
@media (min-width: 768px) { #page-wellbeing { margin-left: 220px; } }
@media (max-width: 767px) { .mf-grid { grid-template-columns: 1fr; } .mf-card { padding: 18px; } #page-wellbeing { padding-bottom: 100px; } }
@media (prefers-reduced-motion: reduce) { .mf-button:hover { transform: none; } }
