/* transcript-card.css — 🗒️ the transcript card: 🎙 guided meeting recorder + 📋 paste-text tools */
/* the card body scrolls (Sum: "needs a scroll on card, I am stuck") — content taller than the card is reachable. */
.p-transcript .card-body { overflow-y: auto; }
.tx-wrap { display: flex; flex-direction: column; gap: 10px; width: 100%; padding: 12px 14px; box-sizing: border-box; }

/* ── tabs ── */
.tx-tabs { display: flex; gap: 6px; }
.tx-tab { font: inherit; font-size: 0.82em; font-weight: 700; cursor: pointer; padding: 5px 12px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--surface); color: var(--text-dim); }
.tx-tab:hover { color: var(--text); }
.tx-tab.on { background: var(--lav-deep, #4b3f8f); border-color: var(--lav-deep, #4b3f8f); color: #fff; }
.tx-panel[hidden] { display: none; }

/* ── tab 1: the guided meeting ── */
.tx-meet { display: flex; flex-direction: column; gap: 9px; }
.tx-guide { display: flex; flex-direction: column; gap: 6px; max-height: 210px; overflow-y: auto;
  padding: 8px; border: 1px solid var(--line); border-radius: var(--r-sm, 8px); background: var(--surface); }
.tx-b { max-width: 88%; padding: 6px 10px; border-radius: 12px; font-size: 0.86em; line-height: 1.45; white-space: pre-wrap; word-break: break-word; }
.tx-b-bot { align-self: flex-start; background: var(--surface-2, #222); color: var(--text); border-bottom-left-radius: 4px; }
.tx-b-me  { align-self: flex-end; background: var(--lav-deep, #4b3f8f); color: #fff; border-bottom-right-radius: 4px; }

.tx-inrow { display: flex; gap: 6px; align-items: center; }
.tx-speaker { font: inherit; font-size: 0.82em; padding: 5px 6px; border-radius: var(--r-sm, 6px); border: 1px solid var(--line); background: var(--surface); color: var(--text); flex-shrink: 0; max-width: 34%; }
.tx-in { flex: 1 1 auto; min-width: 0; font: inherit; font-size: 0.9em; padding: 7px 10px; border-radius: var(--r-sm, 8px); border: 1px solid var(--line); background: var(--surface); color: var(--text); }
.tx-in:focus { outline: none; border-color: var(--lav-deep, #4b3f8f); }
.tx-send { font: inherit; font-size: 0.82em; font-weight: 700; cursor: pointer; padding: 7px 13px; border-radius: var(--r-sm, 8px);
  border: 0; background: var(--lav-deep, #4b3f8f); color: #fff; flex-shrink: 0; }
.tx-send:hover { filter: brightness(1.12); }

.tx-rec { border: 1px solid var(--line); border-radius: var(--r-sm, 8px); background: var(--surface-2, var(--surface)); overflow: hidden; }
.tx-rec-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 6px 10px; border-bottom: 1px solid var(--line); background: var(--surface); }
.tx-rec-title { font-size: 0.78em; font-weight: 700; opacity: 0.85; color: var(--text); }
.tx-rec-tools { display: inline-flex; gap: 6px; }
.tx-rec-tools button { font: inherit; font-size: 0.74em; cursor: pointer; padding: 3px 9px; border-radius: var(--r-sm, 6px); border: 1px solid var(--line); background: var(--surface-2, var(--surface)); color: var(--text); }
.tx-rec-tools button:hover { background: var(--line); }
.tx-rec-tools button[hidden] { display: none; }
.tx-end { color: var(--danger, #c2410c) !important; font-weight: 700; }
.tx-box { padding: 10px 12px; min-height: 90px; max-height: 320px; overflow-y: auto; font-size: 0.86em; line-height: 1.55;
  color: var(--text); white-space: pre-wrap; word-break: break-word; font-family: ui-monospace, 'SF Mono', Menlo, monospace; }
.tx-box:empty::before { content: attr(placeholder); opacity: 0.5; font-family: inherit; }

/* ── tab 2: paste-text tools ── */
.tx-controls { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.tx-botlabel { font-size: 0.82em; opacity: 0.8; color: var(--text); display: inline-flex; align-items: center; gap: 5px; }
.tx-bot { font: inherit; font-size: 0.82em; padding: 3px 6px; border-radius: var(--r-sm, 6px); border: 1px solid var(--line); background: var(--surface); color: var(--text); }
.tx-acts { display: inline-flex; gap: 6px; flex-wrap: wrap; margin-left: auto; }
.tx-act { font: inherit; font-size: 0.82em; font-weight: 700; cursor: pointer; padding: 5px 11px; border-radius: var(--r-sm, 6px);
  border: 1px solid var(--line); background: var(--surface-2, var(--surface)); color: var(--text); }
.tx-act:hover:not(:disabled) { background: var(--line); }
.tx-act:disabled { opacity: 0.55; cursor: default; }
.tx-src { width: 100%; min-height: 150px; resize: vertical; box-sizing: border-box; font: inherit; font-size: 0.9em; line-height: 1.5;
  padding: 10px 12px; border-radius: var(--r-sm, 8px); border: 1px solid var(--line); background: var(--surface); color: var(--text); }
.tx-src:focus { outline: none; border-color: var(--lav-deep, #4b3f8f); }
.tx-src.tx-empty { border-color: var(--danger, #c2410c); animation: tx-nudge 0.9s ease; }
@keyframes tx-nudge { 0%,100% { transform: translateX(0); } 20%,60% { transform: translateX(-3px); } 40%,80% { transform: translateX(3px); } }
.tx-out { border: 1px solid var(--line); border-radius: var(--r-sm, 8px); background: var(--surface-2, var(--surface)); overflow: hidden; }
.tx-out-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 6px 10px; border-bottom: 1px solid var(--line); background: var(--surface); }
.tx-out-title { font-size: 0.78em; font-weight: 700; opacity: 0.85; color: var(--text); }
.tx-copy { font: inherit; font-size: 0.74em; cursor: pointer; padding: 3px 9px; border-radius: var(--r-sm, 6px); border: 1px solid var(--line); background: var(--surface-2, var(--surface)); color: var(--text); }
.tx-copy:hover { background: var(--line); }
.tx-out-body { padding: 10px 12px; font-size: 0.9em; line-height: 1.55; color: var(--text); white-space: pre-wrap; word-break: break-word; max-height: 420px; overflow: auto; }
