/* From photos: compact, mobile-first worksheet and notes creation. */
.photo-create{margin:-5px 0 0}
.photo-upload-card{background:#fff;border:1px solid var(--border);border-radius:16px;padding:14px;box-shadow:var(--shadow)}
.photo-purpose-compact{margin-bottom:10px;padding:10px 12px;background:#fff;border:1px solid var(--border);border-radius:14px;box-shadow:var(--shadow)}
.photo-purpose-compact .photo-label{margin-bottom:4px}
.photo-purpose-compact .fi{height:44px;margin:0;padding:8px 34px 8px 11px;color:var(--emerald-d);font-size:13px;font-weight:750;background-position:right 10px center}
.photo-purpose-hint{margin-top:4px;color:var(--muted);font-size:10.5px;line-height:1.35;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.photo-upload-head{display:flex;align-items:flex-start;justify-content:space-between;gap:10px;margin-bottom:10px}
.photo-upload-head b{font-size:15px}
.photo-upload-head div>span{display:block;color:var(--muted);font-size:11px;margin-top:1px}
.photo-count{flex:none;background:var(--emerald-l);color:var(--emerald-d);border-radius:999px;padding:3px 9px;font-size:11px;font-weight:700}
.photo-create .btn-row{gap:8px}
.photo-create .btn-row .btn{min-height:44px;padding:10px 8px;font-size:13px}
.photo-create #ppGrid{display:flex;flex-wrap:nowrap;overflow-x:auto;gap:10px;margin:10px -2px 0;padding:2px 2px 5px;scroll-snap-type:x proximity}
.photo-create #ppGrid:empty{display:none}
.photo-create #ppGrid>*{flex:0 0 auto;scroll-snap-align:start}
.photo-saved{display:flex;align-items:center;gap:10px;width:100%;min-height:50px;margin-top:10px;padding:7px 10px;border:1px solid var(--border);border-radius:12px;background:#fff;color:var(--ink);text-align:left;cursor:pointer}
.photo-saved-icon{width:32px;height:32px;border-radius:9px;background:var(--emerald-l);display:flex;align-items:center;justify-content:center;flex:none}
.photo-saved-icon svg{width:18px;height:18px;stroke:var(--emerald-d)}
.photo-saved>span:nth-child(2){flex:1;min-width:0}
.photo-saved b{display:block;font-size:12.5px;color:var(--emerald-d)}
.photo-saved small{display:block;color:var(--muted);font-size:10.5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.photo-saved-go{color:var(--muted);display:flex}
.photo-saved-go svg{width:17px;height:17px}
.photo-config{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:10px;margin-top:12px}
.photo-config>div{min-width:0}
.photo-config .fl,.photo-label{display:block;color:var(--muted);font-size:11px;font-weight:700;margin:0 0 5px}
.photo-config .fi{height:44px;padding:9px 30px 9px 10px;font-size:13px;background-position:right 7px center}
.photo-format-block{margin-top:11px}
.photo-create .seg button{min-height:44px;padding:8px 5px;font-size:12px}
.photo-details,.photo-formats{border:1px solid var(--border);border-radius:12px;background:#fff}
.photo-details{margin-top:10px}
.photo-details summary,.photo-formats summary{list-style:none;display:flex;align-items:center;cursor:pointer}
.photo-details summary::-webkit-details-marker,.photo-formats summary::-webkit-details-marker{display:none}
.photo-details summary{min-height:44px;padding:9px 12px;color:var(--emerald-d);font-size:12px;font-weight:700}
.photo-details summary>span{margin-left:5px;color:var(--muted);font-size:10.5px;font-weight:500}
.photo-details summary::after{content:"+";margin-left:auto;color:var(--muted);font-size:18px;font-weight:400}
.photo-details[open] summary::after{content:"−"}
.photo-details[open] summary{border-bottom:1px solid var(--border)}
.photo-details-body{padding:10px 12px 12px;color:var(--muted);font-size:11px;line-height:1.45}
.photo-trust{background:#F3F7F5}
.photo-trust summary{color:var(--muted);font-weight:600}
.photo-note-meta{display:flex;justify-content:space-between;gap:8px;margin-bottom:5px;font-weight:600}
.photo-note-meta span{font-weight:400}
.photo-details .fi{min-height:72px;margin:0;padding:10px;font-size:13px}
.photo-details-body>small{display:block;margin-top:4px}
.photo-details .fielderr:empty{display:none}
.photo-formats summary{min-height:62px;padding:8px 10px}
.photo-format-icon{width:38px;height:38px;border-radius:10px;background:var(--emerald-l);display:flex;align-items:center;justify-content:center;flex:none}
.photo-format-icon svg{width:20px;height:20px;stroke:var(--emerald-d)}
.photo-format-copy{flex:1;min-width:0;padding:0 9px}
.photo-format-copy b,.photo-format-copy small{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.photo-format-copy b{font-size:13px}
.photo-format-copy small{font-size:10.5px;color:var(--muted);margin-top:1px}
.photo-format-change{color:var(--emerald-d);font-size:11px;font-weight:700}
.photo-formats[open] summary{border-bottom:1px solid var(--border)}
.photo-formats #pRecipes{max-height:330px;overflow-y:auto;padding:8px;gap:6px}
.photo-formats .recipe{min-height:58px;padding:8px;gap:9px;border-radius:10px;box-shadow:none}
.photo-formats .recipe.on{box-shadow:0 0 0 2px var(--emerald-l)}
.photo-formats .recipe .rc-icon{width:34px;height:34px;border-radius:9px}
.photo-formats .recipe .rc-icon svg{width:18px;height:18px}
.photo-formats .recipe .rc-title{font-size:12.5px}
.photo-formats .recipe .rc-desc{font-size:10.5px;line-height:1.3;margin-top:1px}
.photo-formats .recipe>span svg{width:17px;height:17px}
.photo-create .studio-speed{margin-top:11px}
.photo-create .studio-speed .seg button{white-space:nowrap}
.photo-action{position:static;margin:11px -4px 0;padding:6px 4px}
.photo-action .btn{width:100%;box-shadow:0 8px 22px rgba(15,110,86,.18)}
.photo-action #ppStatus:empty,.photo-action #pErr:empty{display:none}
.photo-action #ppStatus,.photo-action #pErr{margin:0 4px 5px}
.photo-action #pErr{text-align:center}
@media(max-width:350px){
  .photo-create .btn-row .btn{font-size:12px}
  .photo-config{gap:7px}
  .photo-purpose-hint{white-space:normal}
  .photo-create .studio-speed .seg button{font-size:11px}
}
@media(prefers-reduced-motion:reduce){
  .photo-create #ppGrid{scroll-behavior:auto}
}
