/* Agent and assistant questions. Columns like the To Do board beside them,
   because that is what the office asked for and the two sit on the same page. */

.qn-intro { max-width: 760px; margin: 0 0 14px; }

.qn-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 14px; }
.qn-col { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 12px 13px; }
.qn-col-head { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
.qn-col-head b { font-size: 14px; }
.qn-count { font-size: 11.5px; font-weight: 700; background: var(--blue); color: #fff;
  border-radius: 9px; padding: 1px 7px; }
.qn-col > p { margin: 0 0 10px; }
.qn-empty { color: var(--muted); font-size: 13px; padding: 8px 0; }

.qn-card { border: 1px solid var(--border); border-radius: 9px; padding: 9px 11px;
  margin-bottom: 8px; background: #fff; cursor: pointer; }
.qn-card.open { border-color: var(--blue); cursor: default; }
.qn-card.done { opacity: .6; }

.qn-top { display: flex; align-items: center; gap: 7px; margin-bottom: 4px; }
.qn-who { display: flex; align-items: baseline; gap: 6px; min-width: 0; }
.qn-who b { font-size: 13px; }
.qn-pill { font-size: 11px; font-weight: 600; background: var(--bg); border-radius: 6px; padding: 1px 6px;
  color: var(--muted); white-space: nowrap; }
.qn-pill.good { background: #ecfdf5; color: #047857; }

.qn-text { font-size: 13.5px; line-height: 1.55; white-space: pre-wrap; }
.qn-meta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; font-size: 12px; }
.qn-meta a { display: inline-flex; align-items: center; gap: 4px; }
.qn-meta svg { width: 13px; height: 13px; }

/* A reply is indented under the question, which is the whole shape of the
   thing: one question, then what came back. */
.qn-reply { margin-top: 8px; padding: 8px 10px; background: var(--bg); border-radius: 8px;
  border-left: 2px solid var(--blue); font-size: 13px; line-height: 1.55; white-space: pre-wrap; }
.qn-reply-head { display: flex; align-items: baseline; gap: 8px; margin-bottom: 3px; }
.qn-reply-head b { font-size: 12.5px; }
.qn-file { display: inline-flex; align-items: center; gap: 4px; margin-top: 5px; font-size: 12px; }
.qn-file svg { width: 13px; height: 13px; }

.qn-replybox { margin-top: 9px; border-top: 1px solid var(--border); padding-top: 9px; }
.qn-replybox textarea { width: 100%; padding: 8px 10px; border: 1px solid var(--border);
  border-radius: 8px; font: inherit; font-size: 13px; resize: vertical; }
.qn-replybox textarea:focus { outline: 0; border-color: var(--blue); }
.qn-actions { display: flex; align-items: center; gap: 8px; margin-top: 8px; flex-wrap: wrap; }
.qn-check { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); }
.qn-check input { width: 15px; height: 15px; }

.qn-files { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 6px; }
.qn-chip { display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px;
  background: #eff6ff; border: 1px solid #bfdbfe; color: #1e40af; border-radius: 6px; padding: 2px 7px; }
.qn-chip button { border: 0; background: transparent; color: inherit; cursor: pointer;
  font-size: 13px; line-height: 1; padding: 0; opacity: .6; }
.qn-chip button:hover { opacity: 1; }

.qn-picklist { max-height: 260px; overflow-y: auto; border: 1px solid var(--border);
  border-radius: 8px; padding: 6px; }
.qn-pick { display: flex; align-items: center; gap: 8px; padding: 5px 6px; font-size: 13px;
  border-radius: 6px; cursor: pointer; }
.qn-pick:hover { background: var(--bg); }

/* The To Do widget's foot, now that it has two destinations rather than one. */
.td-foot { margin-top: 10px; }
.td-where { display: block; line-height: 1.5; margin-bottom: 8px; }
.td-buttons { display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; }

@media (max-width: 640px) {
  .qn-cols { grid-template-columns: 1fr; }
  .qn-actions { flex-direction: column; align-items: stretch; }
}
