.crm-photos{border-top:1px solid var(--line);margin-top:22px;padding-top:18px}.crm-photos h3{font-size:15px;margin:0 0 14px}.photo-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(145px,1fr));gap:12px}.photo-card{margin:0;border:1px solid var(--line);border-radius:10px;overflow:hidden;background:white}.photo-preview{display:block;border:0;padding:0;width:100%;cursor:zoom-in;background:#edf1f5}.photo-preview img{display:block;width:100%;height:150px;object-fit:cover}.photo-card figcaption{padding:9px;display:grid;gap:5px;font-size:11px;line-height:1.5}.photo-card figcaption>span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.photo-card small{color:var(--muted)}.photo-delete{justify-self:start;border:0;background:none;color:#9a2637;padding:4px 0;cursor:pointer;font-size:12px}.photo-delete:disabled{opacity:.5;cursor:wait}.photo-picker{display:flex;flex-wrap:wrap;gap:10px;margin-top:14px}.photo-picker label{position:relative;overflow:hidden;cursor:pointer}.photo-picker input{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer}.photo-picker label:focus-within{outline:3px solid #1c786b;outline-offset:3px}.photo-picker label:has(input:disabled){opacity:.5;cursor:wait}.photo-error{color:#a42c3c;font-size:12px;line-height:1.7;overflow-wrap:anywhere}.photo-ok{color:#1b6951}.photo-results{padding-left:18px;font-size:12px;line-height:1.8}.photo-progress{display:grid;gap:8px;font-size:12px;color:var(--muted);margin:14px 0;overflow-wrap:anywhere}.photo-progress progress{width:100%;height:8px;accent-color:var(--green)}.photo-viewer{width:min(1100px,95vw);max-width:95vw;max-height:95vh;padding:0;border:0;border-radius:12px;background:#14212f;color:white}.photo-viewer::backdrop{background:#101c2ada}.photo-viewer-bar{display:flex;align-items:center;gap:10px;padding:14px;flex-wrap:wrap;background:#fff;color:#172b46}.photo-viewer-bar strong{flex:1;min-width:140px;font-size:13px;overflow-wrap:anywhere}.photo-viewer-body{padding:14px;max-height:calc(95vh - 85px);overflow:auto;display:flex;justify-content:center;align-items:flex-start}.photo-viewer-body img{max-width:100%;max-height:calc(95vh - 115px);object-fit:contain;display:block}.photo-viewer.is-zoomed .photo-viewer-body{display:block}.photo-viewer.is-zoomed img{max-width:none;max-height:none}.crm-assignees{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;max-height:280px;overflow:auto;border:1px solid var(--line);border-radius:8px;padding:12px;margin:8px 0 16px}.crm-assignees label{display:flex;gap:10px;align-items:center;font-size:13px;line-height:1.6}.crm-assignees input{accent-color:var(--green)}.crm-staff-select{margin:0 0 18px}.crm-staff-select label{display:block;font-size:12px;color:var(--muted);margin-bottom:6px}.crm-staff-select select{width:100%;max-width:420px;background:white;border:1px solid var(--line);border-radius:8px;padding:11px;font:inherit}.crm-team-status{display:flex;flex-wrap:wrap;gap:8px;margin:14px 0}.crm-team-status>span{display:inline-flex;align-items:center;gap:7px;border:1px solid var(--line);padding:8px 10px;border-radius:8px;font-size:12px}.crm-team-status small{color:var(--muted)}@media(max-width:600px){.crm-assignees{grid-template-columns:1fr}.photo-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.photo-viewer-bar{gap:7px}.photo-viewer-bar .btn{font-size:11px;padding:8px}.photo-viewer-body{padding:8px}.photo-preview img{height:135px}} 
/* Kamera, galeri ve ekip seçimleri tek elle kullanılabilen saha kontrolleridir. */
.photo-picker label{min-height:48px;gap:9px}.photo-picker .icon{width:19px;height:19px}.photo-picker input{font-size:16px}.photo-count{font-size:12px;font-weight:600;color:#456a5e;margin:10px 0 4px}.photo-delete{display:inline-flex;align-items:center;gap:7px;min-height:44px;min-width:60px;padding:8px;border-radius:7px;color:#a12d42}.photo-delete:hover{background:#fff1f3}.photo-delete .icon{width:15px;height:15px}.photo-delete:focus-visible,.photo-preview:focus-visible{outline:3px solid #23877b;outline-offset:-3px}.photo-preview{overflow:hidden}.photo-preview img{transition:transform .2s ease}.photo-preview:hover img{transform:scale(1.025)}.photo-card{min-width:0}.photo-card figcaption>span{font-size:12px}.photo-loading{display:flex;align-items:center;gap:9px;font-size:12px;line-height:1.7;color:var(--muted);padding:12px 0;margin:0}.photo-loading::before{content:'';width:16px;height:16px;border:2px solid currentColor;border-right-color:transparent;border-radius:50%;flex-shrink:0;animation:photo-spin .8s linear infinite}.photo-progress{padding:13px 14px;border:1px solid #cde9df;background:#eff9f5;border-radius:10px;color:#285e50;line-height:1.65;animation:photo-appear .15s ease-out}.photo-progress progress{height:10px;border-radius:10px;overflow:hidden}.photo-progress progress::-webkit-progress-bar{background:#dceee6;border-radius:10px}.photo-progress progress::-webkit-progress-value{background:var(--green);border-radius:10px;transition:width .2s ease}.photo-progress.is-processing progress{animation:photo-processing 1.2s ease-in-out infinite}.photo-results{font-size:13px;margin:12px 0 0;line-height:1.8}.photo-error{font-size:13px}.photo-viewer{max-height:calc(100dvh - 24px)}.photo-viewer-bar strong{min-width:0;line-height:1.5}.photo-viewer-bar .btn{min-height:44px;white-space:normal;line-height:1.4}.photo-viewer-body{position:relative;min-height:160px;max-height:calc(100dvh - 126px)}.photo-viewer-body>.photo-loading{position:absolute;top:24px;left:50%;transform:translateX(-50%);color:#edf4ff;background:#14212fdd;padding:10px 14px;border-radius:9px;max-width:90%;white-space:nowrap}.photo-viewer-body img{max-height:calc(100dvh - 150px)}.crm-assignees label{min-height:44px;overflow-wrap:anywhere;min-width:0;padding:8px;border-radius:7px}.crm-assignees label:has(input:checked){background:#eaf7f1;color:#176653}.crm-assignees label:focus-within{outline:2px solid #329b89;outline-offset:1px}.crm-assignees input{width:21px;height:21px;flex-shrink:0;margin:0}
@keyframes photo-spin{to{transform:rotate(360deg)}}
@keyframes photo-processing{50%{opacity:.55}}
@keyframes photo-appear{from{opacity:0;transform:translateY(3px)}to{opacity:1;transform:none}}
@media(max-width:740px){
 .crm-photos{margin-top:22px;padding-top:18px}.crm-photos h3{font-size:16px;line-height:1.5;margin-bottom:12px}.photo-picker{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.photo-picker label{width:100%;padding:11px 8px;min-height:52px;font-size:13px;line-height:1.4;white-space:normal;text-align:center}.photo-picker .icon{flex-shrink:0;width:20px;height:20px}.photo-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.photo-preview img{height:140px}.photo-card figcaption{padding:9px;gap:4px;line-height:1.6}.photo-card small{font-size:10px}.photo-delete{width:100%;justify-content:center;margin-top:4px;border:1px solid #f1d8de;background:#fffafb}.photo-results{padding-left:17px;font-size:12px}.photo-progress{font-size:13px}.photo-viewer{width:calc(100vw - 16px);max-width:calc(100vw - 16px);max-height:calc(100dvh - 16px);border-radius:13px}.photo-viewer-bar{display:grid;grid-template-columns:1fr 1fr;gap:8px;padding:12px}.photo-viewer-bar strong{grid-column:1/-1;font-size:14px;white-space:normal;overflow-wrap:anywhere}.photo-viewer-bar .btn{font-size:12px;padding:10px 8px;min-height:44px}.photo-viewer-bar [data-photo-action=close-viewer]{grid-column:1/-1;background:#edf3f5}.photo-viewer-body{padding:8px;max-height:calc(100dvh - 215px)}.photo-viewer-body img{max-height:calc(100dvh - 238px)}.photo-viewer.is-zoomed .photo-viewer-body{max-height:calc(100dvh - 215px)}.crm-assignees{grid-template-columns:1fr;padding:8px;gap:4px;max-height:330px;overscroll-behavior:contain}.crm-assignees label{min-height:50px;padding:10px;font-size:14px;line-height:1.5}.crm-assignees input{width:22px;height:22px}.crm-team-status>span{gap:6px;flex-wrap:wrap}.crm-staff-select label{font-size:13px}
}
.photo-viewer .photo-error{color:#ffc5cf;line-height:1.7}
@media(max-width:380px){.photo-grid{gap:8px}.photo-preview img{height:115px}.photo-picker{gap:8px}.photo-picker label{font-size:12px}.photo-card figcaption{padding:7px}.photo-viewer-bar{padding:10px}}
@media(prefers-reduced-motion:reduce){.photo-preview img,.photo-progress progress::-webkit-progress-value{transition:none}.photo-preview:hover img{transform:none}.photo-loading::before,.photo-progress,.photo-progress.is-processing progress{animation:none}}
