:root{font-family:Inter,Segoe UI,system-ui,sans-serif;line-height:1.4;font-weight:400;color:var(--tg-theme-text-color, #0f172a);background:var(--tg-theme-bg-color, #f5f7fb);text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased}*{box-sizing:border-box}body{margin:0;background:var(--tg-theme-bg-color, #f5f7fb)}#root{min-height:100vh}.app{max-width:920px;margin:0 auto;padding:24px 16px 40px;display:flex;flex-direction:column;gap:20px}.header{display:flex;justify-content:space-between;align-items:flex-start;gap:16px}.header h1{margin:0 0 4px;font-size:28px}.subtitle{margin:0;color:var(--tg-theme-hint-color, #64748b)}.user{text-align:right;font-size:13px;color:var(--tg-theme-hint-color, #64748b)}.user-name{font-weight:600;color:var(--tg-theme-text-color, #0f172a)}.panel{display:flex;justify-content:space-between;align-items:center;gap:12px}.status{font-size:13px;color:var(--tg-theme-hint-color, #64748b)}.card{background:var(--tg-theme-secondary-bg-color, #ffffff);border-radius:16px;padding:20px;box-shadow:0 8px 30px #0f172a14}.summary h2,.card h2{margin:0 0 16px;font-size:18px}.summary-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(120px,1fr));gap:12px}.summary-value{font-size:24px;font-weight:600}.summary-label{color:var(--tg-theme-hint-color, #64748b);font-size:13px}.form{display:grid;gap:12px}.field{display:flex;flex-direction:column;gap:6px;font-size:13px;color:var(--tg-theme-hint-color, #64748b)}.field input{border-radius:10px;border:1px solid rgba(148,163,184,.4);padding:10px 12px;font-size:14px;background:transparent;color:var(--tg-theme-text-color, #0f172a)}.macro-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(120px,1fr));gap:12px}button{border:none;border-radius:10px;padding:12px 16px;background:var(--tg-theme-button-color, #2563eb);color:var(--tg-theme-button-text-color, #ffffff);font-weight:600;cursor:pointer}.entries{display:flex;flex-direction:column;gap:12px}.entry{display:flex;justify-content:space-between;align-items:center;padding:12px 14px;border-radius:12px;background:#94a3b81f}.entry-name{font-weight:600}.entry-meta{font-size:12px;color:var(--tg-theme-hint-color, #64748b)}.entry-calories{font-weight:600}.empty{color:var(--tg-theme-hint-color, #64748b)}@media(max-width:600px){.header,.panel{flex-direction:column;align-items:flex-start}}
