/* Captain Playground, voice test panel: while a call runs (or a transcript is on screen) the big mic, timer and buttons
   become one call bar, and the transcript gets the room (it used to be squeezed to a thin strip). */
.captain-readable .bg-gradient-to-b.from-primary\/\[0\.03\].overflow-y-auto:is(:has(>.max-h-56),:has(>div>button.bg-red-600)){
  display:grid;grid-template-columns:auto minmax(0,1fr) auto;grid-template-rows:auto auto auto auto minmax(0,1fr) auto auto;
  column-gap:14px;row-gap:0;align-items:center;align-content:stretch;padding:14px 16px}
.captain-readable .bg-gradient-to-b.from-primary\/\[0\.03\].overflow-y-auto.overflow-y-auto:has(>.max-h-56):has(>.max-h-56){grid-template-rows:auto auto auto auto minmax(150px,1fr) auto auto}
/* call bar: mic | status + timer | buttons */
.captain-readable .from-primary\/\[0\.03\]:is(:has(>.max-h-56),:has(>div>button.bg-red-600))>div:nth-child(2){grid-column:1;grid-row:1/3;gap:0}
.captain-readable .from-primary\/\[0\.03\]:is(:has(>.max-h-56),:has(>div>button.bg-red-600))>div:nth-child(2)>span{display:none}
.captain-readable .from-primary\/\[0\.03\]:is(:has(>.max-h-56),:has(>div>button.bg-red-600))>div:nth-child(2)>div{width:56px;height:56px}
.captain-readable .from-primary\/\[0\.03\]:is(:has(>.max-h-56),:has(>div>button.bg-red-600))>div:nth-child(2)>div>span:nth-child(2){inset:4px}
.captain-readable .from-primary\/\[0\.03\]:is(:has(>.max-h-56),:has(>div>button.bg-red-600))>div:nth-child(2)>div>span:nth-child(3){inset:6px}
.captain-readable .from-primary\/\[0\.03\]:is(:has(>.max-h-56),:has(>div>button.bg-red-600))>div:nth-child(2)>div>div{width:42px;height:42px}
.captain-readable .from-primary\/\[0\.03\]:is(:has(>.max-h-56),:has(>div>button.bg-red-600))>div:nth-child(2)>div>div>svg{width:20px;height:20px}
.captain-readable .from-primary\/\[0\.03\]:is(:has(>.max-h-56),:has(>div>button.bg-red-600))>div:nth-child(1){grid-column:2;grid-row:1;text-align:left;align-self:end}
.captain-readable .from-primary\/\[0\.03\]:is(:has(>.max-h-56),:has(>div>button.bg-red-600))>div:nth-child(1)>div:first-child{justify-content:flex-start;font-size:14px}
.captain-readable .from-primary\/\[0\.03\]:is(:has(>.max-h-56),:has(>div>button.bg-red-600))>div:nth-child(1)>div:last-child{margin-top:0;font-size:12px}
.captain-readable .from-primary\/\[0\.03\]:is(:has(>.max-h-56),:has(>div>button.bg-red-600))>div:nth-child(3){grid-column:2;grid-row:2;text-align:left;align-self:start;display:flex;align-items:baseline;gap:6px}
.captain-readable .from-primary\/\[0\.03\]:is(:has(>.max-h-56),:has(>div>button.bg-red-600))>div:nth-child(3)>div:first-child{font-size:18px;line-height:1.3}
.captain-readable .from-primary\/\[0\.03\]:is(:has(>.max-h-56),:has(>div>button.bg-red-600))>div:nth-child(3)>div:last-child{font-size:9.5px;letter-spacing:.08em;white-space:nowrap}
.captain-readable .from-primary\/\[0\.03\]:is(:has(>.max-h-56),:has(>div>button.bg-red-600))>:nth-child(4){grid-column:3;grid-row:1/3;justify-self:end;gap:8px}
.captain-readable .from-primary\/\[0\.03\]:is(:has(>.max-h-56),:has(>div>button.bg-red-600))>:nth-child(4) button,
.captain-readable .from-primary\/\[0\.03\]:is(:has(>.max-h-56),:has(>div>button.bg-red-600))>button:nth-child(4){padding:7px 14px;font-size:13px}
/* the rest: full width rows, 12px apart */
.captain-readable .from-primary\/\[0\.03\]:is(:has(>.max-h-56),:has(>div>button.bg-red-600))>p.max-w-xs{grid-column:1/-1;grid-row:3;max-width:none;margin-top:10px}
.captain-readable .from-primary\/\[0\.03\]:is(:has(>.max-h-56),:has(>div>button.bg-red-600))>div.border-red-200{grid-column:1/-1;grid-row:4;margin-top:12px}
.captain-readable .from-primary\/\[0\.03\]:is(:has(>.max-h-56),:has(>div>button.bg-red-600))>div.grid-cols-3{grid-column:1/-1;grid-row:6;margin-top:12px}
.captain-readable .from-primary\/\[0\.03\]:is(:has(>.max-h-56),:has(>div>button.bg-red-600))>div.grid-cols-3>div{padding:6px 10px}
.captain-readable .from-primary\/\[0\.03\]:is(:has(>.max-h-56),:has(>div>button.bg-red-600))>div.bg-primary\/5{grid-column:1/-1;grid-row:7;margin-top:10px;padding:6px 10px;font-size:11.5px;line-height:1.4}
/* the transcript: a proper box with a heading, filling the space left */
.captain-readable .from-primary\/\[0\.03\]>.max-h-56{grid-column:1/-1;grid-row:5;align-self:stretch;margin-top:12px;max-height:none;min-height:0;flex-shrink:0;padding:0 12px 12px;border-color:var(--line,#e5e7eb);background:var(--surface-2,#f8fafc);scroll-padding-top:40px}
.captain-readable .from-primary\/\[0\.03\]>.max-h-56::before{content:"Live transcript";position:sticky;top:0;z-index:1;display:block;margin:0 -12px 6px;padding:9px 12px 7px;border-bottom:1px solid var(--line,#e5e7eb);background:var(--surface-2,#f8fafc);color:var(--ink-3,#6b7280);font-size:10.5px;font-weight:600;letter-spacing:.08em;text-transform:uppercase}
.captain-readable .from-primary\/\[0\.03\]>.max-h-56>div>div{font-size:13px;line-height:1.45}
.captain-readable .from-primary\/\[0\.03\]>.max-h-56>div>div.bg-gray-100{background:var(--surface,#fff);border:1px solid var(--line,#e5e7eb)}
.captain-readable .from-primary\/\[0\.03\]:not(:has(>div>button.bg-red-600))>.max-h-56::before{content:"Transcript"}
.dark .captain-readable .from-primary\/\[0\.03\]>.max-h-56>div>div.bg-gray-100{background:var(--surface-3,#1f2937)}
