/* Supper 2.5 — clean image cards, one-handed controls, centred settings cog */
.header-right .settings-btn{display:flex;align-items:center;justify-content:center;width:44px;height:44px;padding:0;border-radius:13px;line-height:0;flex-shrink:0}
.header-right .settings-btn .settings-icon{display:block;position:static;width:24px;height:24px;flex:none;transform:none;stroke:currentColor}
.food-art.has-photo{background:#e3e9e1;filter:none!important}
.food-art.has-photo::before{display:none!important;content:none}
.food-art .food-photo{display:block;position:absolute;inset:0;width:100%;height:100%;max-width:none;object-fit:cover;object-position:center;z-index:1;filter:none;transform:none}
.food-art.has-photo span{display:none}
.food-art .food-emoji{display:grid;place-items:center;width:100%;height:100%}
.food-art.detail-art.has-photo{height:210px}
.photo-credit{margin-top:10px;font-size:11px;line-height:1.45;color:var(--muted)}
.photo-credit a{color:var(--green);text-decoration:underline;text-underline-offset:2px}
.photo-progress{display:flex;align-items:center;justify-content:space-between;gap:9px;margin:-2px 1px 13px;font-size:11px;color:var(--muted);min-height:25px}
.photo-rescan{font-size:11px;padding:6px 2px 6px 10px;border:0;background:transparent;color:var(--green);text-decoration:underline;text-underline-offset:3px;font-weight:700}
.photo-picker-help{margin:-9px 0 17px;line-height:1.55}
.photo-search-line{display:flex;gap:8px;margin-bottom:17px}
.photo-search-line input{min-width:0;flex:1;border:1px solid var(--line);border-radius:12px;background:var(--paper);color:var(--ink);padding:11px 12px;font-size:14px}
.photo-search-line .btn{min-width:83px}
.photo-picker-results{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;padding-bottom:14px}
.photo-picker-results>p{grid-column:1/-1;padding:15px 0}
.photo-choice{display:flex;flex-direction:column;text-align:left;border:1px solid var(--line);border-radius:14px;padding:5px;background:var(--paper);overflow:hidden;min-width:0;color:var(--ink)}
.photo-choice img{width:100%;height:118px;border-radius:9px;object-fit:cover;background:#dfe9df}
.photo-choice span{width:100%;padding:8px 5px 4px;font-weight:700;line-height:1.25;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:11px}
.photo-choice small{font-weight:400;color:var(--muted);display:block;overflow:hidden;text-overflow:ellipsis}
.photo-choice:focus-visible,.photo-rescan:focus-visible{outline:3px solid #9cc19b;outline-offset:2px}
[data-theme='dark'] .photo-choice,[data-theme='dark'] .photo-search-line input{border-color:var(--line);background:var(--paper);color:var(--ink)}
[data-theme='dark'] .photo-choice img{background:#314236}
@media(max-width:580px){.header-right .settings-btn{width:44px;height:44px}.food-art.detail-art.has-photo{height:190px}.photo-picker-results{gap:8px}.photo-choice img{height:110px}.photo-search-line .btn{padding:8px 11px}}

.photo-manual{border-top:1px solid var(--line);margin-top:6px;padding:13px 0 0;font-size:13px}
.photo-manual summary{color:var(--green);font-weight:650;cursor:pointer;padding:6px 0 12px}
.photo-manual .photo-search-line{margin-top:10px}
.photo-manual .photo-search-line .btn{white-space:nowrap}

/* Photo finder: low-key busy feedback and clear status on small screens. */
.photo-rescan:disabled{opacity:.55;cursor:default;text-decoration:none}
.photo-progress [data-photo-count]{min-width:0;flex:1;overflow-wrap:anywhere;line-height:1.4}
@media(max-width:580px){.photo-progress{align-items:flex-start}.photo-rescan{flex:none;min-height:36px;padding:8px 6px}}

/* Pixabay photo actions, compact on mobile. */
.photo-actions{display:flex;gap:10px;flex-wrap:wrap;justify-content:flex-end}.photo-actions .photo-rescan{min-height:36px;white-space:nowrap}.photo-progress{align-items:center}.photo-choice span{white-space:normal;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}.photo-choice small{display:block;white-space:nowrap}@media(max-width:480px){.photo-progress{flex-wrap:wrap;gap:2px}.photo-progress [data-photo-count]{flex-basis:100%}.photo-actions{margin-left:auto}}
