/* Spec 31 VFO-07: "Put me on your phone", pinned at the top of the
   assistant's dock until Telegram is connected. */
.dock-phone-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
  margin: 10px 12px 0;
  padding: 12px 14px;
  border: 1px solid color-mix(in srgb, var(--ui-accent) 38%, var(--ui-line));
  border-radius: 12px;
  background: color-mix(in srgb, var(--ui-accent) 7%, var(--ui-panel-soft, var(--ui-panel)));
}
.dock-phone-card[hidden] { display: none; }
.dock-phone-card h3 { margin: 0; color: var(--ui-text); font-size: .92rem; }
.dock-phone-card p { margin: 4px 0 0; color: var(--ui-text-soft); font-size: .8rem; line-height: 1.45; }
.dock-phone-card .dock-phone-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.dock-phone-card .dock-phone-actions[hidden] { display: none; }
.dock-phone-qr { width: 112px; height: 112px; padding: 6px; box-sizing: border-box; border-radius: 8px; background: #fff; image-rendering: pixelated; }
.dock-phone-qr[hidden] { display: none; }
.dock-phone-open { display: none; }
@media (max-width: 600px) {
  .dock-phone-card { grid-template-columns: 1fr; }
  .dock-phone-qr { display: none; }
  .dock-phone-qr[hidden] { display: none; }
  .dock-phone-open { display: inline-flex; min-height: 44px; align-items: center; }
  .dock-phone-card .button { min-height: 44px; }
}
@media (max-width: 820px) {
  /* The phone conversation header is absolutely positioned over the top
     52px of the column (multi-dock-phone.css, spec 25 MB5): start below it. */
  .dock-phone-card { margin-top: calc(60px + env(safe-area-inset-top, 0px)); }
}
