/* patron-chat-bubbles.css — p196 (2026-11-26). Albert: "bring back the colored speech bubbles from the bots".
   Loaded after patron-chat-read.css. p162b made every answer reading text under the robot's head; this puts the words back on
   the robot's own key (p63's bubble: the key's gradient, its lip under it, white words; the Developer's lemon key with ink
   words, p141d). Kept from p162b: the head line (the robot's head, its name, the time) over each run of answers, and every
   card in its own shell (a white or dark card sitting inside the coloured bubble). His own lines stay the calm pill.
   Everything is under html[data-home] .pc, in Dark, White and Sky, on a laptop and a phone. */

/* ------------------------------------------------------------------ the bubble: the robot's key */
html[data-home] .pc .pc-msg.bot{align-self:flex-start;max-width:min(88%,720px)}
html[data-home] .pc .pc-msg.bot:has(.pd,.pc-doccard,.sd-style,.dk-card,.dkd,.pa-brief,.pi-list){max-width:100%}
html[data-home] .pc .pc-msg.bot[data-bot]>.pc-bub{box-sizing:border-box;width:auto;max-width:calc(100% - 38px);margin:0 0 3px 38px;padding:11px 16px;border-radius:20px;
  background:linear-gradient(180deg,var(--k-top) 0,var(--k-mid) 30px,var(--k-mid) calc(100% - 18px),var(--k-bot) 100%);color:#fff;font-weight:500;
  font-size:15px;line-height:23px;text-shadow:0 1px 1px rgba(0,0,0,.14);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.42),inset 0 0 0 1px rgba(0,0,0,.12),0 3px 0 var(--k-lip)}
html[data-home] .pc .pc-msg.bot[data-bot]>.pc-bub:has(.pd,.pc-doccard,.sd-style,.dk-card,.dkd,.pa-brief,.pi-list){width:calc(100% - 38px)}
/* a run's later answers have no head line: the bubble still lines up under the name */
html[data-home] .pc .pc-msg.bot[data-bot] .pc-md .md{font-size:15px;line-height:23px}
html[data-home] .pc .pc-msg.bot[data-bot] .pc-md .md :is(strong,b,h1,h2,h3,h4,th){color:inherit}
html[data-home] .pc .pc-msg.bot[data-bot] .pc-md .md-mark{color:rgba(255,255,255,.85)}
html[data-home] .pc .pc-msg.bot[data-bot] .pc-md .md :is(a,a.md-link){color:#fff;text-decoration:underline;text-decoration-color:rgba(255,255,255,.6)}
html[data-home] .pc .pc-msg.bot[data-bot] .pc-md .md :is(code,.md-tick){background:rgba(0,0,0,.2);color:#fff;box-shadow:none;text-shadow:none}
html[data-home] .pc .pc-msg.bot[data-bot] .pc-md :is(table,th,td){border-color:rgba(255,255,255,.28)}
html[data-home] .pc .pc-msg.bot[data-bot] .pc-md ::selection{background:rgba(0,0,0,.35);color:#fff}
/* the cards inside keep p162b's shells; their words are the card's own ink, never the bubble's white */
html[data-home] .pc .pc-msg.bot[data-bot]>.pc-bub :is(.pc-ask,.pq,.pd,.pc-doccard,.sd-style,.pa-brief,.dk-card,.dkd,.pc-soc,.pk,.pi-list,.pg-mail,.pg-event){text-shadow:none;font-weight:400}
html[data-home] .pc .pc-msg.bot[data-bot]>.pc-bub :is(.pc-ask,.pq,.pd,.pc-doccard,.sd-style,.pa-brief,.dk-card,.dkd,.pc-soc,.pk,.pi-list):first-child{margin-top:2px}
/* in Dark the cards are glass (p162b): inside a coloured bubble they would take its colour, so there they are solid */
html[data-home][data-theme="dark"] .pc .pc-msg.bot[data-bot]>.pc-bub{--rd-card:#17181c}
/* the Developer's key is light: ink words on it (p141d) */
html[data-home] .pc .pc-msg.bot[data-bot="dev"]>.pc-bub{color:#2E2600;text-shadow:0 1px 0 rgba(255,255,255,.28)}
html[data-home] .pc .pc-msg.bot[data-bot="dev"] .pc-md .md-mark{color:#2E2600}
html[data-home] .pc .pc-msg.bot[data-bot="dev"] .pc-md .md :is(a,a.md-link){color:#2E2600;text-decoration-color:rgba(0,0,0,.35)}
html[data-home] .pc .pc-msg.bot[data-bot="dev"] .pc-md .md :is(code,.md-tick){background:rgba(0,0,0,.1);color:#2E2600}
html[data-home] .pc .pc-msg.bot[data-bot="dev"] .pc-md ::selection{background:rgba(0,0,0,.18);color:#2E2600}
html[data-home][data-theme="light"] .pc .pc-msg.bot[data-bot="dev"]>.pc-bub{box-shadow:inset 0 1px 0 rgba(255,255,255,.4),inset 0 0 0 1px rgba(0,0,0,.16),0 3px 0 var(--k-lip),0 6px 14px -6px rgba(24,24,20,.3)}
/* on White and Sky the other keys get a soft shadow under the lip, so they stand on the light page */
html[data-home][data-theme="light"] .pc .pc-msg.bot[data-bot]:not([data-bot="dev"])>.pc-bub{box-shadow:inset 0 1px 0 rgba(255,255,255,.34),inset 0 0 0 1px rgba(0,0,0,.1),0 3px 0 var(--k-lip),0 6px 14px -8px rgba(24,24,20,.28)}
/* Copy, under the bubble */
html[data-home] .pc .pc-msg.bot>.pc-under{padding-left:42px}

/* ------------------------------------------------------------------ thinking: three dots on the robot's key (p63) */
html[data-home] .pc .pc-msg.live.typing>.pc-bub{position:relative;width:66px;height:40px;padding:0;margin-left:38px}
html[data-home] .pc .pc-msg.live.typing>.pc-bub::after{left:50%;transform:translate(-50%,-50%);width:34px;height:18px;
  --dot:radial-gradient(circle closest-side,#fff 90%,rgba(255,255,255,0))}
html[data-home] .pc .pc-msg.live.typing[data-bot="dev"]>.pc-bub::after{--dot:radial-gradient(circle closest-side,#2E2600 90%,rgba(46,38,0,0))}

/* ------------------------------------------------------------------ a phone: the bubble keeps more of the width */
@media (max-width:600px){
  html[data-home] .pc .pc-msg.bot{max-width:94%}
  html[data-home] .pc .pc-msg.bot[data-bot]>.pc-bub{margin-left:0;max-width:100%}
  html[data-home] .pc .pc-msg.bot[data-bot]>.pc-bub:has(.pd,.pc-doccard,.sd-style,.dk-card,.dkd,.pa-brief,.pi-list){width:100%}
  html[data-home] .pc .pc-msg.live.typing>.pc-bub{margin-left:0}
  html[data-home] .pc .pc-msg.bot>.pc-under{padding-left:4px}
}

/* ------------------------------------------------------------------ p196: the selected element (patron-pick.js) */
.pw-pick{display:inline-flex;align-items:center;gap:6px}
.pw-pick.on{background:#2f6bff;color:#fff}
.pc-chip.pk-chip .pc-chipk{background:#2f6bff;color:#fff}
.pc-msg.me .pk-said{display:inline-flex;margin-top:6px;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;padding:3px 10px;border-radius:8px;
  background:rgba(47,107,255,.14);color:inherit;font-size:13px;line-height:20px}
.pc-msg.me .pc-said+.pk-said{display:flex;width:max-content}
