/* Chat chrome only. Keep this after the asynchronously loaded full stylesheet. */
html.pg-app #app .composer {
  padding: 6px 12px 4px;
  margin: 0;
  background: var(--bg, #121316);
  border: 0;
  box-shadow: none;
}
html.pg-app #app .composer-inner {
  gap: 4px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
}
html.pg-app #app .composer-row {
  gap: 4px;
  padding: 0;
  min-height: 46px;
  border: 1px solid var(--divider-strong, #53555a);
  border-radius: 12px;
  background: var(--panel, #1a1b1e);
  box-shadow: none;
}
html.pg-app #app .composer-row:focus-within {
  border-color: var(--accent, #ff7839);
  box-shadow: none;
}
html.pg-app #app #composer-input {
  min-height: 44px;
  max-height: min(140px, 30dvh);
  padding: 11px 12px;
  border: 0;
  border-radius: 11px;
  background: transparent;
  box-shadow: none;
  outline: none;
  line-height: 22px;
  resize: none;
}
html.pg-app #app .composer-row :is(.btn-send, .btn-stop, .btn-attach) {
  min-height: 44px;
  height: 44px;
  min-width: 44px;
  margin: 0;
  border-radius: 10px;
}
html.pg-app #app .composer-row :is(.btn-send, .btn-stop) {
  min-width: 64px;
  padding: 0 14px;
}
html.pg-app #app .composer::before,
html.pg-app #app .composer::after,
html.pg-app #app .composer-inner::before,
html.pg-app #app .composer-inner::after,
html.pg-app #app .composer-row::before,
html.pg-app #app .composer-row::after {
  content: none;
  display: none;
}
html.pg-app #app .footer.footer-compact {
  position: relative;
  display: flex !important;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  height: auto !important;
  min-height: 32px !important;
  max-height: none !important;
  padding: 0 12px env(safe-area-inset-bottom, 0px) !important;
  margin: 0 !important;
  border: 0 !important;
  background: var(--bg, #121316);
  box-shadow: none;
  color: var(--muted, #a3a5ad);
  font-size: 11px;
  line-height: 16px;
  overflow: visible !important;
  visibility: visible !important;
  pointer-events: auto !important;
  content-visibility: visible;
  contain: none;
  contain-intrinsic-size: none;
  z-index: 60;
}
html.pg-app #app .footer.footer-compact::before,
html.pg-app #app .footer.footer-compact::after {
  content: none;
  display: none;
}
html.pg-app #app .footer-brand {
  min-width: 0;
  padding: 0;
  white-space: nowrap;
}
html.pg-app #app .footer-more {
  position: relative;
  flex: 0 0 auto;
  margin: 0;
  padding: 0;
  border: 0;
}
html.pg-app #app .footer-more > summary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 64px;
  min-height: 32px;
  padding: 0 8px;
  border-radius: 6px;
  color: var(--muted, #a3a5ad);
  font: inherit;
  cursor: pointer;
  list-style: none;
}
html.pg-app #app .footer-more > summary::-webkit-details-marker {
  display: none;
}
html.pg-app #app .footer-more[open] > summary span {
  transform: rotate(180deg);
}
html.pg-app #app .footer-more > summary:hover {
  background: var(--panel, #1a1b1e);
  color: var(--text, #f1f2f4);
}
html.pg-app #app .footer-more > summary:focus-visible,
html.pg-app #app .footer-links a:focus-visible {
  outline: 2px solid var(--accent, #ff7839);
  outline-offset: -2px;
}
html.pg-app #app .footer-links {
  position: absolute;
  right: 0;
  bottom: calc(100% + 6px);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2px;
  width: min(340px, calc(100vw - 24px));
  max-height: min(360px, calc(100dvh - 100px));
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 8px;
  border: 1px solid var(--divider-strong, #53555a);
  border-radius: 12px;
  background: var(--panel, #1a1b1e);
  box-shadow: 0 8px 32px rgb(0 0 0 / .35);
}
html.pg-app #app .footer-more:not([open]) .footer-links {
  display: none;
}
html.pg-app #app .footer-links a {
  display: flex;
  align-items: center;
  min-height: 44px;
  margin: 0;
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 13px;
  line-height: 18px;
  color: var(--text, #f1f2f4);
  text-decoration: none;
}
html.pg-app #app .footer-links a:hover {
  background: var(--panel-3, #292b31);
}
@media (max-width: 640px) {
  html.pg-app #app .composer {
    padding-inline: 8px;
  }
  html.pg-app #app .footer.footer-compact {
    padding-inline: 8px !important;
  }
}
@media (forced-colors: active) {
  html.pg-app #app .composer-row:focus-within {
    border-color: Highlight;
  }
}
