/* Photo first, readable wood footer, one large touch target. */
body #app .photo-task-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
body #app .photo-task-grid .optional-fields{grid-column:1/-1;display:block;min-width:0}
body #app .photo-task-grid .optional-fields>summary{grid-column:1/-1}
body #app .photo-task-grid .optional-fields:not([open])>.special-task-grid{display:none}
body #app .task-options label.task-touch-card{position:relative;display:flex;flex-direction:column;align-items:stretch;justify-content:flex-start;gap:0;padding:0;overflow:hidden;border-radius:20px;min-width:0;cursor:pointer;transition:border-color .16s,box-shadow .16s}
body #app .task-touch-card>input{position:absolute;opacity:0;width:1px;height:1px;margin:0;left:12px;top:12px}
body #app .task-touch-card:focus-within{outline:3px solid #24618c;outline-offset:4px}
body #app .task-touch-card:has(input:checked){border:2px solid #24618c;box-shadow:0 0 0 2px #d7e9f3,0 6px 20px #12325318}
body #app .task-card-media{display:block;width:100%;aspect-ratio:1.65;overflow:hidden;background:#ece5dc}
body #app .task-card-media img{display:block;width:100%;height:100%;object-fit:cover}
body #app .task-split-photo img{width:200%;max-width:none;transform:translateX(-50%)}
body #app .task-card-copy{display:flex;flex-direction:column;gap:8px;padding:14px;flex:1}
body #app .task-card-copy strong{font-size:16px;line-height:1.3;font-weight:700}
body #app .task-card-copy small{font-size:12px;line-height:1.4}
body #app .task-card-status{display:block;margin-top:auto;font-size:13px;font-weight:650;color:#31556e;min-height:22px}
.task-added{display:none}
.task-touch-card:has(input:checked) .task-add{display:none}
.task-touch-card:has(input:checked) .task-added{display:inline}
.task-photo-hint{margin:0 0 18px;color:#526578;font-size:15px}
.task-photo-note{font-size:12px;color:#526578;margin:14px 0}
@media(max-width:650px){
 body #app .photo-task-grid,body #app .photo-task-grid .optional-fields{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
 body #app .task-options label.task-touch-card{border-radius:16px}
 body #app .task-card-copy{padding:12px;gap:6px}
 body #app .task-card-copy strong{font-size:15px}
 body #app .task-card-media{aspect-ratio:1.35}
}
@media(prefers-reduced-motion:reduce){body #app .task-touch-card{transition:none}}

/* Compact special services: equal cells, copy left and quiet photo right. */
body #app .special-task-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));grid-auto-rows:1fr;gap:14px;margin:18px auto 0;width:100%;max-width:700px}
body #app .special-task-grid label.task-touch-card{display:grid;grid-template-columns:minmax(0,1fr) 58px;align-items:center;gap:10px;padding:14px;min-height:170px;height:100%;box-sizing:border-box;border-width:2px;border-color:#cbbca5;border-radius:16px}
body #app .special-task-grid label.task-touch-card:has(input:checked){border-color:#24618c}
body #app .special-task-grid .task-card-media{grid-column:2;grid-row:1;width:58px;height:72px;aspect-ratio:auto;border-radius:10px;align-self:center;background:#f7f5f1}
body #app .special-task-grid .task-card-media img{object-fit:cover}
body #app .special-task-grid .task-card-copy{grid-column:1;grid-row:1;padding:0;gap:8px;align-self:stretch;justify-content:center;min-width:0}
body #app .special-task-grid .task-card-copy strong{font-size:14px;line-height:1.35;overflow-wrap:break-word}
body #app .special-task-grid .task-card-copy small{font-size:11px;line-height:1.35}
body #app .special-task-grid .task-card-status{margin-top:4px;font-size:12px}
body #app .special-task-grid label:not(.has-task-photo) .task-card-copy{grid-column:1/-1}
@media(max-width:650px){
 body #app .special-task-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
 body #app .special-task-grid label.task-touch-card{grid-template-columns:minmax(0,1fr);grid-template-rows:64px 1fr;padding:12px;min-height:190px;gap:10px}
 body #app .special-task-grid .task-card-media{grid-column:1;grid-row:1;width:64px;height:64px;justify-self:center}
 body #app .special-task-grid .task-card-copy{grid-column:1;grid-row:2;text-align:center}
 body #app .special-task-grid label:not(.has-task-photo) .task-card-copy{grid-row:1/-1}
}
