.mobile-app-prompt[hidden] { display: none !important; }
.mobile-app-prompt {
  position: sticky;
  top: 0;
  z-index: 120;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 10px;
  box-sizing: border-box;
  width: 100%;
  padding: calc(10px + env(safe-area-inset-top, 0px)) max(10px, env(safe-area-inset-right, 0px)) 10px max(10px, env(safe-area-inset-left, 0px));
  border-bottom: 1px solid #2c5146;
  background: #0c241d;
  color: #f3faf6;
  font-family: inherit;
  line-height: 1.5;
  color-scheme: dark;
}
.mobile-app-prompt * { box-sizing: border-box; }
.mobile-app-prompt__icon { flex: 0 0 38px; border-radius: 10px; object-fit: contain; }
.mobile-app-prompt__copy { flex: 1 1 auto; min-width: 0; }
.mobile-app-prompt__copy strong { display: block; font-size: 13px; font-weight: 700; }
.mobile-app-prompt__copy p { margin: 2px 0 0; color: #c3d7cd; font-size: 11px; line-height: 1.6; }
.mobile-app-prompt .mobile-app-prompt__download {
  display: flex;
  flex: 0 0 auto;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 5px 10px;
  border: 1px solid #77d9ad;
  border-radius: 10px;
  background: #a5efc7;
  color: #092c20;
  text-decoration: none;
  white-space: nowrap;
  font-size: 12px;
  font-weight: 700;
}
.mobile-app-prompt__download small { font-family: system-ui, sans-serif; font-size: 9px; font-weight: 500; }
.mobile-app-prompt .mobile-app-prompt__close {
  display: grid;
  flex: 0 0 32px;
  place-items: center;
  width: 32px;
  min-height: 44px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #c3d7cd;
  cursor: pointer;
}
.mobile-app-prompt a:focus-visible, .mobile-app-prompt button:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
/* Reserve space in viewport-sized chat layouts; the composer stays visible. */
.mobile-app-prompt-open .app-shell { min-height: calc(100dvh - var(--mobile-app-prompt-height, 0px)); }
.mobile-app-prompt-open.workspace-ui body[data-page="home"] .app-shell,
.mobile-app-prompt-open.workspace-ui body[data-page="home"] .content {
  height: calc(100dvh - var(--mobile-app-prompt-height, 0px));
  min-height: 0;
}
@media (max-width: 860px) {
  .mobile-app-prompt-open.workspace-ui body[data-page="home"] .content {
    height: calc(100dvh - var(--mobile-app-prompt-height, 0px) - 76px - env(safe-area-inset-bottom, 0px));
  }
  .mobile-app-prompt-open.workspace-ui .sidebar-launcher {
    top: calc(17px + var(--mobile-app-prompt-height, 0px));
  }
}
@media (min-width: 861px) {
  .mobile-app-prompt-open.workspace-ui .sidebar {
    height: calc(100dvh - var(--mobile-app-prompt-height, 0px));
    max-height: calc(100dvh - var(--mobile-app-prompt-height, 0px));
  }
}
@media (max-width: 350px) {
  .mobile-app-prompt { gap: 7px; }
  .mobile-app-prompt__icon { display: none; }
}
