/* Shell: sidebar, brand, navigation, profile, top bar. */
.sidebar {
  direction: rtl;
  position: fixed;
  inset-inline-start: 0;
  inset-block: 0;
  width: 212px;
  padding: 25px 13px 16px;
  display: flex;
  flex-direction: column;
  border-inline-end: 1px solid var(--line);
  z-index: 100;
  background: var(--surface);
}

.brand {
  font-size: 33px;
  font-weight: 900;
  letter-spacing: -1.5px;
  display: flex;
  align-items: center;
  gap: 9px;
  justify-content: center;
  margin: 0 0 34px;
  line-height: 1;
}

.brand .spark {
  font-size: 39px;
  position: relative;
}

.spark:after {
  content: '✦';
  position: absolute;
  font-size: 15px;
  right: -8px;
  top: -3px;
}

.brand .dot {
  margin-right: -9px;
}

.nav-item {
  display: flex;
  gap: 13px;
  align-items: center;
  padding: 13px 14px;
  border-radius: 8px;
  text-align: right;
  margin-bottom: 4px;
  font-weight: 500;
}

.nav-item.active {
  background: var(--soft2);
  font-weight: 700;
}

.nav-item i {
  opacity: .85;
}

.count {
  margin-right: auto;
  border-radius: 8px;
  background: var(--soft);
  padding: 0 6px;
  font-size: 10px;
  color: var(--muted);
}

.new-chat {
  background: var(--soft2);
  border-radius: 24px;
  padding: 12px 17px;
  margin: 20px 0 22px;
  display: flex;
  justify-content: space-between;
}

.recent-label {
  font-size: 10px;
  color: var(--muted);
  padding: 0 13px;
}

.recent-chats {
  overflow: auto;
  margin-top: 8px;
  max-height: 160px;
}

.recent-chats button {
  display: block;
  text-align: right;
  width: 100%;
  font-size: 11px;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
  padding: 9px 13px;
}

.sidebar-bottom {
  margin-top: auto;
  padding-top: 20px;
}

.profile {
  display: flex;
  gap: 9px;
  width: 100%;
  text-align: right;
  align-items: center;
  padding: 10px 0;
}

.avatar {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  background: #e7c9aa;
  color: #4f3222;
  border-radius: 50%;
  font-weight: 700;
}

.profile b {
  display: block;
  font-size: 12px;
}

.profile small {
  display: block;
  font-size: 10px;
}

.profile i {
  margin-right: auto;
}

.footer-links {
  display: flex;
  justify-content: space-between;
  margin: 14px 0 8px;
}

.footer-links button {
  padding: 0;
  font-size: 10px;
  color: var(--muted);
}

.copyright {
  font-size: 10px;
}

.shell {
  margin-inline-start: 212px;
}

.topbar {
  height: 69px;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 27px;
  gap: 10px;
}

.breadcrumb {
  display: flex;
  gap: 13px;
  align-items: center;
  font-size: 12px;
}

.breadcrumb>span:first-child {
  font-weight: 700;
}

.slash {
  color: #c4c4c4;
}

.breadcrumb button {
  font-size: 11px;
  color: var(--muted);
  padding: 0;
}

.topbar-actions {
  display: flex;
  gap: 16px;
  align-items: center;
}

.mode-badge {
  font-size: 10px;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 15px;
  padding: 4px 9px;
}

.mobile-menu {
  display: none;
}

.about-copy {
  font-size: 12px;
  line-height: 2.1;
  color: var(--muted);
}
