/* The Texts and Pipeline screens (Phase 1, read only). Same tokens as the rest of HQ (css/style.css). */
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.tx { display: grid; grid-template-columns: minmax(250px, 320px) minmax(0, 1fr); gap: 14px; align-items: start; }
.tx-side, .tx-main { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 12px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.tx-main { min-height: 420px; }
.tx-list { display: flex; flex-direction: column; gap: 6px; max-height: 68vh; overflow-y: auto; }
.tx-row { display: flex; flex-direction: column; gap: 2px; text-align: left; background: var(--panel-2); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; color: var(--text); cursor: pointer; min-height: 48px; font: inherit; }
.tx-row:hover { border-color: var(--line-strong); }
.tx-row.sel { border-color: var(--blue); background: rgba(77,163,255,.1); }
.tx-name { font-weight: 600; font-size: 14px; }
.tx-sub { color: var(--muted); font-size: 12px; }
.tx-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.tx-title { font-size: 17px; margin: 0; }
.tx-back { display: none; align-self: flex-start; }
.tx-reach { border-radius: 10px; padding: 10px 12px; display: flex; flex-direction: column; gap: 2px; font-size: 13.5px; border: 1px solid var(--line); background: var(--panel-2); }
.tx-reach.ok { border-color: rgba(77,163,255,.5); }
.tx-reach.warn { border-color: var(--yellow); background: rgba(245,196,81,.1); }
.tx-reach.stop { border-color: var(--red); background: rgba(255,90,90,.1); }
.tx-msgs { display: flex; flex-direction: column; gap: 10px; max-height: 52vh; overflow-y: auto; padding: 4px 2px; }
.tx-msg { display: flex; flex-direction: column; gap: 3px; max-width: 82%; }
.tx-msg.in { align-self: flex-start; }
.tx-msg.out { align-self: flex-end; align-items: flex-end; }
.tx-bub { background: var(--panel-2); border: 1px solid var(--line); border-radius: 14px; padding: 8px 12px; font-size: 14px; white-space: pre-wrap; overflow-wrap: anywhere; }
.tx-msg.out .tx-bub { background: rgba(77,163,255,.14); border-color: rgba(77,163,255,.4); }
.tx-meta { color: var(--muted); font-size: 11.5px; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.tx-note { margin: 0; }
@media (max-width: 760px) {
  .tx { grid-template-columns: 1fr; }
  .tx.has-thread .tx-side { display: none; }
  .tx:not(.has-thread) .tx-main { display: none; }
  .tx-back { display: inline-flex; }
  .tx-list { max-height: none; }
  .tx-msg { max-width: 92%; }
}
.pl { display: flex; flex-direction: column; gap: 10px; }
.pl-bar { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.pl-board { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 8px; align-items: flex-start; }
.pl-col { flex: 0 0 240px; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 10px; display: flex; flex-direction: column; gap: 8px; }
.pl-colhead { display: flex; flex-direction: column; gap: 1px; font-size: 13px; }
.pl-deal { background: var(--panel-2); border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; display: flex; flex-direction: column; gap: 5px; }
.pl-dname { font-weight: 600; font-size: 13.5px; overflow-wrap: anywhere; }
.pl-dmeta { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; font-size: 12px; }
.pl-more { font-size: 12px; }
@media (max-width: 600px) { .pl-col { flex-basis: 78vw; } }
