.app-shell[data-screen="chat"] .app-header {
  height: 62px;
  padding: 10px 16px 8px;
  border-bottom: 0;
  background: #fff;
}

.app-shell[data-screen="chat"] .screens {
  padding-top: 62px;
  padding-bottom: 78px;
}

.app-shell[data-screen="chat"] .brand {
  gap: 8px;
}

.app-shell[data-screen="chat"] .brand img {
  width: 34px;
  height: 34px;
  border-radius: 11px;
}

.app-shell[data-screen="chat"] .brand b {
  font-size: 15px;
  letter-spacing: .08em;
}

.app-shell[data-screen="chat"] .brand small,
.app-shell[data-screen="chat"] .network-pill > span {
  display: none;
}

.app-shell[data-screen="chat"] .header-actions {
  gap: 5px;
}

.app-shell[data-screen="chat"] .network-pill,
.app-shell[data-screen="chat"] .round-button {
  width: 34px;
  height: 34px;
  padding: 0;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 11px;
  background: #f3f7fa;
  box-shadow: none;
}

.app-shell[data-screen="chat"] .network-pill img {
  width: 19px;
  height: 19px;
}

.app-shell[data-screen="chat"] .round-button img {
  width: 20px;
  height: 20px;
}

.screen[data-screen="chat"] {
  padding: 0 16px 22px;
}

.chat-topbar {
  height: 46px;
  margin: 0;
  display: flex;
  align-items: center;
}

.chat-topbar h1 {
  font-size: 21px;
  letter-spacing: -.03em;
}

.chat-add-button {
  width: 34px;
  height: 34px;
  border: 0;
  background: transparent;
  border-radius: 10px;
  display: grid;
  place-items: center;
}

.chat-add-button:active {
  background: #f1f5f8;
}

.chat-add-button img {
  width: 23px;
  height: 23px;
}

.chat-list {
  border: 0;
  border-radius: 0;
  padding: 0;
  background: transparent;
}

.chat-row {
  min-height: 64px;
  padding: 9px 0;
  gap: 10px;
}

.chat-avatar-wrap,
.chat-avatar-wrap > img,
.group-avatar {
  width: 44px;
  height: 44px;
  border-radius: 14px;
}

.chat-row b {
  font-size: 13px;
}

.chat-row small {
  font-size: 9px;
}

.chat-row time {
  font-size: 8px;
}

.chat-zero {
  min-height: 228px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--muted);
}

.chat-zero > span {
  width: 50px;
  height: 50px;
  border-radius: 17px;
  background: #f1f6fa;
  display: grid;
  place-items: center;
  margin-bottom: 12px;
}

.chat-zero > span img {
  width: 26px;
  height: 26px;
}

.chat-zero b {
  font-size: 13px;
  color: var(--ink);
  font-weight: 800;
}

.chat-zero small {
  font-size: 9px;
  margin-top: 5px;
}

.chat-zero button {
  margin-top: 14px;
  border: 0;
  background: transparent;
  color: var(--blue);
  font-size: 11px;
  font-weight: 850;
  padding: 8px 12px;
}

.chat-launch-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 18px 8px;
  padding: 8px 2px 5px;
}

.chat-launch-grid button {
  min-width: 0;
  border: 0 !important;
  background: transparent !important;
  display: flex !important;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  padding: 0 !important;
}

.chat-launch-grid button > span {
  width: 52px;
  height: 52px;
  border-radius: 18px;
  background: #f1f7fb;
  display: grid;
  place-items: center;
}

.chat-launch-grid img {
  width: 26px;
  height: 26px;
}

.chat-launch-grid b {
  font-size: 9px !important;
}

.chat-launch-grid button:last-child:nth-child(7) { grid-column: 2; }

.chat-launch-note {
  text-align: center;
  font-size: 8px;
  color: var(--muted);
  line-height: 1.5;
  margin: 15px 0 0;
}

@media (max-width: 520px) {
  .app-shell[data-screen="chat"] .app-header {
    height: calc(56px + env(safe-area-inset-top));
    padding: calc(8px + env(safe-area-inset-top)) 15px 6px;
  }

  .app-shell[data-screen="chat"] .screens {
    padding-top: calc(56px + env(safe-area-inset-top));
    padding-bottom: calc(70px + env(safe-area-inset-bottom));
  }
}
