/* Stage 4 features: photo capture preview, D-Day remind strip, detail timeline modal */

.photo-upload-row {
  display: flex; align-items: center; gap: .6rem; flex-wrap: wrap;
}
.photo-file-label {
  display: inline-flex; align-items: center; gap: .4rem; min-height: 44px; padding: 0 1rem;
  border: 1px dashed var(--main); border-radius: var(--r-sm); background: var(--surface2);
  color: var(--main); font-size: .86rem; font-weight: 700; cursor: pointer;
}
.photo-file-label:hover { background: rgba(124, 111, 232, 0.14); }

.photo-preview-wrap {
  display: inline-flex; align-items: center; gap: .5rem; padding: .25rem .45rem .25rem .25rem;
  background: var(--surface2); border: 1px solid var(--line); border-radius: var(--r-sm);
}
.photo-preview-img {
  width: 44px; height: 44px; object-fit: cover; border-radius: 10px;
}

/* D-Day Remind Strip */
.dday-strip {
  display: flex; align-items: center; flex-wrap: wrap; gap: .5rem;
  background: var(--surface); border: 1px solid rgba(180, 83, 9, 0.28);
  border-radius: var(--r-md); padding: .75rem 1rem; margin-bottom: .9rem;
  box-shadow: var(--clay);
}
.dday-strip-title {
  display: inline-flex; align-items: center; gap: .35rem;
  font-size: .84rem; font-weight: 800; color: var(--warn);
}
.dday-pill-btn {
  border: 1px solid var(--line); background: var(--surface2); color: var(--text);
  border-radius: 999px; padding: .28rem .75rem; font: inherit; font-size: .8rem; font-weight: 700;
  cursor: pointer; display: inline-flex; align-items: center; gap: .35rem;
}
.dday-pill-btn:hover { border-color: var(--main); }

.dday-badge {
  display: inline-flex; align-items: center; border-radius: 999px;
  padding: .18rem .58rem; font-size: .74rem; font-weight: 800;
}
.dday-urgent { background: rgba(201, 70, 87, 0.15); color: var(--bad); }
.dday-soon { background: rgba(180, 83, 9, 0.15); color: var(--warn); }
.dday-normal { background: var(--surface2); color: var(--muted); }

/* Card Body with Optional Photo */
.item-body-row { display: flex; gap: .85rem; align-items: flex-start; }
.item-body-main { flex: 1; min-width: 0; }
.item-thumb-btn {
  border: 0; padding: 0; background: none; cursor: pointer; flex-shrink: 0;
  border-radius: 14px; overflow: hidden; box-shadow: var(--clay);
}
.item-thumb {
  display: block; width: 76px; height: 76px; object-fit: cover; border-radius: 14px;
}

/* Detail & Timeline Modal */
.modal-card-lg { max-width: 520px; max-height: 88vh; overflow-y: auto; }
.detail-photo {
  width: 100%; max-height: 280px; object-fit: contain; border-radius: var(--r-md);
  background: var(--surface2); margin-bottom: .9rem;
}
.detail-info-grid {
  display: grid; gap: .4rem; padding: .8rem .95rem; margin-bottom: .95rem;
  background: var(--surface2); border-radius: var(--r-md); font-size: .88rem;
}
.detail-info-row { display: flex; justify-content: space-between; gap: .6rem; }
.detail-info-label { color: var(--muted); font-weight: 700; }

.timeline-title { margin: 0 0 .55rem; font-size: .92rem; font-weight: 800; }
.timeline-list {
  list-style: none; padding: 0 0 0 .9rem; margin: 0 0 1rem;
  border-left: 2px solid var(--line); display: grid; gap: .65rem;
}
.timeline-item { position: relative; font-size: .84rem; }
.timeline-item::before {
  content: ''; position: absolute; left: -1.24rem; top: .36rem;
  width: .55rem; height: .55rem; border-radius: 50%; background: var(--main);
}
.timeline-time { font-size: .76rem; color: var(--muted); }
.timeline-desc { font-weight: 700; }
.timeline-note { color: var(--muted); font-size: .8rem; }

.todo-connect-bar {
  display: flex; flex-wrap: wrap; gap: .5rem; justify-content: space-between; align-items: center;
  padding-top: .8rem; border-top: 1px dashed var(--line);
}
