/* One navigation shell, with conversations scoped to their own page. */
.app-navigation .conversation-workspace__library { margin-top: 0; padding: 0.75rem; }
.app-navigation__group { margin-top: 1rem; }
.app-navigation__group > h2 { margin: 0 0 0.25rem; }
.app-navigation__heading { display: flex; align-items: center; justify-content: space-between; margin-bottom: 0.25rem; }
.app-navigation__heading > h2 { margin: 0; }
.app-navigation__heading a.app-navigation__add { justify-content: center; width: 2rem; height: 2rem; padding: 0.375rem; }
.app-navigation__add svg { width: 1rem; height: 1rem; }
.app-navigation__primary { padding-bottom: 0.25rem; }
.conversation-workspace { grid-template-columns: 14rem minmax(0, 1fr); }
.conversation-workspace > .conversation-workspace__context { display: none; }
.conversation-workspace.assistant-home { grid-template-columns: 14rem minmax(0, 1fr) 20rem; }
.assistant-home__activity { min-width: 0; overflow-y: auto; border-left: 1px solid var(--bs-border-color); padding: 1rem; }
.resource-workspace { grid-template-columns: 14rem minmax(0, 1fr); }
.conversation-history { min-width: 0; }
.conversation-history .conversation-workspace__list { min-height: 0; max-height: 40dvh; padding: 0.25rem 0; border: 0; }
.conversation-history a.conversation-workspace__thread { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 0.375rem 0.5rem; }
.conversation-history .conversation-workspace__thread.is-active::before { content: ""; position: absolute; left: 0; top: 0.375rem; bottom: 0.375rem; width: 3px; border-radius: 2px; background: var(--bs-primary); }
.conversation-history__controls { display: flex; justify-content: space-between; align-items: center; padding: 0.25rem 0; }
.conversation-history__filter, .conversation-history__new, .conversation-history__more { background: transparent; border: 0; border-radius: 0.375rem; color: var(--bs-secondary-color); font-size: 0.8125rem; padding: 0.25rem 0.5rem; }
.conversation-history__new { display: inline-flex; align-items: center; justify-content: center; width: 1.75rem; height: 1.75rem; }
.conversation-history__filter:hover, .conversation-history__new:hover, .conversation-history__more:hover { background: var(--bs-secondary-bg); color: var(--bs-body-color); }
.conversation-history__more { text-align: left; }
.conversation-history__more:disabled { opacity: 0.5; }
.home-result-reference { display: flex; gap: 0.5rem; align-items: center; justify-content: space-between; padding-bottom: 0.5rem; overflow-wrap: anywhere; }
.conversation-result-reference { display: block; font-size: 0.8125rem; margin-bottom: 0.5rem; }
.conversation-workspace__back { display: none !important; }
@media (max-width: 1100px) {
  .conversation-workspace.assistant-home { grid-template-columns: 14rem minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); }
  .assistant-home > .app-navigation { grid-row: 1 / 3; }
  .assistant-home > .conversation-workspace__main { grid-column: 2; grid-row: 2; }
  .assistant-home__activity { grid-column: 2; grid-row: 1; max-height: 30dvh; border-bottom: 1px solid var(--bs-border-color); padding: 0.5rem 1rem; }
}
@media (max-width: 767.98px) {
  .conversation-workspace, .conversation-workspace.assistant-home { display: flex; flex-direction: column; }
  .conversation-workspace .app-navigation, .conversation-workspace.is-thread-open .app-navigation { display: block; flex: 0 0 auto; max-height: 30dvh; border-right: 0; border-bottom: 1px solid var(--bs-border-color); }
  .app-navigation__primary { display: flex; gap: 0.25rem; }
  .app-navigation__primary a { flex: 1 1 auto; }
  .app-navigation__group { margin-top: 0; }
  .app-navigation .conversation-workspace__library { padding: 0.25rem 0.5rem; }
  .conversation-workspace .conversation-workspace__main { display: flex; flex: 1 1 auto; min-height: 0; width: 100%; }
  .assistant-home__activity { order: 0; flex: 0 0 auto; max-height: 25dvh; }
  .assistant-home > .conversation-workspace__main { order: 1; }
  .resource-workspace { display: flex; flex-direction: column; }
  .resource-workspace > .app-navigation { flex: 0 0 auto; max-height: 35dvh; }
  .resource-workspace__body { flex: 1 1 auto; padding: 1rem; }
  .workforce-page { min-height: 0; }
}

@media (min-width: 1101px) {
  .conversation-workspace.assistant-home.is-activity-collapsed { grid-template-columns: 14rem minmax(0, 1fr); }
}
@media (max-width: 767.98px) {
  .app-navigation .conversation-workspace__library { display: grid; }
  .conversation-workspace__header { grid-template-columns: minmax(0, 1fr) auto; }
  .conversation-workspace .conversation-workspace__main { height: auto; }
}

.assistant-home__activity[hidden], .assistant-home__reopen[hidden] { display: none !important; }
.assistant-home__activity-header { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; margin-bottom: 0.75rem; }
.assistant-home__activity-header svg, .assistant-home__reopen svg { width: 1rem; height: 1rem; }
.assistant-home__reopen { display: inline-flex; align-items: center; gap: 0.375rem; }
.conversation-workspace__header-actions .assistant-home__reopen.btn { width: auto; padding: 0.25rem 0.5rem; }
.conversation-workspace__header-actions .assistant-home__reopen.btn span { display: inline; }
