/* Presentation dock: a visible face and direct controls, with the page above clear. */
.dock-stop { display: none; }
@media (max-width: 850px) {
  :root { --dock-tile: 88px; --dock-h: 106px; }
  .assistant.is-docked {
    display: grid; grid-template-columns: var(--dock-tile) minmax(0, 1fr) 44px;
    grid-template-rows: 44px 44px; gap: 0 8px; align-items: center;
  }
  .is-docked .avatar-stage { grid-column: 1; grid-row: 1 / 3; }
  /* Give the poster, idle loop and speaking videos the same close-up. */
  .is-docked .avatar-stage :is(img, video) {
    object-position: 50% 30%; transform-origin: 50% 32%; scale: 2;
  }
  .is-docked .chat { grid-column: 2; grid-row: 1; width: 100%; max-height: 44px; }
  .is-docked .assistant-head { grid-column: 3; grid-row: 1; }
  .is-docked .call-controls { grid-column: 2 / 4; grid-row: 2; justify-content: flex-end; gap: 6px; }
  .is-docked #speaker { display: grid; }
  .is-docked .ctl-icon { width: 44px; height: 44px; }
  .is-docked .dock-stop {
    display: inline-flex; align-items: center; justify-content: center; gap: 4px;
    min-height: 44px; min-width: 44px; padding: 0 6px; margin-inline-end: auto;
    border: 1px solid var(--field-line); border-radius: var(--r-pill);
    background: var(--surface); color: var(--ink); font-size: .75rem;
  }
  .is-docked .dock-stop svg { width: 14px; height: 14px; }
  .is-docked .dock-stop:disabled { visibility: hidden; }
  .is-docked .suggestions { max-width: 100%; }
  .is-docked .chip--strong { min-height: 44px; max-width: 100%; white-space: normal; overflow-wrap: anywhere; }
  [data-companion="docked"] .main,
  [data-companion="docked"][data-offer] .main { padding-bottom: calc(var(--companion-clearance, var(--dock-reserve)) + 24px); }
  html[data-companion="docked"],
  html[data-companion="docked"][data-offer] { scroll-padding-bottom: calc(var(--companion-clearance, var(--dock-reserve)) + 16px); }
}
@media (max-width: 360px) {
  :root { --dock-tile: 72px; }
  .is-docked .avatar-stage { height: 88px; }
  .is-docked .call-controls { gap: 4px; }
}
/* Short landscape keeps the companion beside navigation, with a smaller portrait. */
@media (max-height: 500px) and (max-width: 850px) and (orientation: landscape) {
  :root { --dock-tile: 64px; }
  .assistant:not(.is-docked) .avatar-stage { min-height: 48px; }
  .is-docked .avatar-stage { height: 88px; }
  .is-docked .dock-stop span { display: none; }
}

/* The full conversation header owns the voice choice on mobile and desktop. */
.reply-voice {
  position: relative; flex: none; margin-inline-start: auto;
}
.reply-voice[hidden], .is-docked .reply-voice { display: none; }
.reply-voice span {
  position: absolute; inset-block-start: 3px; inset-inline-start: 10px;
  font-size: .65rem; color: var(--ink-2); pointer-events: none;
}
.reply-voice select {
  display: block; min-height: 44px; max-width: 100%;
  padding: 13px 8px 2px; border: 1px solid var(--field-line); border-radius: var(--r-md);
  background: var(--surface); color: var(--ink); font: inherit; font-size: .8rem; cursor: pointer;
}
.reply-voice select:disabled { cursor: default; }
