/* Messages is a full workspace surface, with native navigation at the left
   edge. These rules only apply while the isolated integration is visible. */
.ra-workspace #main:has(> .rentaid-messaging-panel:not([hidden])) {
  width: 100%; max-width: none; margin: 0; padding: 0; background: #fff;
}
.ra-workspace #shell:has(.rentaid-messaging-panel:not([hidden])) .ra-topline,
.ra-workspace #shell:has(.rentaid-messaging-panel:not([hidden])) .sidebar .ra-main-nav {
  max-width: none; padding-left: 24px; padding-right: 24px;
}
.ra-workspace #shell:has(.rentaid-messaging-panel:not([hidden])) .main-wrap > footer,
body:has(.rentaid-messaging-panel:not([hidden])) > .ra-agent-launch {
  display: none;
}
.rentaid-messaging-panel {
  --rentaid-messaging-dock: 0px;
  background: #fff; border: 0; border-radius: 0; box-shadow: none;
  overflow: hidden; display: flex; flex-direction: column; margin: 0; padding: 0;
  height: max(200px, calc(100dvh - var(--rentaid-messaging-top, 180px) - var(--rentaid-messaging-dock)));
}
.rentaid-messaging-panel[hidden], .rentaid-messaging-panel [hidden] { display: none !important; }
.rentaid-messaging-title {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0;
}
.rentaid-messaging-panel iframe {
  display: block; width: 100%; flex: 1; min-height: 0; height: auto;
  border: 0; background: #f6f8fa;
}
.rentaid-messaging-panel [data-messaging-status]:empty { display: none; }
.rentaid-messaging-panel [data-messaging-status] { padding: 16px 24px; }
.rentaid-messaging-panel [data-messaging-retry] { align-self: flex-start; margin: 0 24px 16px; }
.rentaid-signout-warning {
  position: fixed; bottom: 20px; left: 20px; right: 20px; z-index: 3000;
  max-width: 480px; padding: 16px; background: #fff4df; color: #593d16;
  border: 1px solid #d6b874; border-radius: 12px;
}
.rentaid-signout-warning p { margin: 0 0 10px; }
@media (max-width: 1000px) {
  .rentaid-messaging-panel { --rentaid-messaging-dock: calc(71px + env(safe-area-inset-bottom)); }
  .ra-workspace #shell:has(.rentaid-messaging-panel:not([hidden])) .ra-topline { padding: 10px 14px; }
}
