:root{--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light dark;--bg:#f7f7f5;--surface:#fff;--border:#e2e2df;--text:#1c1c1a;--muted:#6b6b66;--accent:#2f6f4f;--accent-text:#fff;--danger:#b3261e}@media (prefers-color-scheme:dark){:root{--lightningcss-light: ;--lightningcss-dark:initial;--bg:#16171a;--surface:#1f2023;--border:#303236;--text:#ececea;--muted:#9a9a97;--accent:#4caf7d;--accent-text:#0c0c0c;--danger:#ff6b60}}*{box-sizing:border-box}body{background:var(--bg);color:var(--text);margin:0;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica,Arial,sans-serif}button,input,select{font:inherit;color:inherit}#root{min-height:100svh}h1,h2,h3,p{margin:0}.app{flex-direction:column;max-width:480px;min-height:100svh;margin:0 auto;display:flex}.app__header{padding:20px 16px 0}.app__header h1{font-size:22px;font-weight:600}.app__main{flex:1;padding:16px}.muted{color:var(--muted);font-size:14px}.error-text{color:var(--danger);font-size:14px}.success-text{color:var(--accent);font-size:14px}.tab-nav{border-bottom:1px solid var(--border);gap:4px;margin-top:14px;display:flex}.tab-nav__btn{color:var(--muted);cursor:pointer;background:0 0;border:none;border-bottom:2px solid #0000;padding:10px 14px;font-size:15px;font-weight:500}.tab-nav__btn--active{color:var(--text);border-bottom-color:var(--accent)}.primary-btn{background:var(--accent);color:var(--accent-text);cursor:pointer;border:none;border-radius:8px;padding:10px 16px;font-size:15px;font-weight:600}.primary-btn:disabled{opacity:.6;cursor:default}.date-nav{justify-content:space-between;align-items:center;gap:8px;margin-bottom:16px;display:flex}.date-nav__arrow{background:var(--surface);border:1px solid var(--border);cursor:pointer;border-radius:8px;width:36px;height:36px;font-size:18px}.date-nav__current{flex:1;justify-content:center;align-items:center;gap:8px;display:flex;position:relative}.date-nav__current input[type=date]{opacity:0;cursor:pointer;position:absolute;inset:0}.date-nav__label{pointer-events:none;font-size:15px;font-weight:600}.date-nav__today{border:1px solid var(--border);cursor:pointer;z-index:1;background:0 0;border-radius:6px;padding:3px 8px;font-size:12px}.totals-bar{background:var(--surface);border:1px solid var(--border);border-radius:12px;flex-wrap:wrap;justify-content:space-between;row-gap:12px;margin-bottom:20px;padding:14px 8px;display:flex}.totals-bar__item{flex-direction:column;flex:1 0 22%;align-items:center;gap:2px;display:flex}.totals-bar__value{font-size:18px;font-weight:700}.totals-bar__label{color:var(--muted);font-size:12px}.meal-section{margin-bottom:20px}.meal-section__header{justify-content:space-between;align-items:baseline;margin-bottom:8px;display:flex}.meal-section__header h3{font-size:16px;font-weight:600}.entry-list{flex-direction:column;gap:6px;margin:0;padding:0;list-style:none;display:flex}.entry-row{background:var(--surface);border:1px solid var(--border);border-radius:10px;align-items:center;gap:10px;padding:10px 12px;display:flex}.entry-row__main{flex-direction:column;flex:1;min-width:0;display:flex}.entry-row__name{white-space:nowrap;text-overflow:ellipsis;font-size:14px;font-weight:500;overflow:hidden}.entry-row__meta{color:var(--muted);font-size:12px}.entry-row__macros{color:var(--muted);white-space:nowrap;gap:8px;font-size:12px;display:flex}.entry-row__edit-btn{color:var(--muted);cursor:pointer;background:0 0;border:none;padding:4px;font-size:14px;line-height:1}.entry-row__edit-btn:hover{color:var(--text)}.entry-row__delete{color:var(--muted);cursor:pointer;background:0 0;border:none;padding:4px;font-size:18px;line-height:1}.entry-row__delete:hover{color:var(--danger)}.entry-row--editing{flex-direction:column;align-items:stretch}.entry-row__edit{flex-direction:column;gap:10px;width:100%;display:flex}.entry-row__edit-fields{flex-wrap:wrap;gap:8px;display:flex}.entry-row__edit-fields input[type=number]{border:1px solid var(--border);background:var(--bg);width:72px;color:var(--text);border-radius:6px;padding:6px 8px}.entry-row__edit-fields select{border:1px solid var(--border);background:var(--bg);min-width:0;color:var(--text);border-radius:6px;flex:140px;padding:6px 8px}.entry-row__edit-actions{gap:8px;display:flex}.entry-row__save{background:var(--accent);color:var(--accent-text);cursor:pointer;border:none;border-radius:6px;padding:6px 12px;font-size:13px;font-weight:600}.entry-row__save:disabled{opacity:.6;cursor:default}.entry-row__cancel{border:1px solid var(--border);cursor:pointer;background:0 0;border-radius:6px;padding:6px 12px;font-size:13px}.search-form{gap:8px;margin-bottom:16px;display:flex}.logging-to{margin-bottom:10px}.search-form input[type=text]{border:1px solid var(--border);background:var(--surface);border-radius:8px;flex:1;padding:10px 12px}.result-list{flex-direction:column;gap:6px;margin:0;padding:0;list-style:none;display:flex}.result-row{text-align:left;background:var(--surface);border:1px solid var(--border);cursor:pointer;border-radius:10px;flex-direction:column;gap:2px;width:100%;padding:10px 12px;display:flex}.result-row__name{font-size:14px;font-weight:500}.result-row__desc{color:var(--muted);font-size:12px}.food-detail{background:var(--surface);border:1px solid var(--border);border-radius:12px;padding:16px}.food-detail__header{justify-content:space-between;align-items:flex-start;margin-bottom:14px;display:flex}.food-detail__header h3{font-size:17px;font-weight:600}.food-detail__close{color:var(--muted);cursor:pointer;background:0 0;border:none;font-size:20px;line-height:1}.food-detail__form{flex-direction:column;gap:10px;margin-bottom:14px;display:flex}.food-detail__form label{color:var(--muted);flex-direction:column;gap:4px;font-size:13px;display:flex}.food-detail__form select,.food-detail__form input[type=number]{border:1px solid var(--border);background:var(--bg);color:var(--text);border-radius:8px;padding:8px 10px}.food-detail__macros{background:var(--bg);border-radius:10px;flex-wrap:wrap;justify-content:space-between;row-gap:12px;margin-bottom:14px;padding:12px 8px;display:flex}.food-detail__macros>div{flex-direction:column;flex:1 0 22%;align-items:center;gap:2px;display:flex}.food-detail__macros--extra{background:var(--surface);border:1px solid var(--border)}
