/* Not generated: fixes on top of talk-to-juney.css (built by scripts/build-talk-to-juney.mjs from concept 13, which
   overwrites only that file and talk-to-juney.js). Loaded after it by talk-to-juney.tsx. Each rule belongs in 13's
   source; until it's there it lives here so the generated files stay as built. The doubled .cc outranks 13's rules
   whatever order the two stylesheets land in. */

/* A text chat can be ended (28 Oct). 13 hid the red end button whenever the card was in text mode, so a typed chat had
   no way to stop short of closing the card. It now keeps its place in the middle of the footer, as in a voice call;
   mute (voice only) keeps its column hidden so the end button stays centred and Talk stays on the right. */
.ttj .cc.cc[data-mode="text"] .cc-foot { grid-template-columns: 1fr auto 1fr; }
.ttj .cc.cc[data-mode="text"] .cc-end { display: grid; }
.ttj .cc.cc[data-mode="text"] .cc-mute { display: inline-flex; visibility: hidden; }
.ttj .cc.cc[data-mode="text"] .cc-type { justify-self: start; }

/* Transcripts weren't cut off for good (28 Oct). In a call card, 13 clamps every turn but the newest two to two lines,
   so three turns stay in view while she talks (Andrew, 23 Oct). That clamp had no bottom padding fix, so half of a third
   line showed under it, and it stayed on after the call and in a typed chat, where the words couldn't be read at all.
   While a voice call is live the clamp stays, with its bottom padding drawn as a border so no partial line shows (as
   13 used to do for the corner's clamped turns). Once the call ends, and throughout a typed chat, every turn reads in
   full: the transcript already scrolls, newest at the bottom. */
.ttj .card-slot .cc.cc:not([data-mode="text"], [data-sub="ended"]) .tx-list > .tx-msg:not(:nth-last-child(-n+2 of .tx-msg)) .tx-text { padding-bottom: 0; border-bottom: 11px solid var(--panel); }
.ttj .card-slot .cc.cc:not([data-mode="text"], [data-sub="ended"]) .tx-list > .tx-msg[data-role="you"]:not(:nth-last-child(-n+2 of .tx-msg)) .tx-text { border-bottom-color: var(--juney-accent-soft); }
.ttj .card-slot .cc.cc:is([data-mode="text"], [data-sub="ended"]) .tx-list > .tx-msg .tx-text {
  display: block;
  -webkit-line-clamp: unset;
  line-clamp: none;
  overflow: visible;
}

/* A typed chat minimised to the corner pill had a mute button (28 Oct): 13 hides the pill's `.js-mute` in text mode,
   but the pill's mute is `.ja-mute`, so the rule never matched. A chat has no microphone to mute. */
.ttj .dock[data-pill="call"][data-mode="text"] .ja-mute { display: none; }
