.chat-ending {
  display: flex;
  align-items: center;
  gap: 24px;
  border-top: 1px solid var(--line);
  padding: 20px 24px;
  background: var(--panel);
}
.conversation-pane .message time {
  font-size: 0.75rem;
  color: var(--muted);
  line-height: 1.5;
}
.chat-ending h1 {
  font-size: 1.125rem;
  line-height: 1.5;
  margin: 0 0 6px;
}
.chat-ending p {
  color: var(--muted);
  font-size: 0.875rem;
  line-height: 1.65;
  margin: 0;
}
.chat-ending .button {
  flex-shrink: 0;
  white-space: nowrap;
}
.conversation-layout.empty-ended {
  height: auto;
  min-height: 0;
  max-width: 640px;
  margin-top: clamp(0px, 5vh, 48px);
}
.empty-ended .chat-ending {
  display: block;
  padding: 32px;
  background: white;
  border-top: 0;
}
.empty-ended .chat-ending h1 {
  font-size: 1.5rem;
}
.empty-ended .chat-ending .button {
  margin-top: 24px;
}
.with-profile {
  max-width: 1120px;
  grid-template-columns: minmax(0, 1fr) 340px;
}
.with-profile > .inbox-sidebar, .with-profile > .reveal-panel {
  display: none;
}
.profile-inspector {
  width: 340px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  border-left: 1px solid var(--line);
  background: var(--paper);
  min-height: 0;
}
.profile-inspector > header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
}
.profile-inspector > header h2 {
  font-size: 1rem;
  margin: 0;
}
.profile-panel-content {
  padding: 0 20px 24px;
  overflow: auto;
}
.profile-panel-content h2, .dialog-content h2 {
  font-size: 1.375rem;
  line-height: 1.4;
  margin: 0 0 8px;
}
.demo-notice {
  padding: 4px 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 0 16px;
  margin: 0;
  text-align: center;
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--accent-dark);
  background: var(--accent-soft);
}
.demo-notice a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  color: var(--accent-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.flow-shell:has(.demo-notice) {
  --chrome-height: 200px;
  --demo-height: 52px;
}
html[data-large-text="true"] .conversation-layout:not(.empty-ended),
html[data-large-text="true"] .inbox-layout.has-selection {
  height: auto;
  min-height: 0;
}
html[data-large-text="true"] .conversation-pane .messages {
  flex: auto;
  height: 50dvh;
  min-height: 8rem;
}
html[data-large-text="true"] .profile-inspector {
  max-height: 85dvh;
}
@media (min-width: 761px) and (max-width: 960px) {
  .inbox-layout.with-profile {
    grid-template-columns: minmax(0, 1fr) 300px;
  }
  .profile-inspector {
    width: 300px;
  }
}
@media (max-width: 760px) {
  .flow-shell:has(.demo-notice) {
    --demo-height: 72px;
  }
  .demo-notice {
    flex-direction: column;
  }
  .chat-ending {
    gap: 16px;
    flex-wrap: wrap;
    padding: 18px 20px calc(18px + env(safe-area-inset-bottom));
  }
  .chat-ending .button {
    width: 100%;
  }
  .conversation-layout.empty-ended {
    margin-top: 0;
  }
  .empty-ended .chat-ending {
    padding: 28px 24px;
  }
  .profile-inspector {
    display: none;
  }
}
