.label-reader-heading{display:flex;flex-wrap:wrap;align-items:baseline;gap:6px 16px}.label-reader-heading strong{font:600 23px/1.2 var(--display)}.label-reader-heading span{font-size:14px;color:var(--muted)}.label-reader-intro{font-size:16px;line-height:1.5;margin:10px 0}.label-reader-actions{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:14px}.label-reader-actions .btn{min-height:44px}#scanReview{margin:12px 0}#scanReview[aria-busy="true"]{opacity:.65}#scanReview p{font-size:16px;line-height:1.5}#scanReview details{margin-top:12px;font-size:14px}#scanReview summary{min-height:44px;cursor:pointer;padding:10px 0}#scanText{font-size:16px;margin:6px 0 10px}#scanMatches button{display:grid;gap:6px;text-align:left;width:100%;padding:14px;border:1px solid var(--line);border-radius:4px;background:var(--paper);color:var(--ink);cursor:pointer;overflow-wrap:anywhere;font:inherit}#scanMatches strong{font-size:18px}#scanMatches small{font-size:14px;color:var(--muted)}#scanMatches button:hover,#scanMatches button:focus-visible{border-color:var(--accent)}.sr-label{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}.barcode-actions{margin-top:12px}#scanMsg{font-size:14px!important;line-height:1.5}

/* The photo remains next to the entry, rather than inside tasting extras. */
#scanBox{border:0;padding:0;background:transparent;gap:12px}
#scanBox .label-reader-actions{margin:0}
.label-entry-fields{display:grid;gap:20px;min-width:0}
#dlg.has-label-photo{width:min(1040px,calc(100vw - 32px))}
#dlg.has-label-photo #form{grid-template-columns:minmax(260px,360px) minmax(0,1fr);align-items:start}
#dlg.has-label-photo .dlg-h{grid-column:1/-1}
#dlg.has-label-photo .label-entry-fields{grid-column:2;grid-row:2}
.label-reference{position:sticky;top:16px;align-self:start;min-width:0;z-index:2;background:#fcf8ee;display:grid;gap:8px}
.label-photo-open{display:grid;gap:8px;width:100%;padding:0;border:1px solid var(--line);border-radius:4px;overflow:hidden;background:#eee5d2;color:var(--ink);cursor:zoom-in;font:inherit}
#photoPrev{display:block;width:100%;height:auto;max-height:65dvh;object-fit:contain}
.label-photo-open span{font-size:14px;padding:0 12px 10px;text-align:right}
#photoClear{justify-self:start;font-size:14px;min-height:36px}
#labelPhotoZoom{width:min(900px,calc(100vw - 24px));padding:16px;max-height:90dvh}
.label-zoom-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px}
.label-zoom-heading h2{font-size:22px;margin:0}
#labelPhotoMagnify{margin-bottom:12px;min-height:44px;font-size:14px}
.label-zoom-viewport{overflow:auto;max-height:calc(90dvh - 142px)}
#labelPhotoFull{display:block;width:100%;max-width:none;height:auto}
.label-zoom-viewport.magnified #labelPhotoFull{width:200%}
@media(max-width:760px){
 #dlg.has-label-photo #form{display:block}
 #dlg.has-label-photo .dlg-h{margin-bottom:16px}
 .label-reference{top:0;margin-bottom:20px;padding:6px 0;border-bottom:1px solid var(--line)}
 #photoPrev{height:clamp(110px,27dvh,250px);width:100%;object-fit:contain}
 .label-photo-open{position:relative;gap:0}
 .label-photo-open span{position:absolute;bottom:6px;right:6px;background:#fcf8eeeb;border-radius:3px;padding:5px 8px;font-size:14px}
 #photoClear{position:absolute;top:8px;right:8px;background:#fcf8eeeb;border-radius:3px;padding:6px 8px;min-height:36px}
 .label-entry-fields{gap:17px}
}
