/* Workspace navigation and recent conversations */
.new-chat, .header-chat {
  min-height: 44px;
  border: 1px solid transparent;
  font-weight: 650;
  white-space: nowrap;
  transition: background .15s, box-shadow .15s, transform .15s;
}
.new-chat {
  margin: 32px 0 23px;
  padding: 10px 12px;
  justify-content: flex-start;
  background: linear-gradient(105deg, #214c3f, #315f4f);
  color: white;
  box-shadow: inset 0 1px 0 #b9dec246, 0 3px 8px #1c493c15;
}
.new-chat .bk-icon:first-child { width: 17px; height: 17px; }
.new-chat .bk-icon:last-child { margin-left: auto; opacity: .75; width: 15px; height: 15px; }
.header-chat {
  flex: none;
  gap: 6px;
  padding: 0 12px;
  border-radius: 14px;
  border-color: #a9c2ad;
  background: #f2f8ed;
  color: #315442;
  font-size: 12px;
}
.new-chat:is(:hover,:focus-visible) {
  background: linear-gradient(105deg, #326b54, #467d61);
  box-shadow: inset 0 1px 0 #ffffff62, 0 4px 12px #244d3b32;
}
.header-chat:is(:hover,:focus-visible) { background: #d9ead7; border-color: #8dac94; }
.new-chat:active, .header-chat:active { transform: scale(.97); box-shadow: inset 0 2px 5px #132d2533; }
.new-chat:active { background: #193d31; }
.header-chat:active { background: #c6decc; }
.bk-header #bk-menu { min-width: 44px; min-height: 44px; }
@media (min-width:761px) {
  body:not(.bk-menu-closed) .header-chat { display: none; }
}

.account-card {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  padding: 6px 8px;
  border: 1px solid #ffffffb5;
  border-radius: 15px;
  background: #ffffff60;
  color: var(--ink);
  text-decoration: none;
}
.account-avatar {
  flex: none;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border: 1px solid #f7fcf1;
  border-radius: 50%;
  background: #dceadc;
  color: #506a56;
}
.account-avatar .bk-icon, .account-signout .bk-icon { width: 16px; height: 16px; }
.account-card strong { font-size: 13px; }
.account-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.account-card form, .account-link > .bk-icon { margin-left: auto; }
.account-link > .bk-icon { width: 14px; height: 14px; }
.account-link small { display: block; color: var(--muted); font-size: 11px; }
.account-link:is(:hover,:focus-visible) { background: #ffffffb5; }
.account-signout, .bk-recent-more, .bk-recent-next {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-height: 36px;
  padding: 0 8px;
  border: 1px solid #c4d6c9;
  border-radius: 10px;
  background: linear-gradient(140deg, #fffffff2, #eaf3eac2);
  color: #385a48;
  font-size: 12px;
  white-space: nowrap;
}
.account-signout:is(:hover,:focus-visible), .bk-recent-next:is(:hover,:focus-visible),
.bk-recent-more:is(:hover,:focus-visible,[aria-expanded=true]) {
  background: #dcecdc;
  border-color: #8ea996;
}
.account-signout:active, .bk-recent-more:active, .bk-recent-next:active { background: #c8ddcb; }

.bk-recent-row { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: 3px; padding: 2px; border-radius: 12px; }
.bk-recent-row:is(:hover,:focus-within) { background: #ffffff70; }
.bk-recent-row:has([aria-current=page]) { background: #e1eee2; }
.bk-recent-row > a {
  min-width: 0;
  padding: 8px 5px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  border-radius: 8px;
  color: var(--ink);
  text-decoration: none;
  font-size: 13px;
}
.bk-recent-row > a[aria-current=page] { font-weight: 700; }
.bk-recent-more { width: 36px; padding: 0; border-color: transparent; background: transparent; }
.bk-recent-row :focus-visible { outline-offset: -2px; }
.bk-recent-actions {
  grid-column: 1/-1;
  display: grid;
  gap: 2px;
  padding: 5px;
  border: 1px solid #c6d8c8;
  border-radius: 14px;
  background: var(--glass-float);
  color: var(--ink);
  box-shadow: inset 0 1px 0 white, 0 7px 22px #24463024;
  backdrop-filter: blur(20px);
}
.bk-recent-actions[popover] {
  position: fixed;
  inset: auto;
  margin: 0;
  width: min(9rem,calc(100vw - 12px));
  max-height: calc(100dvh - 12px);
  overflow-y: auto;
}
.bk-recent-actions button {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 36px;
  padding: 0 10px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: #355441;
  font-size: 13px;
}
.bk-recent-actions .bk-icon { width: 16px; height: 16px; }
.bk-recent-actions button:is(:hover,:focus-visible) { background: #e2efe1; }
.bk-recent-actions .bk-delete { color: #873f3b; }
.bk-recent-actions .bk-delete:is(:hover,:focus-visible) { background: #f5e5df; }
.bk-recent-actions button:disabled { opacity: .5; cursor: default; }
.bk-recent-next { margin: .5rem 2px; }

.bk-thread-dialog { width: min(24rem,calc(100vw - 24px)); max-height: calc(100dvh - 24px); padding: 22px; overflow-y: auto; }
.bk-thread-dialog h2 { font-size: 19px; }
.bk-thread-dialog label { font-size: 13px; color: var(--muted); }
.bk-thread-dialog input { min-width: 0; width: 100%; padding: 9px 12px; border: 1px solid #a8bdae; border-radius: 10px; background: #ffffffe0; }
.bk-thread-dialog p:empty { display: none; }
.bk-thread-dialog [role=status] { color: #873f3b; }
.bk-thread-dialog button { min-height: 44px; padding-inline: 16px; }
.bk-thread-dialog button:hover { filter: brightness(.95); }
.bk-thread-dialog .bk-save { background: #315f4f; color: white; }
.bk-thread-dialog .bk-delete { background: #f3e1dc; color: #77352f; border-color: #d9b8b0; }

@media (min-width:761px) and (max-width:1050px) {
  .account-card:has(.account-signout) .account-avatar { display: none; }
}
@media (max-width:760px) {
  .new-chat { margin-top: 23px; }
  .bk-header { gap: .3rem; }
}
@media (max-width:760px), (pointer:coarse) {
  .account-signout, .bk-recent-more, .bk-recent-next, .bk-recent-actions button { min-height: 44px; }
  .bk-recent-more { width: 44px; }
  .bk-recent-row > a { line-height: 28px; }
}
