#task-photos{grid-column:1/-1;margin:20px 0;padding:18px;border:1px solid #cbd0d5;border-radius:12px;min-width:0;background:#f8f9fa}
#task-photos h3{margin:0 0 8px;font-size:1.1rem}
#task-photos>.note{margin:0 0 14px}
.task-photo-actions{display:flex;flex-wrap:wrap;gap:10px}
.task-photo-actions button{min-height:44px}
.task-photo-status{margin:12px 0 0;color:#4c535b;overflow-wrap:anywhere}
.task-photo-status.is-error{color:#a40016;font-weight:600}
.task-photo-list{display:grid;grid-template-columns:repeat(auto-fill,minmax(170px,1fr));gap:14px;margin-top:14px}
.task-photo-list:empty{display:none}
.task-photo-card{min-width:0;border:1px solid #cbd0d5;border-radius:10px;padding:10px;background:#fff;display:flex;flex-direction:column;align-items:stretch}
.task-photo-thumbnail{display:block;width:100%;height:132px;padding:0;overflow:hidden;border:1px solid #cbd0d5;border-radius:7px;background:#eef0f2;cursor:zoom-in}
.task-photo-thumbnail img{display:block;width:100%;height:100%;object-fit:contain;background:#eef0f2}
.task-photo-name{font-size:.9rem;font-weight:600;margin:8px 0 2px;overflow-wrap:anywhere}
.task-photo-state{font-size:.8rem;color:#62676b;margin:0 0 10px}
.task-photo-remove{margin-top:auto;min-height:44px;padding:8px 10px;font-size:.85rem}
.task-photo-card.is-removed .task-photo-thumbnail{opacity:.4}
.task-photo-card.is-removed .task-photo-name{text-decoration:line-through}
.task-photo-dialog{width:min(840px,calc(100vw - 24px));max-width:840px;max-height:calc(100dvh - 24px);overflow:auto;padding:20px;border:1px solid #cbd0d5;border-radius:14px;background:#fff;color:#34383b;box-shadow:0 20px 70px #0005}
.task-photo-dialog::backdrop{background:#18232fb3}
.task-photo-dialog h2{margin:0 0 12px;font-size:1.3rem;overflow-wrap:anywhere}
.task-photo-camera-status{margin:0 0 12px}
.task-photo-camera-video{display:block;width:100%;max-height:58dvh;background:#111;border-radius:8px;margin:0 0 14px;object-fit:contain}
.task-photo-camera-video[hidden]{display:none}
.task-photo-full{display:block;max-width:100%;max-height:72dvh;width:auto;height:auto;margin:auto;object-fit:contain}
html[data-theme="dark"] #task-photos{background:#20252b;border-color:#66717b}
html[data-theme="dark"] .task-photo-card,html[data-theme="dark"] .task-photo-dialog{background:#24282d;color:#f3f4f5;border-color:#66717b}
html[data-theme="dark"] .task-photo-status,html[data-theme="dark"] .task-photo-state{color:#c2c9d0}
html[data-theme="dark"] .task-photo-status.is-error{color:#ffbbc4}
html[data-theme="dark"] .task-photo-thumbnail,html[data-theme="dark"] .task-photo-thumbnail img{background:#151a20;border-color:#66717b}
@media(max-width:600px){#task-photos{padding:14px}.task-photo-actions button{flex:1 1 180px}.task-photo-list{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.task-photo-card{padding:8px}.task-photo-thumbnail{height:115px}.task-photo-dialog{padding:14px}.task-photo-dialog h2{font-size:1.15rem}}
@media(max-width:340px){.task-photo-list{grid-template-columns:minmax(0,1fr)}}
