/* EX3-03: customer meeting prep and follow-through styles.
   Status is never color-only — every state also carries a text label or icon in
   the markup. These rules add spacing, wrapping, and gentle emphasis. */

.prep-container { display: flex; flex-direction: column; gap: 12px; margin-bottom: 12px; }
.prep-container:empty { display: none; }

.prep-body { display: flex; flex-direction: column; gap: 12px; }
.prep-overall { font-size: 12px; color: var(--muted, #8a7f72); display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }

.prep-section { border-top: 1px solid rgba(0,0,0,0.06); padding-top: 8px; }
.prep-section-head { font-weight: 600; font-size: 13px; margin-bottom: 6px; }

.prep-item { padding: 6px 0; }
.prep-item-head { display: flex; justify-content: space-between; gap: 8px; }
.prep-item-label { font-weight: 600; font-size: 13px; }
.prep-item-value { font-size: 13px; overflow-wrap: anywhere; word-break: break-word; }
.prep-item-owner { font-size: 12px; color: var(--muted, #8a7f72); }
.prep-item-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; align-items: center; }

.prep-chip {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 11px; line-height: 1.4; padding: 1px 8px; border-radius: 999px;
  border: 1px solid rgba(0,0,0,0.12); background: rgba(0,0,0,0.03);
  white-space: nowrap;
}
.prep-source { border-color: rgba(68,51,32,0.3); }
.prep-conf-high { background: rgba(46,125,50,0.12); border-color: rgba(46,125,50,0.4); }
.prep-conf-medium { background: rgba(180,120,20,0.12); border-color: rgba(180,120,20,0.4); }
.prep-conf-low { background: rgba(120,120,120,0.12); border-color: rgba(120,120,120,0.4); }
.prep-confirm-confirmed { background: rgba(46,125,50,0.10); }
.prep-confirm-needs_confirmation { background: rgba(180,120,20,0.10); }
.prep-confirm-unknown, .prep-chip-unknown { background: rgba(120,120,120,0.10); border-style: dashed; }
.prep-unknown { font-style: italic; color: var(--muted, #8a7f72); }

.prep-banner { padding: 8px 10px; border-radius: 8px; font-size: 12px; border: 1px solid rgba(0,0,0,0.12); }
.prep-banner-partial { background: rgba(180,120,20,0.10); }
.prep-banner-stale { background: rgba(80,110,160,0.10); }

.prep-status { padding: 12px; border-radius: 8px; border: 1px solid rgba(0,0,0,0.12); }
.prep-status-title { font-weight: 600; margin-bottom: 4px; }
.prep-status-detail { font-size: 12px; color: var(--muted, #8a7f72); overflow-wrap: anywhere; }
.prep-status-failed { border-color: rgba(180,40,40,0.4); background: rgba(180,40,40,0.06); }
.prep-status-blocked { border-color: rgba(120,120,120,0.4); background: rgba(120,120,120,0.06); }
.prep-status-loading { display: flex; align-items: center; gap: 8px; }
.prep-spinner { width: 12px; height: 12px; border: 2px solid rgba(0,0,0,0.2); border-top-color: rgba(0,0,0,0.5); border-radius: 50%; display: inline-block; animation: prep-spin 0.8s linear infinite; }
@keyframes prep-spin { to { transform: rotate(360deg); } }

.prep-conflicts { display: flex; flex-direction: column; gap: 8px; }
.prep-conflict { border: 1px solid rgba(180,120,20,0.4); background: rgba(180,120,20,0.06); border-radius: 8px; padding: 8px 10px; }
.prep-conflict-head { font-weight: 600; font-size: 12px; }
.prep-conflict-values { margin: 4px 0; padding-left: 18px; font-size: 12px; }
.prep-conflict-note { font-size: 12px; color: var(--muted, #8a7f72); }

.prep-missing { border-top: 1px dashed rgba(0,0,0,0.12); padding-top: 8px; }
.prep-missing-item { font-size: 12px; padding: 3px 0; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.prep-missing-field { font-weight: 600; }

.prep-followthrough { display: flex; flex-direction: column; gap: 10px; }
.prep-candidates { display: flex; flex-direction: column; gap: 6px; }
.prep-candidate { display: flex; gap: 8px; align-items: flex-start; padding: 8px; border: 1px solid rgba(0,0,0,0.10); border-radius: 8px; cursor: pointer; }
.prep-candidate-check { margin-top: 3px; }
.prep-candidate-body { display: flex; flex-direction: column; gap: 3px; }
.prep-candidate-title { font-weight: 600; font-size: 13px; }
.prep-own-self { background: rgba(46,125,50,0.12); }
.prep-own-track { background: rgba(80,110,160,0.12); }
.prep-own-unassigned { background: rgba(180,120,20,0.12); border-style: dashed; }
.prep-track-note { font-size: 11px; color: var(--muted, #8a7f72); font-style: italic; }

.prep-email { display: flex; flex-direction: column; gap: 8px; }
.prep-field { display: flex; flex-direction: column; gap: 3px; }
.prep-field-label { font-size: 11px; font-weight: 600; color: var(--muted, #8a7f72); }
.prep-input { width: 100%; box-sizing: border-box; padding: 8px; border: 1px solid rgba(0,0,0,0.15); border-radius: 8px; font: inherit; }
.prep-textarea { resize: vertical; min-height: 96px; }
.prep-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 4px; }
.prep-hint { font-size: 11px; color: var(--muted, #8a7f72); }
.prep-exec { margin-top: 6px; }
.prep-exec-state { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }

@media (max-width: 720px) {
  .prep-item-head { flex-direction: column; }
  .prep-candidate { flex-direction: row; }
  .prep-actions { flex-direction: column; align-items: stretch; }
}
