[hidden]{display:none!important}
button:disabled{opacity:.55;cursor:wait}
.photo-card{border-color:#b9d9c6;background:linear-gradient(145deg,#fff,#f6fbf7)}
.photo-card h2{display:flex;gap:10px;align-items:center;flex-wrap:wrap}
.photo-actions{display:flex;gap:10px;flex-wrap:wrap;margin:14px 0}
.photo-actions button{flex:1 1 150px;min-height:46px}
.photo-preview{margin:14px 0;background:#eef4f0;border-radius:14px;overflow:hidden}
.photo-preview img{display:block;max-height:320px;width:100%;object-fit:contain}
.photo-preview figcaption{display:flex;gap:8px;align-items:center;justify-content:space-between;padding:8px 12px}
.photo-status{min-height:20px;overflow-wrap:anywhere}
.photo-status.error{color:#a42e2b}
.photo-review{border-top:1px solid #d9e6dc;margin-top:16px;padding-top:16px}
.photo-review>h3{margin-top:0;font-size:17px}
.photo-note{padding:12px;border-radius:12px;background:#fff4df;color:#72581e;font-size:13px;line-height:1.5;margin:12px 0}
.photo-item{border:1px solid #dbe5de;border-radius:12px;padding:12px;background:white;margin:10px 0;min-width:0}
.photo-item legend{font-size:12px;color:#64796f;padding:0 5px}
.photo-item-head{display:flex;gap:6px;align-items:center;margin-bottom:10px}
.photo-item-head .field{flex:1;min-width:0;margin:0}
.photo-item .danger{flex:none;min-height:44px;min-width:44px;font-size:22px}
.photo-nutrients{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}
.photo-nutrients .field{margin:0;min-width:0}
.photo-nutrients input{padding:10px 7px}
.photo-summary{padding:14px;background:#e6f3e9;border-radius:12px;line-height:1.7;margin:12px 0;font-size:15px}
.photo-summary strong{display:block;font-size:20px}
.photo-review .primary{width:100%;min-height:46px}
.photo-help{font-size:12px;line-height:1.5;color:#64796f}
.photo-card :focus-visible{outline:3px solid #3a9b7b;outline-offset:3px}
@media(max-width:400px){.photo-nutrients{gap:6px}.photo-nutrients label{font-size:12px}.photo-actions button{flex-basis:100%}}
