.recipe-card{padding:0;overflow:hidden}.recipe-card .card-image{height:218px;position:relative;display:block;background:#ececdd;padding:0;width:100%;overflow:hidden}.recipe-card .card-image img{width:100%;height:100%;object-fit:cover}.recipe-card .card-category{position:absolute;top:15px;left:15px;max-width:calc(100% - 80px);background:#fffdf2ed;padding:5px 10px;border-radius:20px;font-size:10px;letter-spacing:.2px;text-transform:none;color:#425936}.recipe-card .card-body{padding:22px;flex:1}.recipe-card .favorite{background:#fffdf4ed;top:13px;right:13px}.recipe-card .favorite[aria-pressed=true]{background:#ffcb58}.card-photo-edit{position:absolute;top:174px;right:13px;z-index:2;border-radius:22px;background:#fffdf2ed;padding:7px 12px;font:700 11px/1.4 'Manrope',sans-serif;color:var(--ink);min-height:32px}.card-photo-edit:hover{background:#fffdf2}.detail-picture{position:relative;min-width:0;overflow:hidden}.detail-picture img{display:block;width:100%;height:100%;min-height:270px;object-fit:cover}.detail-photo-edit{position:absolute;left:18px;bottom:18px;background:#fffdf2ed;border:1px solid #fffdf2;border-radius:24px;padding:10px 16px;font-size:12px;font-weight:700;color:var(--ink);min-height:42px}.editor-photo{display:flex;align-items:center;gap:20px;margin:18px 0 25px}.editor-photo>button{position:relative;display:block;padding:0;width:190px;aspect-ratio:3/2;overflow:hidden;border-radius:15px;background:var(--sage);flex-shrink:0}.editor-photo img{display:block;width:100%;height:100%;object-fit:cover}.editor-photo>button>span{position:absolute;left:8px;right:8px;bottom:8px;padding:6px 10px;border-radius:20px;background:#fffdf2ed;font-size:11px;font-weight:700}.editor-photo>p{font-size:12px;color:var(--muted);line-height:1.9}.photo-dialog{width:min(630px,94vw);max-height:94dvh;border-radius:24px}.photo-dialog .dialog-top{align-items:flex-start;padding-bottom:14px}.photo-dialog h2{font-size:28px;margin:7px 0}.photo-dialog .eyebrow{font-size:9px;letter-spacing:1.5px}.photo-dialog #photo-recipe-name{font-size:12px;line-height:1.6;color:var(--muted);margin-top:7px}.photo-dialog-body{padding:0 28px 25px}.photo-dialog [hidden]{display:none!important}#photo-current-wrap,#photo-crop{border-radius:17px;overflow:hidden;background:#eef0e4}#photo-current{width:100%;height:auto;aspect-ratio:3/2;object-fit:cover;display:block}#photo-canvas{display:block;width:100%;height:auto;aspect-ratio:3/2;touch-action:none;cursor:grab;background:#eef0e4}#photo-canvas:active{cursor:grabbing}.photo-crop-tools{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:12px 16px}.photo-crop-tools label{display:flex;align-items:center;gap:14px;font-size:11px;flex:1}.photo-crop-tools input{width:100%;min-width:0;accent-color:var(--ink)}.photo-crop-tools .text-btn{font-size:11px;white-space:nowrap}.photo-choose{display:flex;gap:10px;flex-wrap:wrap;margin-top:18px}.photo-choose button{flex:1;white-space:nowrap;font-size:12px}#photo-status{font-size:12px;color:var(--muted);margin:12px 0 0}#photo-error:empty,#photo-status:empty{display:none}.photo-note{font-size:11px;color:var(--muted);line-height:1.8;margin-top:12px}.photo-save-bar{display:flex;align-items:center;justify-content:space-between;gap:15px;flex-wrap:wrap;margin-top:18px}.photo-save-bar>div{display:flex;flex-direction:column;align-items:flex-start}.photo-save-bar .text-btn{font-size:11px}.photo-save-bar .primary{margin-left:auto;white-space:nowrap}.photo-dialog:has(button:disabled) #photo-canvas{cursor:default}
@media(max-width:1050px){.recipe-card .card-image{height:190px}.card-photo-edit{top:146px}.recipe-card .card-body{padding:19px}}
@media(max-width:780px){.recipe-card .card-image{height:210px}.card-photo-edit{top:166px}.detail-picture img{min-height:245px}}
@media(max-width:520px){.recipe-card .card-image{height:auto;aspect-ratio:3/2}.card-photo-edit{top:calc((90vw - 2px)/1.5 - 46px);font-size:11px}.recipe-card .card-body{padding:21px}.detail-picture img{height:auto;min-height:0;aspect-ratio:3/2;object-fit:cover}.detail-photo-edit{left:13px;bottom:13px;font-size:11px;min-height:44px;padding:10px 14px}.editor-photo{gap:14px}.editor-photo>button{width:155px}.editor-photo>p{font-size:11px;line-height:1.7}.editor-photo>button>span{font-size:10px}.photo-dialog{width:96vw;max-height:94dvh}.photo-dialog .dialog-top{padding:19px 18px 13px}.photo-dialog h2{font-size:25px}.photo-dialog-body{padding:0 18px 22px}.photo-choose{gap:8px}.photo-choose button{font-size:11px;padding:11px 12px}.photo-crop-tools{gap:12px;padding:11px 13px}.photo-crop-tools label{gap:8px}.photo-crop-tools .text-btn{font-size:10px}.photo-save-bar{gap:10px}.photo-save-bar .primary{font-size:12px}.photo-dialog .icon{width:40px;height:40px}}
@media(max-width:360px){.editor-photo{align-items:flex-start;flex-direction:column;gap:8px}.editor-photo>button{width:100%;max-width:220px}.editor-photo>p br{display:none}}
@media(pointer:coarse){.card-photo-edit{min-height:44px}.photo-crop-tools button,.photo-save-bar .text-btn{min-height:44px}.photo-crop-tools input{min-height:36px}}
@media print{.card-photo-edit,.detail-photo-edit,.editor-photo,.photo-dialog{display:none!important}}

/* Keep the save action visible while the photo preview scrolls. */
.photo-dialog[open]{display:flex;flex-direction:column;overflow:hidden}.photo-dialog>.dialog-top{flex-shrink:0}.photo-dialog-body{overflow:auto;min-height:0;padding-bottom:12px}.photo-dialog>.photo-save-bar{flex-shrink:0;margin:0;padding:12px 28px 20px;background:var(--paper);border-top:1px solid var(--line)}
@media(max-width:520px){.photo-dialog>.photo-save-bar{padding:12px 18px 18px}.photo-dialog>.photo-save-bar .primary{min-height:44px}}
