/* Phase 3 continuity: the project brief, Memory review, Create from evidence
   (all under .st.cx, so the Settings furniture applies) and the "Used N
   memories" disclosure on an agent reply. Phone first: one column at 390px,
   every target at least 44px, nothing wider than the screen. */

.cx .block { display: block; }
.cx-toggle { justify-content: space-between; width: 100%; max-width: 420px; }
.cx-toggle b { margin-left: 12px; }
.cx .st-rows { min-width: 0; }
.cx-entry { align-items: flex-start; }
.cx-entry-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1 1 auto; overflow-wrap: anywhere; }
.cx-entry .btn { flex: none; }
.cx a.cx-entry-main { color: inherit; min-height: 44px; justify-content: center; }
.cx-memory .st-card-actions .btn { flex: 0 1 auto; }
.cx-conflict { border-color: rgba(255, 194, 77, .4); }

/* agent proposals waiting for a person: actions sit beside the text on a
   wide screen and drop to a full-width row of their own on a phone */
.cx-proposal { flex-wrap: wrap; border-left: 3px solid rgba(255, 194, 77, .55); }
.cx-proposal-actions { display: flex; flex-wrap: wrap; gap: 8px; flex: none; }
.cx-proposal-actions .btn { min-height: 44px; }
@media (max-width: 560px) {
  .cx-proposal-actions { width: 100%; }
  .cx-proposal-actions .btn { flex: 1 1 0; }
}

/* evidence picker */
.cx-pick { padding: 0; }
.cx-pick-label { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 52px; padding: 8px 12px; cursor: pointer; min-width: 0; }
.cx-pick-label input { width: 22px; height: 22px; flex: none; accent-color: var(--violet); }
.cx-pick-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; overflow-wrap: anywhere; }
.cx-picks { max-height: 52dvh; overflow-y: auto; }
.cx-statement { align-items: flex-start; flex-wrap: wrap; }
.cx-statement-text { flex: 1 1 14em; min-width: 0; overflow-wrap: anywhere; font-size: 14px; }
.cx-statement .pill { flex: none; }
.cx-statement.is-unsupported, .cx-statement.is-invalid_citation { background: rgba(255, 194, 77, .05); }
.cx-saved { align-items: flex-start; }

/* the retrieval receipt on an agent reply */
.msg-memories { margin-top: 10px; padding-top: 8px; border-top: 1px solid var(--line); font-size: 13px; color: var(--soft); white-space: normal; }
.msg-memories > summary { min-height: 44px; display: flex; align-items: center; cursor: pointer; font-weight: 600; color: var(--cyan); }
.msg-memories > summary:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; border-radius: 8px; }
.msg-memories-list { list-style: none; margin: 4px 0 8px; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.msg-memories-list li { overflow-wrap: anywhere; }
.msg-memories .block { display: block; }
.msg-memories-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.msg-memories-actions .btn { min-height: 44px; }
.thread-project { width: 100%; min-height: 44px; margin-bottom: 8px; }
