:root {
  --bg: #f3f6f5;
  --card: #fff;
  --text: #111827;
  --muted: #566273;
  --soft: #eef7f2;
  --line: #e7ecef;
  --line-strong: #cfd9e5;
  --primary: #08bf62;
  --primary-dark: #05944c;
  --red: #ef4444;
  --blue: #2563eb;
  --orange: #d97706;
  --shadow: 0 5px 14px rgba(17, 32, 52, .08);
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
  margin: 0;
}

body {
  background: #dfe6eb;
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", Arial, sans-serif;
  letter-spacing: 0;
  -webkit-tap-highlight-color: transparent;
}

button,
input,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
}

.file-hidden {
  display: none;
}

.boot {
  align-items: center;
  color: var(--muted);
  display: flex;
  height: 100%;
  justify-content: center;
}

.app-shell {
  background: var(--bg);
  display: flex;
  flex-direction: column;
  height: 100dvh;
  margin: 0 auto;
  max-width: 430px;
  min-height: 100vh;
  overflow: hidden;
  position: relative;
  width: 100%;
}

.topbar {
  align-items: flex-end;
  background: #fff;
  color: var(--text);
  display: flex;
  flex: 0 0 auto;
  gap: 12px;
  min-height: 118px;
  padding: calc(env(safe-area-inset-top) + 34px) 18px 22px;
}

.topbar h1 {
  flex: 1;
  font-size: 31px;
  font-weight: 760;
  line-height: 1.12;
  margin: 0;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.subpage-shell .topbar {
  min-height: 110px;
  padding-bottom: 22px;
}

.subpage-shell .topbar h1 {
  font-size: 30px;
}

.topbar-actions {
  align-items: center;
  display: flex;
  flex: 0 0 auto;
  gap: 14px;
  height: 44px;
}

.icon-btn {
  align-items: center;
  background: transparent;
  border: 0;
  color: #4b5563;
  display: inline-flex;
  flex: 0 0 auto;
  height: 44px;
  justify-content: center;
  padding: 0;
  position: relative;
  width: 44px;
}

.icon-btn:active,
.app-row:active,
.card:active,
.primary:active,
.secondary:active,
.danger:active,
.moment-tab:active,
.download-link:active {
  opacity: .82;
  transform: scale(.985);
}

.icon-btn.back {
  color: var(--text);
  font-size: 44px;
  font-weight: 420;
  line-height: 1;
  margin-left: -8px;
}

.icon-btn.add:before,
.icon-btn.add:after {
  background: currentColor;
  border-radius: 99px;
  content: "";
  position: absolute;
}

.icon-btn.add:before {
  height: 4px;
  width: 31px;
}

.icon-btn.add:after {
  height: 31px;
  width: 4px;
}

.icon-btn.search:before {
  border: 4px solid currentColor;
  border-radius: 50%;
  content: "";
  height: 20px;
  left: 6px;
  position: absolute;
  top: 6px;
  width: 20px;
}

.icon-btn.search:after,
.search-mark:after {
  background: currentColor;
  border-radius: 99px;
  content: "";
  height: 14px;
  position: absolute;
  transform: rotate(-45deg);
  width: 4px;
}

.icon-btn.search:after {
  left: 30px;
  top: 30px;
}

.page {
  background: var(--bg);
  flex: 1;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 14px 16px 22px;
  -webkit-overflow-scrolling: touch;
}

.page::-webkit-scrollbar {
  display: none;
}

.page-main {
  padding-bottom: 106px;
}

.search-box,
.sub-search {
  align-items: center;
  background: #fff;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  color: #596474;
  display: flex;
  gap: 16px;
  min-height: 64px;
  margin: 10px 0 18px;
  padding: 0 18px;
}

.search-box span:last-child {
  font-size: 17px;
  font-weight: 520;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.search-mark {
  color: #4b5563;
  display: inline-block;
  flex: 0 0 auto;
  height: 28px;
  position: relative;
  width: 28px;
}

.search-mark:before {
  border: 4px solid currentColor;
  border-radius: 50%;
  content: "";
  height: 17px;
  left: 0;
  position: absolute;
  top: 0;
  width: 17px;
}

.search-mark:after {
  left: 20px;
  top: 20px;
}

.sub-search {
  margin-top: 0;
}

.sub-search input {
  background: transparent;
  border: 0;
  min-width: 0;
  padding: 0;
}

.card,
.app-section,
.form,
.moment-publisher,
.feed-card {
  background: var(--card);
  border: 1px solid rgba(17, 32, 52, .04);
  border-radius: 16px;
  box-shadow: var(--shadow);
}

.card {
  margin-bottom: 12px;
}

.row,
.app-row {
  align-items: center;
  color: var(--text);
  display: flex;
  gap: 14px;
  min-height: 78px;
  padding: 14px 16px;
  position: relative;
  text-align: left;
  width: 100%;
}

.app-row {
  background: #fff;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  min-height: 82px;
}

.app-row:last-child {
  border-bottom: 0;
}

.avatar {
  background: #d9f8e8;
  border-radius: 50%;
  color: #067947;
  flex: 0 0 auto;
  height: 56px;
  object-fit: cover;
  width: 56px;
}

.avatar.big {
  height: 66px;
  width: 66px;
}

.avatar-fallback {
  align-items: center;
  display: inline-flex;
  font-size: 22px;
  font-weight: 850;
  justify-content: center;
}

.quick-icon,
.app-entry-icon {
  align-items: center;
  background: #e9fbf2;
  border-radius: 15px;
  color: var(--primary);
  display: inline-flex;
  flex: 0 0 auto;
  font-size: 19px;
  font-weight: 850;
  height: 56px;
  justify-content: center;
  position: relative;
  width: 56px;
}

.quick-icon {
  border-radius: 50%;
}

.app-entry-icon.blue {
  background: #edf5ff;
  color: var(--blue);
}

.app-entry-icon.orange {
  background: #fff7e8;
  color: var(--orange);
}

.app-entry-icon.red {
  background: #fff0f2;
  color: var(--red);
}

.app-entry-icon b {
  display: inline-block;
}

.app-entry-icon[class*="entry-"] b {
  opacity: 0;
}

.app-entry-icon[class*="entry-"]:before,
.app-entry-icon[class*="entry-"]:after {
  content: "";
  position: absolute;
}

.entry-moment:before {
  background: currentColor;
  border-radius: 50%;
  height: 28px;
  left: 14px;
  top: 14px;
  width: 28px;
}

.entry-moment:after {
  background: #fff;
  clip-path: polygon(50% 0, 70% 38%, 100% 50%, 62% 70%, 50% 100%, 30% 62%, 0 50%, 38% 30%);
  height: 16px;
  left: 20px;
  top: 20px;
  width: 16px;
}

.entry-scan:before {
  background:
    linear-gradient(currentColor, currentColor) 0 0 / 8px 4px no-repeat,
    linear-gradient(currentColor, currentColor) 0 0 / 4px 8px no-repeat,
    linear-gradient(currentColor, currentColor) 100% 0 / 8px 4px no-repeat,
    linear-gradient(currentColor, currentColor) 100% 0 / 4px 8px no-repeat,
    linear-gradient(currentColor, currentColor) 0 100% / 8px 4px no-repeat,
    linear-gradient(currentColor, currentColor) 0 100% / 4px 8px no-repeat,
    linear-gradient(currentColor, currentColor) 100% 100% / 8px 4px no-repeat,
    linear-gradient(currentColor, currentColor) 100% 100% / 4px 8px no-repeat;
  height: 28px;
  left: 14px;
  top: 14px;
  width: 28px;
}

.entry-scan:after {
  background: currentColor;
  box-shadow: 9px 0 0 currentColor, 0 9px 0 currentColor, 9px 9px 0 currentColor, 18px 9px 0 currentColor, 9px 18px 0 currentColor;
  height: 4px;
  left: 18px;
  top: 18px;
  width: 4px;
}

.entry-near:before {
  background: currentColor;
  border-radius: 50% 50% 50% 6px;
  height: 28px;
  left: 14px;
  top: 10px;
  transform: rotate(-45deg);
  width: 28px;
}

.entry-near:after {
  background: #fff;
  border-radius: 50%;
  height: 9px;
  left: 24px;
  top: 19px;
  width: 9px;
}

.entry-favorite:before {
  background: currentColor;
  border-radius: 4px 4px 2px 2px;
  height: 30px;
  left: 18px;
  top: 13px;
  width: 20px;
}

.entry-favorite:after {
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  border-top: 8px solid #e9fbf2;
  left: 18px;
  top: 35px;
}

.entry-miniapp:before {
  background: currentColor;
  box-shadow: 10px 0 0 currentColor, 20px 0 0 currentColor, 0 10px 0 currentColor, 10px 10px 0 currentColor, 20px 10px 0 currentColor, 0 20px 0 currentColor, 10px 20px 0 currentColor, 20px 20px 0 currentColor;
  height: 6px;
  left: 15px;
  top: 15px;
  width: 6px;
}

.entry-edit:before {
  border: 3px solid currentColor;
  border-radius: 5px;
  height: 23px;
  left: 14px;
  top: 16px;
  width: 24px;
}

.entry-edit:after {
  background: currentColor;
  border-radius: 99px;
  height: 4px;
  left: 27px;
  top: 13px;
  transform: rotate(-45deg);
  width: 17px;
}

.entry-settings:before {
  border: 5px solid currentColor;
  border-radius: 50%;
  height: 22px;
  left: 17px;
  top: 17px;
  width: 22px;
}

.entry-settings:after {
  background: currentColor;
  box-shadow: 0 -18px 0 currentColor, 0 18px 0 currentColor, 18px 0 0 currentColor, -18px 0 0 currentColor;
  height: 7px;
  left: 24px;
  top: 24px;
  width: 7px;
}

.entry-client:before {
  border: 3px solid currentColor;
  border-radius: 5px;
  height: 25px;
  left: 18px;
  top: 11px;
  width: 20px;
}

.entry-client:after {
  background: currentColor;
  border-radius: 99px;
  height: 3px;
  left: 24px;
  top: 39px;
  width: 8px;
}

.entry-logout:before {
  border: 4px solid currentColor;
  border-left-color: transparent;
  border-radius: 50%;
  height: 27px;
  left: 14px;
  top: 15px;
  width: 27px;
}

.entry-logout:after {
  background: currentColor;
  border-radius: 99px;
  height: 18px;
  left: 27px;
  top: 9px;
  width: 4px;
}

.row-main,
.main {
  flex: 1;
  min-width: 0;
}

.row-title,
.title {
  color: var(--text);
  font-size: 19px;
  font-weight: 740;
  line-height: 1.28;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.row-title.logout {
  color: var(--red);
}

.row-desc,
.desc {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.35;
  margin-top: 6px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.row-time,
.time {
  align-self: flex-start;
  color: #566273;
  flex: 0 0 auto;
  font-size: 15px;
  line-height: 1.2;
  padding-top: 2px;
  white-space: nowrap;
}

.badge {
  align-items: center;
  background: var(--red);
  border-radius: 999px;
  color: #fff;
  display: inline-flex;
  font-size: 11px;
  font-style: normal;
  font-weight: 800;
  justify-content: center;
  line-height: 18px;
  min-width: 18px;
  padding: 0 5px;
}

.row .badge {
  position: absolute;
  right: 16px;
  top: 42px;
}

.arrow {
  border-right: 4px solid #4b5563;
  border-top: 4px solid #4b5563;
  flex: 0 0 auto;
  height: 16px;
  margin-left: auto;
  opacity: .95;
  transform: rotate(45deg);
  width: 16px;
}

.section-title {
  color: #4f5b68;
  font-size: 22px;
  font-weight: 780;
  line-height: 1.2;
  margin: 24px 4px 14px;
}

.app-section {
  margin-bottom: 16px;
  overflow: hidden;
}

.empty,
.empty-state {
  color: var(--muted);
  padding: 42px 14px;
  text-align: center;
}

.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 360px;
}

.empty-visual {
  align-items: center;
  background: #d9f8e8;
  border-radius: 50%;
  color: var(--primary);
  display: flex;
  height: 76px;
  justify-content: center;
  margin-bottom: 20px;
  width: 76px;
}

.empty-visual i {
  height: 30px;
  position: relative;
  width: 30px;
}

.empty-state h3 {
  color: var(--text);
  font-size: 23px;
  font-weight: 780;
  line-height: 1.25;
  margin: 0 0 12px;
}

.empty-state p {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.45;
  margin: 0;
}

.tabbar {
  background: rgba(255, 255, 255, .98);
  border-top: 1px solid #edf0f2;
  bottom: 0;
  display: grid;
  flex: 0 0 auto;
  grid-template-columns: repeat(4, 1fr);
  height: calc(92px + env(safe-area-inset-bottom));
  left: 0;
  padding-bottom: env(safe-area-inset-bottom);
  position: absolute;
  right: 0;
  z-index: 5;
}

.im-bottom:before {
  background: var(--primary);
  border-radius: 99px;
  content: "";
  height: 4px;
  left: 12.5%;
  position: absolute;
  top: 0;
  transform: translateX(-50%);
  transition: left .2s ease;
  width: 28px;
}

.im-bottom[data-active="contacts"]:before {
  left: 37.5%;
}

.im-bottom[data-active="discover"]:before {
  left: 62.5%;
}

.im-bottom[data-active="me"]:before {
  left: 87.5%;
}

.im-tab {
  align-items: center;
  background: transparent;
  border: 0;
  color: #4b5563;
  display: flex;
  flex-direction: column;
  font-size: 16px;
  font-weight: 660;
  gap: 7px;
  justify-content: center;
  padding: 10px 0 8px;
  position: relative;
}

.im-tab.active {
  color: var(--primary);
  font-weight: 780;
}

.im-tab i {
  display: block;
  height: 28px;
  position: relative;
  width: 28px;
}

.im-tab .badge {
  position: absolute;
  right: 24px;
  top: 12px;
}

.ico-chat:before,
.ico-chat:after {
  border: 3px solid currentColor;
  border-radius: 2px;
  content: "";
  position: absolute;
}

.ico-chat:before {
  height: 18px;
  left: 2px;
  top: 4px;
  width: 22px;
}

.ico-chat:after {
  border-left-color: transparent;
  border-top-color: transparent;
  height: 7px;
  left: 7px;
  top: 17px;
  transform: rotate(45deg);
  width: 7px;
}

.ico-book:before,
.ico-book:after,
.ico-discover:before,
.ico-discover:after,
.ico-user:before,
.ico-user:after {
  content: "";
  position: absolute;
}

.ico-book:before {
  border: 3px solid currentColor;
  border-radius: 3px;
  height: 22px;
  left: 5px;
  top: 3px;
  width: 18px;
}

.ico-book:after {
  background: currentColor;
  box-shadow: 0 7px 0 currentColor;
  height: 3px;
  left: 10px;
  top: 10px;
  width: 8px;
}

.ico-discover:before {
  border: 3px solid currentColor;
  border-radius: 50%;
  height: 24px;
  left: 2px;
  top: 2px;
  width: 24px;
}

.ico-discover:after {
  background: currentColor;
  border-radius: 99px;
  height: 10px;
  left: 13px;
  top: 7px;
  transform: rotate(35deg);
  width: 3px;
  box-shadow: 0 12px 0 currentColor;
}

.ico-user:before {
  background: currentColor;
  border-radius: 50%;
  height: 10px;
  left: 9px;
  top: 3px;
  width: 10px;
}

.ico-user:after {
  background: currentColor;
  border-radius: 15px 15px 4px 4px;
  height: 11px;
  left: 5px;
  top: 17px;
  width: 18px;
}

.form {
  display: grid;
  gap: 13px;
  margin: 0 auto 16px;
  max-width: 380px;
  padding: 18px;
}

.auth-shell {
  background:
    radial-gradient(circle at 50% -80px, rgba(8, 191, 98, .18), transparent 220px),
    #f3f6f5;
}

.auth-page {
  background: transparent;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: calc(env(safe-area-inset-top) + 58px) 22px calc(env(safe-area-inset-bottom) + 26px);
}

.auth-hero {
  padding: 18px 0 34px;
}

.auth-logo-img {
  border-radius: 22px;
  box-shadow: 0 18px 38px rgba(8, 191, 98, .28);
  display: block;
  height: 88px;
  margin-bottom: 22px;
  object-fit: cover;
  width: 88px;
}

.auth-name {
  color: var(--text);
  font-size: 42px;
  font-weight: 820;
  line-height: 1.05;
}

.auth-sub {
  color: #4b5563;
  font-size: 22px;
  font-weight: 700;
  margin-top: 12px;
}

.auth-form {
  display: grid;
  gap: 14px;
  margin-top: clamp(58px, 11vh, 110px);
  padding-bottom: 10px;
}

.auth-field {
  align-items: center;
  background: #fff;
  border: 1px solid #e4eaef;
  border-radius: 16px;
  box-shadow: 0 8px 22px rgba(17, 32, 52, .05);
  display: flex;
  gap: 14px;
  min-height: 64px;
  padding: 0 16px;
}

.auth-field span {
  color: var(--text);
  flex: 0 0 42px;
  font-size: 17px;
  font-weight: 760;
}

.auth-field input {
  background: transparent;
  border: 0;
  color: var(--text);
  flex: 1;
  font-size: 17px;
  min-width: 0;
  outline: 0;
}

.auth-field input::placeholder {
  color: #9aa5b1;
}

.auth-submit {
  border-radius: 16px;
  box-shadow: 0 14px 30px rgba(8, 191, 98, .22);
  font-size: 20px;
  height: 58px;
  margin-top: 8px;
}

.auth-links {
  align-items: center;
  display: flex;
  justify-content: center;
  gap: 0;
  min-height: 42px;
}

.auth-links button {
  background: transparent;
  border: 0;
  color: #5b6674;
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
  padding: 0 14px;
  position: relative;
  white-space: nowrap;
}

.auth-links button + button:before {
  background: #d7dee5;
  content: "";
  height: 16px;
  left: 0;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
}

.auth-links button.active {
  color: var(--primary-dark);
}

.form h2 {
  font-size: 26px;
  line-height: 1.2;
  margin: 0 0 8px;
}

.field {
  background: #fff;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  color: var(--text);
  min-height: 46px;
  padding: 0 13px;
  width: 100%;
}

textarea.field {
  line-height: 1.55;
  min-height: 112px;
  padding-top: 12px;
  resize: vertical;
}

.primary,
.secondary,
.danger,
.mini,
.moment-tab,
.download-link {
  border: 0;
  border-radius: 12px;
  font-weight: 780;
  min-height: 42px;
  padding: 0 14px;
  transition: opacity .15s ease, transform .15s ease;
}

.primary {
  background: var(--primary);
  color: #fff;
}

.secondary {
  background: #eef2f7;
  color: #334155;
}

.danger {
  background: #fff0f2;
  color: var(--red);
}

.mini {
  background: #e8fbf1;
  color: var(--primary-dark);
  font-size: 13px;
  min-height: 34px;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.actions > button {
  flex: 1;
}

.input-section {
  padding: 10px;
}

.input-row {
  align-items: center;
  display: flex;
  gap: 10px;
}

.input-row .field {
  flex: 1;
  min-width: 0;
}

.me-hero {
  align-items: center;
  background: #fff;
  border-radius: 16px;
  box-shadow: var(--shadow);
  display: flex;
  gap: 16px;
  margin-bottom: 18px;
  min-height: 104px;
  padding: 18px;
}

.me-hero-meta {
  flex: 1;
  min-width: 0;
}

.me-hero-name {
  color: var(--text);
  font-size: 24px;
  font-weight: 780;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.me-hero-id {
  color: var(--muted);
  font-size: 15px;
  margin-top: 8px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chat {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
}

.chat .messages {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 4px 0 12px;
}

.bubble-line {
  display: flex;
  gap: 10px;
  margin-bottom: 14px;
}

.bubble-line.mine {
  flex-direction: row-reverse;
}

.bubble {
  background: #fff;
  border-radius: 14px;
  box-shadow: var(--shadow);
  line-height: 1.55;
  max-width: 76%;
  padding: 10px 12px;
  word-break: break-word;
}

.mine .bubble {
  background: #c9f7d8;
}

.bubble-name {
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 5px;
}

.bubble img {
  border-radius: 10px;
  display: block;
  max-width: 190px;
}

.composer {
  align-items: center;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 -3px 14px rgba(17, 32, 52, .06);
  display: flex;
  flex: 0 0 auto;
  gap: 8px;
  padding: 10px;
}

.composer .field {
  background: #f6f8fa;
  flex: 1;
  min-width: 0;
}

.moment-publisher {
  margin-bottom: 24px;
  padding: 16px;
}

.moment-publisher textarea {
  font-size: 20px;
  min-height: 128px;
  margin-top: 16px;
}

.moment-compose-actions {
  align-items: center;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  margin-top: 14px;
}

.image-pick {
  background: #d9f8e8;
  border: 0;
  border-radius: 50%;
  color: var(--primary);
  height: 56px;
  position: relative;
  width: 56px;
}

.image-pick:before {
  border: 4px solid currentColor;
  border-radius: 4px;
  content: "";
  height: 22px;
  left: 15px;
  position: absolute;
  top: 17px;
  width: 26px;
}

.image-pick:after {
  border-bottom: 10px solid currentColor;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  content: "";
  left: 20px;
  position: absolute;
  top: 28px;
}

.moment-publish {
  background: var(--primary);
  border: 0;
  border-radius: 14px;
  color: #fff;
  font-size: 18px;
  font-weight: 780;
  height: 54px;
  min-width: 96px;
}

.moment-tabs {
  display: flex;
  gap: 10px;
  margin: 0 0 18px;
}

.moment-tab {
  background: #fff;
  border: 1px solid var(--line-strong);
  color: #566273;
  font-size: 17px;
  min-height: 42px;
}

.moment-tab.active {
  background: #c9f7ee;
  border-color: #c9f7ee;
  color: #006d60;
}

.feed-card {
  margin-bottom: 16px;
  padding: 16px;
}

.feed-head {
  align-items: center;
  display: flex;
  gap: 12px;
}

.feed-user {
  flex: 1;
  min-width: 0;
}

.feed-name {
  color: var(--text);
  font-size: 20px;
  font-weight: 780;
  line-height: 1.25;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.feed-content {
  color: var(--text);
  font-size: 20px;
  line-height: 1.55;
  margin: 26px 0 20px;
  white-space: pre-wrap;
  word-break: break-word;
}

.feed-images {
  display: grid;
  gap: 6px;
  grid-template-columns: repeat(3, 1fr);
  margin: 12px 0 18px;
}

.feed-images.single {
  grid-template-columns: minmax(96px, 160px);
}

.feed-images img {
  aspect-ratio: 1;
  border-radius: 6px;
  object-fit: cover;
  width: 100%;
}

.feed-time {
  align-items: center;
  color: var(--primary);
  display: flex;
  font-size: 16px;
  font-weight: 780;
  justify-content: flex-end;
}

.feed-time .moment-tab {
  border-color: transparent;
  color: var(--primary);
  padding: 0 10px;
}

.icon-btn.delete {
  color: var(--text);
  margin-left: auto;
}

.icon-btn.delete:before {
  border: 3px solid currentColor;
  border-top: 0;
  border-radius: 0 0 3px 3px;
  content: "";
  height: 22px;
  left: 13px;
  position: absolute;
  top: 16px;
  width: 18px;
}

.icon-btn.delete:after {
  background: currentColor;
  border-radius: 2px;
  box-shadow: 5px -4px 0 -2px currentColor, -5px -4px 0 -2px currentColor;
  content: "";
  height: 4px;
  left: 10px;
  position: absolute;
  top: 10px;
  width: 24px;
}

.load-more,
.download-link {
  background: #fff;
  border: 1px solid var(--line-strong);
  color: #2f5c9a;
  display: block;
  margin: 16px auto;
}

.download-card {
  margin-bottom: 16px;
  overflow: hidden;
}

.download-link {
  align-items: center;
  border-left: 0;
  border-radius: 0;
  border-right: 0;
  border-bottom: 0;
  display: flex;
  justify-content: center;
  margin: 0;
  min-height: 52px;
}

.toast {
  background: rgba(15, 23, 42, .88);
  border-radius: 12px;
  bottom: calc(112px + env(safe-area-inset-bottom));
  color: #fff;
  font-size: 14px;
  left: 50%;
  max-width: 82%;
  padding: 10px 14px;
  position: absolute;
  text-align: center;
  transform: translateX(-50%);
  z-index: 20;
}

.hide {
  display: none !important;
}

@media (min-width: 780px) and (hover: hover) and (pointer: fine) {
  body {
    align-items: center;
    display: flex;
    justify-content: center;
  }

  .app-shell {
    border-radius: 18px;
    box-shadow: 0 18px 50px rgba(17, 32, 52, .18);
    height: min(100vh, 900px);
    min-height: 0;
  }
}

@media (max-width: 360px) {
  .topbar {
    min-height: 104px;
    padding-left: 16px;
    padding-right: 16px;
  }

  .topbar h1,
  .subpage-shell .topbar h1 {
    font-size: 27px;
  }

  .page {
    padding-left: 12px;
    padding-right: 12px;
  }

  .row-title,
  .title,
  .feed-name {
    font-size: 17px;
  }

  .row-desc,
  .desc {
    font-size: 14px;
  }

  .im-tab {
    font-size: 14px;
  }
}

/* Product UI refresh inspired by mature IM H5 patterns, using NowChat branding. */
:root {
  --bg: #f5f6f8;
  --surface: #fff;
  --muted: #7b8490;
  --line: #eceff2;
  --line-strong: #e2e6ea;
  --primary: #07c160;
  --primary-dark: #049a4d;
  --shadow: 0 10px 28px rgba(18, 30, 46, .08);
}

.main-shell .topbar,
.subpage-shell .topbar {
  align-items: center;
  background: var(--surface);
  min-height: calc(62px + env(safe-area-inset-top));
  padding: calc(env(safe-area-inset-top) + 8px) 16px 10px;
  position: relative;
}

.main-shell .topbar h1,
.subpage-shell .topbar h1 {
  color: #050812;
  font-size: 20px;
  font-weight: 820;
  line-height: 44px;
  margin: 0;
  text-align: center;
}

.main-shell.tab-chat .topbar h1,
.main-shell.tab-discover .topbar h1,
.subpage-shell .topbar h1 {
  left: 82px;
  pointer-events: none;
  position: absolute;
  right: 82px;
}

.main-shell.tab-contacts .topbar h1 {
  flex: 1;
  font-size: 28px;
  text-align: left;
}

.main-shell.tab-contacts .top-spacer {
  display: none;
}

.main-shell.tab-me .topbar {
  display: none;
}

.main-shell.tab-me .page-main {
  padding-top: 0;
}

.topbar-actions {
  gap: 9px;
  height: 44px;
  margin-left: auto;
}

.top-spacer {
  flex: 0 0 44px;
  height: 44px;
}

.top-pill {
  align-items: center;
  background: #f0f1f3;
  border: 0;
  border-radius: 22px;
  color: #171b22;
  display: inline-flex;
  flex: 0 0 auto;
  font-size: 14px;
  font-weight: 760;
  height: 38px;
  justify-content: center;
  min-width: 72px;
  padding: 0 18px;
}

.top-pill.light {
  background: rgba(255, 255, 255, .92);
}

.round-action {
  align-items: center;
  background: #f0f1f3;
  border: 0;
  border-radius: 16px;
  color: #0d1117;
  display: inline-flex;
  flex: 0 0 auto;
  height: 42px;
  justify-content: center;
  padding: 0;
  position: relative;
  width: 42px;
}

.round-action.dark {
  background: #050812;
  color: #fff;
}

.round-action.add:before,
.round-action.add:after,
.composer-tool.plus-tool:before,
.composer-tool.plus-tool:after {
  background: currentColor;
  border-radius: 99px;
  content: "";
  position: absolute;
}

.round-action.add:before,
.composer-tool.plus-tool:before {
  height: 3px;
  width: 18px;
}

.round-action.add:after,
.composer-tool.plus-tool:after {
  height: 18px;
  width: 3px;
}

.round-action.search:before {
  border: 3px solid currentColor;
  border-radius: 50%;
  content: "";
  height: 14px;
  left: 11px;
  position: absolute;
  top: 10px;
  width: 14px;
}

.round-action.search:after {
  background: currentColor;
  border-radius: 99px;
  content: "";
  height: 9px;
  left: 25px;
  position: absolute;
  top: 25px;
  transform: rotate(-45deg);
  width: 3px;
}

.round-action.bell:before {
  border: 3px solid currentColor;
  border-bottom: 0;
  border-radius: 12px 12px 0 0;
  content: "";
  height: 16px;
  left: 13px;
  position: absolute;
  top: 11px;
  width: 14px;
}

.round-action.bell:after {
  background: currentColor;
  border-radius: 99px;
  box-shadow: 4px 5px 0 -2px currentColor;
  content: "";
  height: 3px;
  left: 12px;
  position: absolute;
  top: 28px;
  width: 18px;
}

.round-action.more:before {
  background: currentColor;
  border-radius: 50%;
  box-shadow: 0 8px 0 currentColor, 0 16px 0 currentColor;
  content: "";
  height: 4px;
  width: 4px;
}

.round-action.user-add:before {
  background: currentColor;
  border-radius: 50%;
  content: "";
  height: 9px;
  left: 12px;
  position: absolute;
  top: 10px;
  width: 9px;
}

.round-action.user-add:after {
  border: 3px solid currentColor;
  border-bottom-width: 4px;
  border-radius: 14px 14px 5px 5px;
  content: "";
  height: 12px;
  left: 8px;
  position: absolute;
  top: 22px;
  width: 17px;
}

.round-action.user-add {
  background:
    linear-gradient(currentColor, currentColor) 30px 14px / 3px 14px no-repeat,
    linear-gradient(currentColor, currentColor) 24px 20px / 14px 3px no-repeat,
    #f0f1f3;
}

.round-action.qr-action,
.round-action.qr-white {
  background:
    linear-gradient(currentColor, currentColor) 12px 12px / 7px 3px no-repeat,
    linear-gradient(currentColor, currentColor) 12px 12px / 3px 7px no-repeat,
    linear-gradient(currentColor, currentColor) 25px 12px / 7px 3px no-repeat,
    linear-gradient(currentColor, currentColor) 29px 12px / 3px 7px no-repeat,
    linear-gradient(currentColor, currentColor) 12px 25px / 7px 3px no-repeat,
    linear-gradient(currentColor, currentColor) 12px 25px / 3px 7px no-repeat,
    rgba(255, 255, 255, .92);
}

.round-action.qr-action {
  background-color: #f0f1f3;
}

.icon-btn.back {
  color: #0d1117;
  font-size: 38px;
  height: 44px;
  margin-left: -7px;
  width: 44px;
}

.page {
  background: var(--bg);
  padding: 8px 16px 22px;
}

.page-main {
  padding-bottom: calc(96px + env(safe-area-inset-bottom));
}

.search-box,
.sub-search {
  background: #eff0f2;
  border: 0;
  border-radius: 9px;
  box-shadow: none;
  color: #8b929c;
  gap: 9px;
  min-height: 48px;
  margin: 0 0 18px;
  padding: 0 16px;
}

.search-box span:last-child {
  color: #9aa1aa;
  font-size: 16px;
  font-weight: 560;
}

.search-mark {
  color: #8c949e;
  height: 20px;
  width: 20px;
}

.search-mark:before {
  border-width: 2px;
  height: 11px;
  width: 11px;
}

.search-mark:after {
  height: 7px;
  left: 14px;
  top: 14px;
  width: 2px;
}

.list-panel {
  background: #fff;
  border-radius: 0;
  margin: 0 -16px;
  overflow: hidden;
}

.card.row,
.row.im-row {
  background: #fff;
  border: 0;
  border-bottom: 1px solid #eff1f3;
  border-radius: 0;
  box-shadow: none;
  margin: 0;
  min-height: 72px;
  padding: 10px 16px;
}

.row.im-row:last-child {
  border-bottom: 0;
}

.avatar {
  border-radius: 13px;
  height: 52px;
  width: 52px;
}

.avatar-fallback {
  background: linear-gradient(135deg, #93e77e, #06b67b);
  color: #fff;
  font-size: 20px;
}

.row-title,
.title {
  align-items: center;
  display: flex;
  font-size: 17px;
  font-weight: 820;
  gap: 5px;
}

.row-desc,
.desc {
  color: #8b929c;
  font-size: 14px;
  margin-top: 4px;
}

.row-tag {
  background: #e9f4ff;
  border-radius: 4px;
  color: #2386d1;
  font-size: 11px;
  font-weight: 820;
  line-height: 17px;
  padding: 0 4px;
}

.verified-badge {
  background: #2da7ff;
  border-radius: 50%;
  display: inline-flex;
  height: 14px;
  position: relative;
  width: 14px;
}

.verified-badge:after {
  border-bottom: 2px solid #fff;
  border-right: 2px solid #fff;
  content: "";
  height: 6px;
  left: 5px;
  position: absolute;
  top: 2px;
  transform: rotate(45deg);
  width: 3px;
}

.tabbar {
  background: #fff;
  border: 0;
  border-radius: 31px;
  bottom: calc(10px + env(safe-area-inset-bottom));
  box-shadow: 0 12px 30px rgba(18, 30, 46, .1);
  grid-template-columns: repeat(4, minmax(0, 1fr));
  height: 66px;
  left: 22px;
  padding: 0 8px;
  right: 22px;
}

.im-bottom:before {
  display: none;
}

.im-tab {
  border-radius: 27px;
  color: #050812;
  font-size: 12px;
  font-weight: 800;
  gap: 4px;
  height: 54px;
  margin: 6px 0;
  padding: 4px 0;
}

.im-tab.active {
  background: #eef0f2;
  color: #050812;
}

.im-tab i {
  height: 23px;
  width: 23px;
}

.im-tab.active i {
  color: var(--primary-dark);
}

.auth-shell {
  background: #fff;
}

.auth-page {
  background: #fff;
  padding: calc(env(safe-area-inset-top) + 18px) 40px calc(env(safe-area-inset-bottom) + 28px);
}

.auth-nav {
  align-items: center;
  display: grid;
  grid-template-columns: 44px 1fr 44px;
  margin: 0 -24px 34px;
  min-height: 42px;
}

.auth-nav h1 {
  color: #050812;
  font-size: 20px;
  font-weight: 850;
  margin: 0;
  text-align: center;
}

.auth-hero {
  align-items: center;
  display: flex;
  flex-direction: column;
  padding: 44px 0 42px;
  text-align: center;
}

.auth-mode-register .auth-hero,
.auth-mode-reset .auth-hero {
  padding-top: 18px;
}

.auth-logo-img {
  border-radius: 24px;
  box-shadow: 0 18px 34px rgba(7, 193, 96, .25);
  height: 92px;
  margin: 0 0 28px;
  width: 92px;
}

.auth-name {
  color: #050812;
  font-size: 28px;
  font-weight: 880;
  line-height: 1.12;
}

.auth-mode-login .auth-name {
  font-size: 30px;
}

.auth-sub {
  color: #7d8490;
  font-size: 15px;
  font-weight: 500;
  margin-top: 10px;
}

.auth-steps {
  align-items: center;
  display: flex;
  gap: 12px;
  justify-content: center;
  margin: -20px 0 42px;
}

.auth-steps span {
  align-items: center;
  background: #fff;
  border: 2px solid #e5e7eb;
  border-radius: 50%;
  color: #a5adb6;
  display: inline-flex;
  font-size: 15px;
  font-weight: 800;
  height: 32px;
  justify-content: center;
  width: 32px;
}

.auth-steps span.active {
  background: #050812;
  border-color: #050812;
  color: #fff;
}

.auth-steps i {
  background: #e6e8eb;
  height: 2px;
  width: 66px;
}

.auth-egg {
  background:
    radial-gradient(circle at 56% 14%, #ffd23c 0 30%, transparent 31%),
    radial-gradient(circle at 58% 62%, #e7eaee 0 50%, transparent 51%);
  height: 76px;
  margin-bottom: 28px;
  position: relative;
  width: 96px;
}

.auth-egg:before {
  background: #ffd23c;
  border-radius: 80px 80px 18px 18px;
  content: "";
  height: 42px;
  left: 27px;
  position: absolute;
  top: 10px;
  width: 56px;
}

.auth-egg:after {
  background: #f0f1f3;
  border-radius: 0 0 80px 80px;
  box-shadow: inset 0 0 0 6px #fff;
  content: "";
  height: 42px;
  left: 16px;
  position: absolute;
  top: 31px;
  width: 74px;
}

.auth-reset-mark {
  border: 7px solid #0b0d13;
  border-left-color: transparent;
  border-radius: 50%;
  height: 62px;
  margin-bottom: 28px;
  position: relative;
  transform: rotate(-30deg);
  width: 62px;
}

.auth-reset-mark:before {
  background: #0b0d13;
  border-radius: 4px;
  content: "";
  height: 23px;
  left: 18px;
  position: absolute;
  top: 23px;
  width: 22px;
}

.auth-reset-mark:after {
  border: 5px solid #0b0d13;
  border-bottom: 0;
  border-radius: 14px 14px 0 0;
  content: "";
  height: 17px;
  left: 20px;
  position: absolute;
  top: 7px;
  width: 18px;
}

.auth-form {
  gap: 14px;
  margin-top: 0;
}

.auth-field {
  background: #f0f1f3;
  border: 0;
  border-radius: 9px;
  box-shadow: none;
  gap: 10px;
  min-height: 48px;
  padding: 0 14px;
}

.auth-field span {
  color: #737b86;
  flex-basis: 68px;
  font-size: 16px;
  font-weight: 650;
}

.auth-mode-reset .auth-field span {
  flex-basis: 92px;
}

.auth-field input {
  color: #050812;
  font-size: 16px;
}

.auth-field input::placeholder {
  color: #969da7;
}

.auth-icon {
  color: #7d8490;
  flex: 0 0 auto;
  height: 20px;
  position: relative;
  width: 20px;
}

.auth-user:before {
  background: currentColor;
  border-radius: 50%;
  content: "";
  height: 7px;
  left: 7px;
  position: absolute;
  top: 3px;
  width: 7px;
}

.auth-user:after {
  border: 2px solid currentColor;
  border-radius: 10px 10px 4px 4px;
  content: "";
  height: 8px;
  left: 3px;
  position: absolute;
  top: 12px;
  width: 14px;
}

.auth-lock:before {
  border: 2px solid currentColor;
  border-bottom: 0;
  border-radius: 8px 8px 0 0;
  content: "";
  height: 8px;
  left: 5px;
  position: absolute;
  top: 1px;
  width: 10px;
}

.auth-lock:after {
  background: currentColor;
  border-radius: 3px;
  content: "";
  height: 11px;
  left: 3px;
  position: absolute;
  top: 8px;
  width: 14px;
}

.auth-id:before {
  border: 2px solid currentColor;
  border-radius: 5px;
  content: "";
  height: 14px;
  left: 2px;
  position: absolute;
  top: 3px;
  width: 16px;
}

.auth-id:after {
  background: currentColor;
  box-shadow: 6px 0 0 currentColor;
  content: "";
  height: 2px;
  left: 6px;
  position: absolute;
  top: 10px;
  width: 2px;
}

.auth-meta {
  align-items: center;
  color: #8b929c;
  display: flex;
  font-size: 13px;
  justify-content: space-between;
  margin: -2px 2px 14px;
}

.auth-meta span {
  align-items: center;
  display: inline-flex;
  gap: 5px;
}

.auth-meta button {
  background: transparent;
  border: 0;
  color: #050812;
  font-size: 14px;
  font-weight: 820;
  padding: 0;
}

.auth-shield {
  border: 2px solid #9aa1aa;
  border-radius: 8px 8px 10px 10px;
  display: inline-flex;
  height: 14px;
  width: 12px;
}

.auth-submit {
  background: var(--primary);
  border-radius: 11px;
  box-shadow: 0 14px 26px rgba(7, 193, 96, .22);
  color: #fff;
  font-size: 17px;
  height: 51px;
  margin-top: 8px;
}

.auth-links {
  color: #8b929c;
  font-size: 15px;
  font-weight: 500;
  margin-top: 46px;
}

.auth-links button {
  color: #050812;
  font-size: 15px;
  font-weight: 850;
  padding: 0 0 0 10px;
}

.auth-links button:before {
  display: none;
}

.auth-agree {
  align-items: center;
  color: #7d8490;
  display: flex;
  flex-wrap: wrap;
  font-size: 12px;
  gap: 3px;
  justify-content: center;
  line-height: 1.4;
  margin-top: 14px;
}

.auth-agree-check {
  align-items: center;
  cursor: pointer;
  display: inline-flex;
  gap: 8px;
  position: relative;
}

.auth-agree-input {
  height: 1px;
  opacity: 0;
  position: absolute;
  width: 1px;
}

.auth-checkbox {
  background: #fff;
  border: 1px solid #d8dde3;
  border-radius: 4px;
  display: inline-flex;
  flex: 0 0 auto;
  height: 16px;
  position: relative;
  width: 16px;
}

.auth-agree-input:checked + .auth-checkbox {
  background: var(--primary);
  border-color: var(--primary);
}

.auth-agree-input:checked + .auth-checkbox:after {
  border: solid #fff;
  border-width: 0 2px 2px 0;
  content: "";
  height: 8px;
  left: 5px;
  position: absolute;
  top: 1px;
  transform: rotate(45deg);
  width: 4px;
}

.auth-agree-input:focus-visible + .auth-checkbox {
  box-shadow: 0 0 0 3px rgba(7, 193, 96, .18);
}

.auth-policy-link {
  background: transparent;
  border: 0;
  color: #050812;
  font-size: 12px;
  font-weight: 760;
  line-height: 1.4;
  padding: 0;
}

.policy-page {
  padding-top: calc(env(safe-area-inset-top) + 18px);
}

.policy-card {
  background: #fff;
  color: #111827;
  display: grid;
  gap: 14px;
  padding: 8px 0 24px;
}

.policy-card h2 {
  font-size: 24px;
  line-height: 1.2;
  margin: 0 0 6px;
}

.policy-card p {
  color: #4b5563;
  font-size: 15px;
  line-height: 1.75;
  margin: 0;
}

.contact-shortcuts {
  background: #fff;
  margin: 0 -16px 0;
}

.contact-shortcut {
  align-items: center;
  background: #fff;
  border: 0;
  border-bottom: 1px solid #eff1f3;
  color: #050812;
  display: flex;
  font-size: 16px;
  font-weight: 650;
  gap: 16px;
  min-height: 56px;
  padding: 0 16px;
  width: 100%;
}

.contact-shortcut i {
  color: #0b0d13;
  flex: 0 0 auto;
  height: 24px;
  position: relative;
  width: 24px;
}

.new-friend:before,
.group-chat:before,
.channel:before {
  content: "";
  position: absolute;
}

.new-friend:before {
  background: currentColor;
  border-radius: 50%;
  box-shadow: 10px 10px 0 -1px currentColor;
  height: 7px;
  left: 2px;
  top: 5px;
  width: 7px;
}

.new-friend:after {
  background:
    linear-gradient(currentColor, currentColor) 18px 3px / 2px 10px no-repeat,
    linear-gradient(currentColor, currentColor) 14px 7px / 10px 2px no-repeat;
  content: "";
  inset: 0;
  position: absolute;
}

.group-chat:before {
  background: currentColor;
  border-radius: 50%;
  box-shadow: 9px 1px 0 currentColor, 18px 0 0 currentColor;
  height: 6px;
  left: 0;
  top: 7px;
  width: 6px;
}

.group-chat:after {
  border: 3px solid currentColor;
  border-radius: 12px;
  content: "";
  height: 8px;
  left: 2px;
  position: absolute;
  top: 15px;
  width: 19px;
}

.channel:before {
  border-bottom: 7px solid transparent;
  border-left: 18px solid currentColor;
  border-top: 7px solid transparent;
  height: 0;
  left: 2px;
  top: 5px;
  width: 0;
}

.channel:after {
  background: currentColor;
  border-radius: 2px;
  content: "";
  height: 15px;
  left: 18px;
  position: absolute;
  top: 5px;
  transform: rotate(-14deg);
  width: 3px;
}

.alpha-title {
  background: #f0f1f3;
  color: #777f89;
  font-size: 12px;
  line-height: 31px;
  margin: 0 -16px;
  padding-left: 16px;
}

.contact-index {
  color: #8b929c;
  display: grid;
  font-size: 10px;
  gap: 2px;
  position: absolute;
  right: 4px;
  text-align: center;
  top: 48%;
  z-index: 4;
}

.discover-list {
  background: #fff;
  margin: -8px -16px 0;
}

.app-section,
.settings-card {
  background: #fff;
  border: 0;
  border-radius: 14px;
  box-shadow: none;
}

.app-row {
  min-height: 58px;
  padding: 11px 18px;
}

.app-entry-icon {
  border-radius: 10px;
  height: 34px;
  width: 34px;
}

.app-entry-icon.red {
  background: #ff3f43;
  color: #fff;
}

.app-entry-icon.orange {
  background: #ff9f0a;
  color: #fff;
}

.app-entry-icon.purple {
  background: #6266f1;
  color: #fff;
}

.app-entry-icon.gray {
  background: #9aa1aa;
  color: #fff;
}

.app-entry-icon.green {
  background: #30d158;
  color: #fff;
}

.app-entry-icon.dark {
  background: #050812;
  color: #fff;
}

.arrow {
  border-color: #9ca3af;
  border-width: 2px;
  height: 9px;
  width: 9px;
}

.settings-hero {
  background:
    radial-gradient(circle at 18% 16%, rgba(255, 255, 255, .3) 0 9px, transparent 10px),
    radial-gradient(circle at 76% 18%, rgba(255, 255, 255, .22) 0 16px, transparent 17px),
    linear-gradient(145deg, #38d98b 0%, #17b8d6 52%, #2d86e6 100%);
  color: #fff;
  margin: -8px -16px 0;
  min-height: 264px;
  overflow: hidden;
  padding: 20px 16px 30px;
  position: relative;
  text-align: center;
}

.settings-hero:after {
  background-image:
    linear-gradient(120deg, rgba(255,255,255,.16) 10px, transparent 11px),
    radial-gradient(circle, rgba(255,255,255,.12) 2px, transparent 3px);
  background-size: 78px 78px, 34px 34px;
  content: "";
  inset: 0;
  opacity: .55;
  position: absolute;
}

.profile-actions,
.settings-name,
.settings-id,
.settings-hero .avatar {
  position: relative;
  z-index: 1;
}

.profile-actions {
  align-items: center;
  display: flex;
  justify-content: space-between;
  margin-bottom: 16px;
}

.avatar.profile {
  border: 4px solid #fff;
  border-radius: 50%;
  box-shadow: 0 10px 22px rgba(0, 0, 0, .18);
  font-size: 48px;
  height: 104px;
  margin: 0 auto 14px;
  width: 104px;
}

.settings-name {
  font-size: 24px;
  font-weight: 880;
  margin-bottom: 8px;
}

.settings-id {
  color: rgba(255, 255, 255, .82);
  font-size: 14px;
}

.settings-card {
  margin: -18px 0 18px;
  overflow: hidden;
  position: relative;
  z-index: 2;
}

.settings-card.compact {
  margin-top: 0;
}

.entry-warning:before {
  border-bottom: 24px solid currentColor;
  border-left: 14px solid transparent;
  border-right: 14px solid transparent;
  content: "";
  left: 3px;
  position: absolute;
  top: 5px;
}

.entry-warning:after {
  background: #fff;
  border-radius: 2px;
  box-shadow: 0 10px 0 #fff;
  content: "";
  height: 9px;
  left: 16px;
  position: absolute;
  top: 13px;
  width: 3px;
}

.entry-wallet:before,
.entry-chat-setting:before {
  border: 3px solid currentColor;
  border-radius: 5px;
  content: "";
  height: 19px;
  left: 6px;
  position: absolute;
  top: 8px;
  width: 22px;
}

.entry-wallet:after {
  background: currentColor;
  border-radius: 50%;
  content: "";
  height: 4px;
  left: 21px;
  position: absolute;
  top: 17px;
  width: 4px;
}

.entry-vip:before {
  border: 3px solid currentColor;
  border-radius: 50%;
  content: "";
  height: 20px;
  left: 7px;
  position: absolute;
  top: 6px;
  width: 20px;
}

.entry-vip:after {
  border-bottom: 7px solid currentColor;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  content: "";
  left: 12px;
  position: absolute;
  top: 14px;
}

.entry-bell:before {
  border: 3px solid currentColor;
  border-bottom: 0;
  border-radius: 12px 12px 0 0;
  content: "";
  height: 15px;
  left: 9px;
  position: absolute;
  top: 7px;
  width: 14px;
}

.entry-bell:after {
  background: currentColor;
  border-radius: 99px;
  content: "";
  height: 3px;
  left: 8px;
  position: absolute;
  top: 24px;
  width: 18px;
}

.entry-lock:before {
  border: 3px solid currentColor;
  border-bottom: 0;
  border-radius: 10px 10px 0 0;
  content: "";
  height: 11px;
  left: 10px;
  position: absolute;
  top: 4px;
  width: 13px;
}

.entry-lock:after {
  background: currentColor;
  border-radius: 4px;
  content: "";
  height: 16px;
  left: 8px;
  position: absolute;
  top: 15px;
  width: 18px;
}

.entry-cloud:before {
  background: currentColor;
  border-radius: 16px;
  content: "";
  height: 15px;
  left: 6px;
  position: absolute;
  top: 15px;
  width: 23px;
}

.entry-cloud:after {
  background: currentColor;
  border-radius: 50%;
  box-shadow: 11px -2px 0 1px currentColor;
  content: "";
  height: 13px;
  left: 10px;
  position: absolute;
  top: 8px;
  width: 13px;
}

.entry-chat-setting:after {
  border-left: 6px solid transparent;
  border-top: 7px solid currentColor;
  content: "";
  left: 11px;
  position: absolute;
  top: 25px;
}

.sheet-mask {
  background: rgba(0, 0, 0, .52);
  inset: 0;
  position: absolute;
  z-index: 10;
}

.action-sheet {
  background: #fff;
  border-radius: 14px 14px 0 0;
  bottom: 0;
  left: 0;
  padding: 10px 16px calc(86px + env(safe-area-inset-bottom));
  position: absolute;
  right: 0;
  z-index: 11;
}

.sheet-handle {
  background: #dfe3e7;
  border-radius: 99px;
  height: 4px;
  margin: 0 auto 16px;
  width: 36px;
}

.sheet-item {
  align-items: center;
  background: #fff;
  border: 0;
  display: flex;
  gap: 12px;
  min-height: 72px;
  padding: 4px 0;
  text-align: left;
  width: 100%;
}

.sheet-item i {
  border-radius: 12px;
  flex: 0 0 auto;
  height: 44px;
  position: relative;
  width: 44px;
}

.sheet-item span {
  display: grid;
  gap: 4px;
}

.sheet-item b {
  color: #050812;
  font-size: 16px;
  font-weight: 780;
}

.sheet-item em {
  color: #8b929c;
  font-size: 13px;
  font-style: normal;
}

.sheet-search {
  background: #edf0f3;
  color: #0b0d13;
}

.sheet-group {
  background: #e8fbf1;
  color: var(--primary-dark);
}

.sheet-channel {
  background: #fff6df;
  color: #e69a00;
}

.sheet-scan {
  background: #f4e7fb;
  color: #a040c7;
}

.sheet-search:before,
.sheet-group:before,
.sheet-channel:before,
.sheet-scan:before {
  content: "";
  position: absolute;
}

.sheet-search:before {
  border: 3px solid currentColor;
  border-radius: 50%;
  height: 15px;
  left: 12px;
  top: 11px;
  width: 15px;
}

.sheet-search:after {
  background: currentColor;
  border-radius: 99px;
  content: "";
  height: 9px;
  left: 27px;
  position: absolute;
  top: 27px;
  transform: rotate(-45deg);
  width: 3px;
}

.sheet-group:before {
  background: currentColor;
  border-radius: 50%;
  box-shadow: 12px 0 0 currentColor, 24px 0 0 currentColor;
  height: 8px;
  left: 6px;
  top: 13px;
  width: 8px;
}

.sheet-group:after {
  border: 3px solid currentColor;
  border-radius: 13px;
  content: "";
  height: 9px;
  left: 8px;
  position: absolute;
  top: 25px;
  width: 25px;
}

.sheet-channel:before {
  border-bottom: 9px solid transparent;
  border-left: 24px solid currentColor;
  border-top: 9px solid transparent;
  height: 0;
  left: 9px;
  top: 12px;
  width: 0;
}

.sheet-channel:after {
  background: currentColor;
  border-radius: 2px;
  content: "";
  height: 20px;
  left: 32px;
  position: absolute;
  top: 12px;
  transform: rotate(-14deg);
  width: 3px;
}

.sheet-scan:before {
  background:
    linear-gradient(currentColor, currentColor) 0 0 / 8px 3px no-repeat,
    linear-gradient(currentColor, currentColor) 0 0 / 3px 8px no-repeat,
    linear-gradient(currentColor, currentColor) 100% 0 / 8px 3px no-repeat,
    linear-gradient(currentColor, currentColor) 100% 0 / 3px 8px no-repeat,
    linear-gradient(currentColor, currentColor) 0 100% / 8px 3px no-repeat,
    linear-gradient(currentColor, currentColor) 0 100% / 3px 8px no-repeat,
    linear-gradient(currentColor, currentColor) 100% 100% / 8px 3px no-repeat,
    linear-gradient(currentColor, currentColor) 100% 100% / 3px 8px no-repeat;
  height: 24px;
  left: 10px;
  top: 10px;
  width: 24px;
}

.im-chat {
  background:
    radial-gradient(circle at 18% 12%, rgba(255, 255, 255, .55) 0 1px, transparent 2px),
    linear-gradient(135deg, #eff4f8 0%, #e7eef2 100%);
  margin: -8px -16px -22px;
  padding: 10px 8px calc(env(safe-area-inset-bottom) + 10px);
}

.chat .messages {
  padding: 8px 8px 12px;
}

.bubble-line {
  margin-bottom: 14px;
}

.bubble {
  border-radius: 15px;
  box-shadow: none;
  font-size: 15px;
  line-height: 1.5;
  padding: 10px 12px;
}

.mine .bubble {
  background: #bff4c9;
}

.bubble-name {
  color: #8b929c;
  font-size: 11px;
}

.message-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.composer {
  background: #fff;
  border-radius: 0;
  box-shadow: 0 -6px 20px rgba(18, 30, 46, .05);
  gap: 7px;
  margin: 0 -8px;
  padding: 8px 8px;
}

.composer .field {
  background: #f1f2f4;
  border: 0;
  border-radius: 18px;
  min-height: 38px;
}

.composer .primary {
  border-radius: 18px;
  min-height: 38px;
  padding: 0 13px;
}

.composer-tool {
  background: #f1f2f4;
  border: 0;
  border-radius: 50%;
  color: #111827;
  flex: 0 0 auto;
  height: 38px;
  position: relative;
  width: 38px;
}

.image-tool:before {
  border: 3px solid currentColor;
  border-radius: 5px;
  content: "";
  height: 17px;
  left: 9px;
  position: absolute;
  top: 10px;
  width: 20px;
}

.image-tool:after {
  border-bottom: 8px solid currentColor;
  border-left: 7px solid transparent;
  border-right: 7px solid transparent;
  content: "";
  left: 12px;
  position: absolute;
  top: 19px;
}

.square-toolbar {
  display: flex;
  gap: 9px;
  justify-content: flex-end;
  margin-bottom: 12px;
}

.square-grid {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.square-grid .feed-card {
  border: 0;
  border-radius: 8px;
  box-shadow: none;
  margin: 0;
  overflow: hidden;
  padding: 0;
}

.demo-thumb,
.square-grid .feed-images img {
  aspect-ratio: 1.12;
  border-radius: 0;
  display: block;
  object-fit: cover;
  width: 100%;
}

.demo-thumb-1 {
  background:
    radial-gradient(circle at 68% 30%, rgba(255,255,255,.72) 0 20px, transparent 21px),
    linear-gradient(135deg, #95d5ff, #1aa76c);
}

.demo-thumb-2 {
  background:
    linear-gradient(90deg, rgba(255,255,255,.55) 10px, transparent 11px) 0 0 / 28px 100%,
    linear-gradient(135deg, #f7d06f, #38bdf8);
}

.demo-thumb-3 {
  background:
    radial-gradient(circle at 40% 44%, rgba(255,255,255,.76) 0 34px, transparent 35px),
    linear-gradient(135deg, #d1d5db, #14b8a6);
}

.demo-thumb-4 {
  background:
    linear-gradient(135deg, rgba(255,255,255,.62) 25%, transparent 26%),
    linear-gradient(135deg, #93c5fd, #22c55e);
}

.square-title {
  color: #111827;
  font-size: 14px;
  font-weight: 650;
  line-height: 1.35;
  padding: 9px 10px 8px;
}

.square-meta {
  align-items: center;
  color: #7d8490;
  display: flex;
  font-size: 12px;
  gap: 5px;
  padding: 0 10px 10px;
}

.mini-avatar {
  align-items: center;
  background: #8ee47a;
  border-radius: 6px;
  color: #fff;
  display: inline-flex;
  font-size: 12px;
  font-weight: 820;
  height: 20px;
  justify-content: center;
  width: 20px;
}

.heart {
  background: transparent;
  border: 0;
  height: 26px;
  margin-left: auto;
  position: relative;
  width: 26px;
}

.heart:before,
.heart:after {
  border: 2px solid #a8b0ba;
  border-bottom: 0;
  border-radius: 11px 11px 0 0;
  content: "";
  height: 12px;
  position: absolute;
  top: 6px;
  width: 8px;
}

.heart:before {
  left: 7px;
  transform: rotate(-45deg);
}

.heart:after {
  left: 12px;
  transform: rotate(45deg);
}

.form {
  border: 0;
  border-radius: 14px;
  box-shadow: none;
}

@media (max-width: 360px) {
  .auth-page {
    padding-left: 24px;
    padding-right: 24px;
  }

  .auth-field span {
    flex-basis: 58px;
    font-size: 14px;
  }

  .auth-mode-reset .auth-field span {
    flex-basis: 78px;
  }

  .tabbar {
    left: 16px;
    right: 16px;
  }
}

.ui-icon {
  display: block;
  fill: none;
  flex: 0 0 auto;
  height: 22px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.25;
  width: 22px;
}

.icon-btn .ui-icon,
.round-action .ui-icon,
.composer-tool .ui-icon {
  height: 22px;
  width: 22px;
}

.icon-btn.back {
  font-size: 0;
}

.icon-btn.back .ui-icon {
  height: 30px;
  stroke-width: 2.6;
  width: 30px;
}

.im-tab > .ui-icon {
  height: 24px;
  width: 24px;
}

.auth-icon.ui-icon,
.auth-meta-icon {
  color: #77808b;
  height: 20px;
  width: 20px;
}

.auth-meta-icon {
  height: 15px;
  width: 15px;
}

.search-mark-icon {
  color: #8c949e;
  height: 20px;
  width: 20px;
}

.shortcut-icon {
  color: #0b0d13;
  height: 24px;
  width: 24px;
}

.app-entry-icon .entry-svg {
  height: 20px;
  stroke-width: 2.3;
  width: 20px;
}

.app-entry-icon b {
  display: none;
}

.arrow-icon {
  color: #a3abb5;
  height: 18px;
  margin-left: auto;
  stroke-width: 2.4;
  width: 18px;
}

.empty-icon {
  height: 34px;
  width: 34px;
}

.sheet-item i {
  align-items: center;
  display: inline-flex;
  justify-content: center;
}

.sheet-item i .ui-icon {
  height: 23px;
  width: 23px;
}

.round-action.light {
  background: rgba(255, 255, 255, .92);
}

.round-action.add:before,
.round-action.add:after,
.round-action.search:before,
.round-action.search:after,
.round-action.bell:before,
.round-action.bell:after,
.round-action.more:before,
.round-action.user-add:before,
.round-action.user-add:after,
.composer-tool.plus-tool:before,
.composer-tool.plus-tool:after,
.image-tool:before,
.image-tool:after,
.auth-user:before,
.auth-user:after,
.auth-lock:before,
.auth-lock:after,
.auth-id:before,
.auth-id:after,
.auth-shield,
.contact-shortcut i:before,
.contact-shortcut i:after,
.sheet-item i:before,
.sheet-item i:after,
.app-entry-icon[class*="entry-"]:before,
.app-entry-icon[class*="entry-"]:after,
.entry-warning:before,
.entry-warning:after,
.entry-wallet:before,
.entry-wallet:after,
.entry-vip:before,
.entry-vip:after,
.entry-bell:before,
.entry-bell:after,
.entry-lock:before,
.entry-lock:after,
.entry-cloud:before,
.entry-cloud:after,
.entry-chat-setting:before,
.entry-chat-setting:after,
.ico-chat:before,
.ico-chat:after,
.ico-book:before,
.ico-book:after,
.ico-discover:before,
.ico-discover:after,
.ico-user:before,
.ico-user:after {
  content: none !important;
  display: none !important;
}

.auth-agree-input {
  accent-color: var(--primary);
  cursor: pointer;
  flex: 0 0 auto;
  height: 16px;
  opacity: 1;
  position: static;
  width: 16px;
}

.auth-checkbox {
  display: none;
}

.auth-agree-input:focus-visible {
  outline: 2px solid rgba(7, 193, 96, .36);
  outline-offset: 2px;
}

.heart {
  align-items: center;
  color: #9aa3ad;
  display: inline-flex;
  justify-content: center;
}

.heart .ui-icon {
  height: 18px;
  stroke-width: 2.35;
  width: 18px;
}

.heart:before,
.heart:after,
.icon-btn.delete:before,
.icon-btn.delete:after,
.image-pick:before,
.image-pick:after {
  content: none !important;
  display: none !important;
}

.image-pick {
  align-items: center;
  display: inline-flex;
  justify-content: center;
}

.image-pick .ui-icon {
  height: 22px;
  width: 22px;
}

.settings-hero {
  background: linear-gradient(145deg, #18c77c 0%, #16a6d6 100%);
}

.settings-hero:after {
  background-image: linear-gradient(135deg, rgba(255,255,255,.16) 1px, transparent 1px);
  background-size: 28px 28px;
}

.settings-inline-profile {
  align-items: center;
  display: flex;
  gap: 14px;
  margin-bottom: 12px;
}

.settings-inline-profile strong,
.settings-inline-profile span {
  display: block;
}

.settings-inline-profile strong {
  font-size: 18px;
  line-height: 1.25;
}

.settings-inline-profile span {
  color: var(--muted);
  font-size: 13px;
  margin-top: 4px;
}

.settings-detail {
  display: grid;
  gap: 14px;
}

.settings-note {
  background: #f4f7f6;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: #667085;
  font-size: 14px;
  line-height: 1.6;
  padding: 12px 14px;
}

.wallet-balance {
  background: linear-gradient(135deg, #101820, #253142);
  border-radius: 12px;
  color: #fff;
  display: grid;
  gap: 4px;
  padding: 20px;
}

.wallet-balance span,
.wallet-balance em {
  color: rgba(255, 255, 255, .72);
  font-size: 13px;
  font-style: normal;
}

.wallet-balance strong {
  font-size: 38px;
  letter-spacing: 0;
  line-height: 1.05;
}

.vip-panel {
  background: linear-gradient(135deg, #121826, #2b3650);
  border-radius: 12px;
  color: #fff;
  display: grid;
  gap: 8px;
  padding: 20px;
}

.vip-mark {
  align-items: center;
  background: rgba(255, 255, 255, .12);
  border-radius: 10px;
  color: #ffd66b;
  display: inline-flex;
  height: 44px;
  justify-content: center;
  width: 44px;
}

.vip-panel strong {
  font-size: 20px;
}

.vip-panel span {
  color: rgba(255, 255, 255, .72);
  font-size: 14px;
  line-height: 1.55;
}

.vip-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.vip-grid div {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 6px;
  min-height: 74px;
  padding: 12px;
}

.vip-grid b {
  font-size: 14px;
}

.vip-grid span {
  color: var(--muted);
  font-size: 12px;
}

.wallet-actions {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.wallet-actions .primary,
.wallet-actions .secondary {
  min-height: 44px;
  min-width: 0;
  padding: 0 8px;
}

.wallet-form {
  gap: 12px;
}

.redpacket-cover,
.redpacket-detail {
  background: linear-gradient(135deg, #f04f3e, #cf2f24);
  border-radius: 12px;
  color: #fff;
  display: grid;
  gap: 8px;
  padding: 18px;
}

.redpacket-cover span {
  align-items: center;
  background: rgba(255, 255, 255, .16);
  border-radius: 12px;
  display: inline-flex;
  height: 46px;
  justify-content: center;
  width: 46px;
}

.redpacket-cover b,
.redpacket-detail b {
  font-size: 20px;
  line-height: 1.2;
}

.redpacket-cover em,
.redpacket-detail span {
  color: rgba(255, 255, 255, .76);
  font-size: 13px;
  font-style: normal;
  line-height: 1.45;
}

.redpacket-detail {
  align-items: center;
  text-align: center;
}

.redpacket-detail > strong {
  font-size: 34px;
  line-height: 1.05;
}

.redpacket-sender {
  align-items: center;
  display: flex;
  gap: 8px;
  justify-content: center;
}

.redpacket-card {
  align-items: center;
  background: linear-gradient(135deg, #f25a3f, #d73528);
  border: 0;
  border-radius: 8px;
  color: #fff;
  display: flex;
  gap: 12px;
  min-height: 76px;
  padding: 12px;
  text-align: left;
  width: min(250px, 100%);
}

.redpacket-icon {
  align-items: center;
  background: rgba(255, 255, 255, .16);
  border-radius: 10px;
  display: inline-flex;
  flex: 0 0 auto;
  height: 42px;
  justify-content: center;
  width: 42px;
}

.redpacket-card span:last-child {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.redpacket-card b {
  font-size: 15px;
  line-height: 1.25;
}

.redpacket-card em {
  color: rgba(255, 255, 255, .72);
  font-size: 12px;
  font-style: normal;
}

.reaction-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 8px;
}

.reaction-strip span {
  background: #eaf8f0;
  border: 1px solid #d4eedf;
  border-radius: 999px;
  color: var(--primary-dark);
  font-size: 12px;
  font-weight: 760;
  line-height: 24px;
  padding: 0 8px;
}

.device-row {
  align-items: center;
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(0, 1fr) auto;
  padding-right: 12px;
}

.device-row:last-child {
  border-bottom: 0;
}

.device-row .im-row {
  border-bottom: 0;
}

.device-current {
  background: #e8fbf1;
  border-radius: 999px;
  color: var(--primary-dark);
  font-size: 12px;
  font-weight: 760;
  padding: 6px 10px;
  white-space: nowrap;
}

.vip-plan-list {
  display: grid;
  gap: 10px;
}

.vip-plan {
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  padding: 14px;
}

.vip-plan div {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.vip-plan b {
  font-size: 16px;
}

.vip-plan span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  background: #eef7f2;
  border: 1px solid #d9f0e3;
  border-radius: 999px;
  color: var(--primary-dark);
  display: inline-flex;
  font-size: 13px;
  font-weight: 760;
  line-height: 30px;
  padding: 0 12px;
}

.media-grid {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.media-grid img {
  aspect-ratio: 1;
  border-radius: 8px;
  height: auto;
  object-fit: cover;
  width: 100%;
}

.settings-form {
  gap: 0;
  padding: 0;
}

.settings-form > label:not(.pref-row):not(.pref-field) {
  color: #111827;
  display: block;
  font-size: 14px;
  font-weight: 760;
  padding: 14px 16px 6px;
}

.settings-form > .field {
  margin: 0 16px 12px;
  width: calc(100% - 32px);
}

.pref-row,
.pref-field {
  align-items: center;
  background: #fff;
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 14px;
  justify-content: space-between;
  min-height: 66px;
  padding: 12px 16px;
}

.pref-row span,
.pref-field span {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.pref-row b {
  color: #111827;
  font-size: 16px;
  line-height: 1.25;
}

.pref-row em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  line-height: 1.35;
}

.pref-row input[type="checkbox"] {
  accent-color: var(--primary);
  height: 20px;
  width: 20px;
}

.pref-field .field {
  flex: 0 0 150px;
  min-height: 40px;
}

.desktop-rail,
.desktop-sidebar,
.desktop-pane {
  display: none;
}

@media (min-width: 900px) and (hover: hover) and (pointer: fine) {
  body {
    align-items: stretch;
    background: #eef2f4;
    display: block;
    justify-content: normal;
  }

  .app-shell:not(.auth-shell) {
    border-radius: 0;
    box-shadow: none;
    display: grid;
    grid-template-columns: 68px minmax(320px, 360px) minmax(0, 1fr);
    grid-template-rows: 64px minmax(0, 1fr);
    height: 100vh;
    max-width: none;
    min-height: 0;
    width: 100vw;
  }

  .app-shell:not(.auth-shell) .desktop-rail {
    align-items: center;
    background: #eff1f3;
    border-right: 1px solid #dde3e8;
    display: flex;
    flex-direction: column;
    grid-column: 1;
    grid-row: 1 / 3;
    padding: 16px 8px;
    z-index: 3;
  }

  .desktop-avatar {
    align-items: center;
    background: #293142;
    border: 0;
    border-radius: 9px;
    color: #fff;
    display: inline-flex;
    font-size: 16px;
    font-weight: 820;
    height: 36px;
    justify-content: center;
    overflow: hidden;
    padding: 0;
    width: 36px;
  }

  .desktop-avatar img {
    height: 100%;
    object-fit: cover;
    width: 100%;
  }

  .desktop-rail nav {
    display: grid;
    gap: 12px;
    margin-top: 34px;
  }

  .desktop-tab {
    align-items: center;
    background: transparent;
    border: 0;
    border-radius: 12px;
    color: #5d6672;
    display: inline-flex;
    height: 42px;
    justify-content: center;
    padding: 0;
    position: relative;
    width: 42px;
  }

  .desktop-tab.active {
    background: #dfe3e7;
    color: #101820;
  }

  .desktop-tab span {
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    height: 1px;
    overflow: hidden;
    position: absolute;
    white-space: nowrap;
    width: 1px;
  }

  .desktop-rail-bottom {
    align-items: center;
    display: grid;
    gap: 14px;
    margin-top: auto;
    place-items: center;
  }

  .desktop-latency {
    color: var(--primary-dark);
    font-size: 11px;
    font-weight: 760;
  }

  .app-shell:not(.auth-shell) .topbar {
    border-bottom: 1px solid var(--line);
    grid-column: 2;
    grid-row: 1;
    min-height: 64px;
    padding: 10px 16px;
  }

  .app-shell:not(.auth-shell) .topbar h1,
  .main-shell.tab-chat .topbar h1,
  .main-shell.tab-discover .topbar h1,
  .subpage-shell .topbar h1 {
    flex: 1;
    font-size: 18px;
    left: auto;
    line-height: 44px;
    position: static;
    right: auto;
    text-align: center;
  }

  .main-shell.tab-contacts .topbar h1 {
    font-size: 18px;
    text-align: center;
  }

  .main-shell.tab-me .topbar {
    display: flex;
  }

  .main-shell.tab-me .page-main {
    padding-top: 16px;
  }

  .app-shell:not(.auth-shell) .page {
    grid-column: 2;
    grid-row: 2;
    padding: 16px;
  }

  .app-shell:not(.auth-shell) .page-main {
    padding-bottom: 16px;
  }

  .app-shell:not(.auth-shell) .tabbar {
    display: none;
  }

  .app-shell:not(.auth-shell) .desktop-pane {
    align-items: center;
    background: #f6f7f9;
    border-left: 1px solid var(--line);
    display: flex;
    grid-column: 3;
    grid-row: 1 / 3;
    justify-content: center;
    min-width: 0;
    padding: 24px;
  }

  .desktop-empty {
    color: #8a929d;
    display: grid;
    gap: 12px;
    max-width: 440px;
    place-items: center;
    text-align: center;
  }

  .desktop-empty-icon {
    align-items: center;
    background: #e9fbf2;
    border-radius: 22px;
    color: var(--primary-dark);
    display: inline-flex;
    height: 86px;
    justify-content: center;
    width: 86px;
  }

  .desktop-empty-icon .ui-icon {
    height: 42px;
    width: 42px;
  }

  .desktop-empty h2 {
    color: #1f2937;
    font-size: 20px;
    line-height: 1.3;
    margin: 0;
  }

  .desktop-empty p {
    font-size: 14px;
    line-height: 1.7;
    margin: 0;
  }

  .desktop-empty-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-top: 8px;
  }

  .desktop-empty-actions .primary,
  .desktop-empty-actions .secondary {
    min-height: 40px;
    min-width: 108px;
    padding: 0 18px;
  }

  .subpage-shell .desktop-sidebar {
    background: #fff;
    border-right: 1px solid var(--line);
    display: flex;
    flex-direction: column;
    grid-column: 2;
    grid-row: 1 / 3;
    min-width: 0;
    overflow: hidden;
  }

  .desktop-side-head {
    align-items: center;
    border-bottom: 1px solid var(--line);
    display: flex;
    flex: 0 0 64px;
    gap: 10px;
    justify-content: space-between;
    padding: 10px 16px;
  }

  .desktop-side-head strong {
    color: #111827;
    font-size: 18px;
  }

  .desktop-side-head > div {
    display: flex;
    gap: 8px;
  }

  .desktop-side-body {
    flex: 1;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    padding: 16px;
  }

  .app-shell.subpage-shell:not(.auth-shell) .topbar {
    grid-column: 3;
    grid-row: 1;
  }

  .app-shell.subpage-shell:not(.auth-shell) .page-sub {
    grid-column: 3;
    grid-row: 2;
    padding-bottom: 16px;
  }

  .app-shell.subpage-shell:not(.auth-shell) .im-chat {
    display: grid;
    grid-template-rows: minmax(0, 1fr) auto;
    height: 100%;
    margin: -16px;
    padding: 16px;
  }

  .app-shell.subpage-shell:not(.auth-shell) .chat .messages {
    min-height: 0;
    overflow-y: auto;
  }

  .composer {
    border-radius: 18px;
    margin: 0;
  }

  .toast {
    bottom: 32px;
    left: calc(68px + 360px + (100vw - 68px - 360px) / 2);
  }
}
