/* Host geometry only; the shared Agent owns its messages/composer/theme. */
.legacy-shell #tab-agent {
  position: relative;
  min-width: 0;
  height: var(--desktop-agent-height, 70dvh);
  min-height: 200px;
  overflow: hidden;
  border: 1px solid var(--page-line, #dce5ef);
  border-radius: 16px;
  background: var(--page-card, #fff);
}
.legacy-shell #tab-agent.hidden { display: none; }
#desktopAgentFrame { display: block; width: 100%; height: 100%; border: 0; }
.desktop-agent-active .container { padding: 16px; }
.desktop-agent-status {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 12px; padding: 20px; text-align: center;
  background: var(--page-card, #fff); color: var(--page-ink, #111318);
}
.desktop-agent-status[hidden], .desktop-agent-status [hidden] { display: none; }
.desktop-agent-status p { margin: 0; }
.desktop-agent-signin, .desktop-agent-retry {
  min-height: 44px; padding: 10px 16px; border-radius: 12px;
  background: var(--page-tint, #eff6ff); color: var(--page-accent, #2563eb);
  border: 1px solid var(--page-line, #dce5ef); font: inherit; text-decoration: none;
}
@media (max-width: 700px) {
  .desktop-agent-active .container { padding: 8px !important; }
  .legacy-shell #tab-agent { border-radius: 12px; }
}
