/* The conversation surface, shared by the caller's page and "Talk to it" in the console. */
.talk{display:grid;grid-template-columns:minmax(0,1fr) 330px;gap:30px;align-items:start}
.talk-main{min-width:0}
.talk-side{position:sticky;top:22px;display:grid;justify-items:center}
.talk-bar{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-bottom:12px}
.talk-state{display:inline-flex;align-items:center;gap:8px;font-size:.88rem;font-weight:620;color:var(--ink-2)}
.talk-main>.notice{margin-bottom:10px}

.transcript{height:min(54vh,470px);overflow-y:auto;display:flex;flex-direction:column;gap:12px;padding:18px;border:1.5px solid var(--rule);border-radius:16px;background:var(--paper);scroll-behavior:smooth}
.transcript--static{height:auto}
.transcript-empty{margin:auto;max-width:44ch;display:grid;gap:6px;text-align:center}
.turn{display:grid;gap:2px;max-width:min(82%,60ch)}
.turn p{padding:9px 14px;border-radius:15px;line-height:1.42;white-space:pre-wrap;overflow-wrap:anywhere}
.turn-who{font-size:.74rem;font-weight:640;color:var(--ink-faint);padding:0 5px}
.turn--assistant{align-self:flex-start}
.turn--assistant p{background:var(--ink);color:var(--chalk);border-bottom-left-radius:4px}
.turn--user{align-self:flex-end;justify-items:end}
.turn--user p{background:var(--citrus);color:var(--ink);border-bottom-right-radius:4px}
.turn.is-partial p{opacity:.62}

.talk-controls{display:flex;align-items:center;gap:16px;margin-top:16px}
.call-btn{position:relative;flex:none;width:64px;height:64px;border:0;border-radius:50%;display:grid;place-items:center;background:var(--citrus);color:var(--ink);box-shadow:inset 0 0 0 2px var(--ink);transition:transform .2s var(--e-move),background-color .15s}
.call-btn:hover:not(:disabled){background:#ffe067}
.call-btn:active:not(:disabled){transform:scale(.95)}
.call-btn:disabled{opacity:.4;cursor:default}
.call-btn.is-live{background:var(--guava);color:#fff;box-shadow:none}
.call-btn.is-live:hover{background:#f0532e}
.call-ring{position:absolute;inset:-7px;border-radius:50%;border:2px solid var(--guava);opacity:0;pointer-events:none;transition:transform .09s linear}
.call-btn.is-live .call-ring{opacity:.5}
.talk-type{flex:1;display:flex;gap:8px;min-width:0}
.talk-type .input{min-height:44px}
.talk-type .btn{min-height:44px}

.trace{margin-top:20px;padding-top:10px;border-top:1.5px solid var(--rule)}
.trace>summary{padding:4px 0;font-weight:680}
.trace-row{border-bottom:1px solid var(--rule)}
.trace-row>summary{display:flex;align-items:center;gap:8px;padding:7px 0;list-style:none}
.trace-row>summary>.t-muted{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.trace-row>summary::-webkit-details-marker{display:none}
.trace-row pre{margin:0 0 10px;max-height:320px;font-size:12px}
.transcript .trace-row{border:1px solid var(--rule);border-radius:10px;padding:0 10px;background:var(--chalk)}

@media (max-width:980px){
  .talk{grid-template-columns:minmax(0,1fr)}
  .talk-side{position:static}
}
@media (max-width:520px){
  .talk-controls{flex-wrap:wrap}
  .turn{max-width:92%}
  .transcript{padding:14px;height:min(50vh,420px)}
}
