.modal{max-height:calc(100vh - 28px);overflow-y:auto}
.food-log-options{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:18px 0 4px}
.food-log-option{display:grid;align-content:start;justify-items:start;gap:7px;min-height:132px;padding:14px;border:1px solid var(--line);border-radius:10px;background:var(--white);color:var(--ink);text-align:left;cursor:pointer;transition:border-color .15s,transform .15s}
.food-log-option:hover{border-color:var(--green);transform:translateY(-1px)}
.food-log-option>span{display:grid;place-items:center;width:30px;height:30px;border-radius:9px;background:var(--green-pale);color:var(--green-dark);font-size:17px}
.food-log-option strong{font:700 12px Manrope,sans-serif}.food-log-option small{color:var(--muted);font:10px 'DM Sans',sans-serif;line-height:1.45}
.modal-form textarea[data-food-description]{width:100%;min-height:94px;padding:10px;border:1px solid var(--line);border-radius:8px;background:var(--white);color:var(--ink);font:12px 'DM Sans',sans-serif;resize:vertical}
#recalculateDescription{margin-top:10px}
.photo-select-button{display:inline-flex;align-items:center;justify-content:center;margin:14px auto 4px;min-height:36px;padding:0 14px;cursor:pointer}
.photo-file-input{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;clip-path:inset(50%);border:0}
.photo-file-input:focus-visible+.photo-preview{outline:2px solid var(--green);outline-offset:3px}
.photo-preview{display:flex;align-items:center;justify-content:center;gap:9px;margin:12px auto 0;max-width:100%;color:var(--muted);font-size:10px}
.photo-preview[hidden]{display:none}
.photo-preview img{display:block;width:76px;height:76px;object-fit:cover;border-radius:8px;border:1px solid var(--line)}
.photo-estimate-status{min-height:16px;margin:8px 0 0;color:var(--green);font-size:11px}
.photo-estimate-summary{display:grid;gap:5px;padding:11px 12px;background:var(--green-pale);border-radius:8px;font-size:11px;line-height:1.45}
.photo-estimate-summary strong{text-transform:capitalize;color:var(--green-dark)}
.photo-estimate-summary span{color:var(--muted)}
.photo-review-head{display:grid;grid-template-columns:58px minmax(0,1fr) auto;align-items:center;gap:10px;margin-bottom:12px}
.photo-review-head>img{width:58px;height:58px;object-fit:cover;border-radius:8px;background:var(--green-pale)}
.photo-review-head>div{display:grid;gap:3px;font-size:11px}.photo-review-head>div span{font-size:10px;color:var(--muted);line-height:1.4}
.photo-review-head .photo-select-button{margin:0;min-height:32px;padding:0 9px;font-size:10px}
.photo-estimate-summary b{margin-top:4px;color:var(--ink);font-size:10px}
.photo-review-controls{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:12px 0}
.photo-review-controls label,.photo-food-fields label{display:grid;gap:5px;color:var(--muted);font-size:10px}
.photo-review-controls select,.photo-review-controls input,.photo-food-fields input{width:100%;height:35px;padding:0 9px;border:1px solid var(--line);border-radius:7px;background:var(--white);color:var(--ink);font:12px 'DM Sans',sans-serif}
.photo-food-list{display:grid;gap:9px}
.photo-food-item{padding:11px;border:1px solid var(--line);border-radius:9px;background:var(--white)}
.photo-food-heading{display:flex;justify-content:space-between;align-items:center;margin-bottom:9px;font:700 11px Manrope,sans-serif}
.photo-food-heading .small-link{border:0;background:transparent;color:var(--green);font:500 10px 'DM Sans',sans-serif;cursor:pointer}
.photo-food-fields{display:grid;grid-template-columns:minmax(0,1fr) 100px;gap:9px}
.photo-food-macros{display:flex;flex-wrap:wrap;gap:6px 12px;margin-top:9px;color:var(--muted);font-size:9px}
.photo-editor-actions{display:flex;justify-content:space-between;gap:8px;margin-top:11px}
.photo-editor-actions .button{min-height:34px;padding:0 10px;font-size:10px}
@media(max-width:760px){.modal{max-height:calc(100dvh - 24px);padding:18px}.food-log-options{grid-template-columns:1fr;gap:8px}.food-log-option{grid-template-columns:32px minmax(0,1fr);align-items:center;min-height:0;padding:11px}.food-log-option>span{grid-row:span 2}.food-log-option small{grid-column:2}.photo-select-button{min-height:40px}#page-nutrition .page-heading{flex-wrap:wrap}#page-nutrition .heading-actions{width:100%;justify-content:flex-end;flex-wrap:wrap}.photo-review-head{grid-template-columns:48px minmax(0,1fr)}.photo-review-head>img{width:48px;height:48px}.photo-review-head .photo-select-button{grid-column:1 / -1;justify-self:end}.photo-editor-actions{flex-direction:column}.photo-editor-actions .button{min-height:38px}}
