:root {
  --topbar-clone-highlight-border: rgb(214, 117, 84);
  --topbar-clone-highlight-gradient: linear-gradient(90deg, rgb(232, 145, 113), rgb(214, 117, 84));
  --topbar-clone-highlight-gradient-hover: linear-gradient(90deg, rgb(214, 117, 84), rgb(188, 96, 65));
}

html {
  scrollbar-gutter: stable both-edges;
  overflow-y: scroll;
}

body {
  min-height: 100vh;
}

body.is-topbar-menu-open {
  overflow: hidden;
}

.chat-mobile-control-stack {
  display: none !important;
}

.home-topbar-clone {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 30;
  backdrop-filter: blur(20px);
  background: rgba(255, 255, 255, 0.86);
  border-bottom: 1px solid rgba(24, 24, 27, 0.06);
  font-family: "Times New Roman", "Songti SC", "STSong", "SimSun", serif;
  color: rgb(21, 21, 23);
  line-height: normal;
  opacity: 1 !important;
  transform: none !important;
  animation: none !important;
}

.home-topbar-clone,
.home-topbar-clone *,
.home-topbar-clone *::before,
.home-topbar-clone *::after {
  box-sizing: border-box;
  font-family: "Times New Roman", "Songti SC", "STSong", "SimSun", serif;
}

.home-topbar-clone .topbar-inner {
  width: min(1280px, calc(100% - 72px));
  min-height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.home-topbar-clone .topbar-mobile-tools {
  display: none !important;
  flex: 0 0 auto;
}

@media (min-width: 821px) {
  .home-topbar-clone .topbar-mobile-tools,
  .home-topbar-clone .topbar-menu-trigger {
    display: none !important;
  }
}

.home-topbar-clone .topbar-menu-trigger,
.chat-mobile-top-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 12px;
  border: 1px solid rgba(24, 24, 27, 0.08);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.92);
  color: rgba(24, 24, 27, 0.74);
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.08);
  transition: transform 0.18s ease, color 0.18s ease, background-color 0.18s ease,
    border-color 0.18s ease, box-shadow 0.18s ease;
}

.home-topbar-clone .topbar-menu-trigger svg {
  display: block;
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  opacity: 1;
  color: currentColor;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.home-topbar-clone .topbar-menu-trigger:hover,
.chat-mobile-top-btn:hover {
  transform: translateY(-1px);
  color: #171717;
  background: #ffffff;
  border-color: rgba(24, 24, 27, 0.14);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.1);
}

.home-topbar-clone .topbar-menu-trigger svg,
.chat-mobile-top-btn svg,
.chat-mobile-top-btn iconify-icon {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
}

.home-topbar-clone .topbar-menu-trigger span,
.chat-mobile-top-btn span {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1;
  white-space: nowrap;
}

.home-topbar-clone .topbar-mobile-backdrop {
  position: fixed;
  top: calc(env(safe-area-inset-top, 0px) + 62px);
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 34;
  background: transparent;
  backdrop-filter: none;
}

.home-topbar-clone .topbar-mobile-backdrop[hidden],
.home-topbar-clone .topbar-mobile-menu[hidden] {
  display: none !important;
}

.home-topbar-clone .topbar-mobile-menu {
  position: fixed;
  top: calc(env(safe-area-inset-top, 0px) + 72px);
  left: 16px;
  right: auto;
  z-index: 35;
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: max-content;
  max-width: calc(100vw - 32px);
  padding: 10px;
  border: 1px solid rgba(24, 24, 27, 0.08);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 20px 44px rgba(15, 23, 42, 0.16);
}

.home-topbar-clone .topbar-mobile-menu-link {
  display: flex;
  align-items: center;
  min-height: 38px;
  padding: 0 12px;
  border-radius: 10px;
  color: rgba(24, 24, 27, 0.9);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -0.01em;
  white-space: nowrap;
  transition: background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

.home-topbar-clone .topbar-mobile-menu-link:hover {
  background: rgba(24, 24, 27, 0.06);
  color: #171717;
}

.home-topbar-clone .topbar-mobile-menu-link.is-active {
  background: linear-gradient(135deg, rgba(232, 145, 113, 0.96), rgba(214, 117, 84, 0.92));
  color: #ffffff;
  box-shadow: 0 10px 22px rgba(214, 117, 84, 0.24);
}

.home-topbar-clone .brand {
  min-width: 0;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: transform 0.22s ease, opacity 0.22s ease;
}

.home-topbar-clone .brand:hover {
  transform: translateY(-1px);
}

.home-topbar-clone .brand img {
  width: 22px;
  height: 22px;
  object-fit: contain;
}

.home-topbar-clone .brand-text {
  color: #66666d;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.home-topbar-clone .topbar-nav {
  min-width: 0;
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 42px;
}

.home-topbar-clone .topbar-nav-link {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 13px;
  border-radius: 10px;
  color: rgba(24, 24, 27, 0.88);
  font-size: 14px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.02em;
  white-space: nowrap;
  transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.home-topbar-clone .topbar-nav-link:hover {
  color: #171717;
  transform: translateY(-1px);
}

.home-topbar-clone .topbar-nav-link.is-active {
  background: linear-gradient(135deg, rgba(232, 145, 113, 0.96), rgba(214, 117, 84, 0.92));
  color: #ffffff;
  font-weight: 800;
  box-shadow: 0 10px 22px rgba(214, 117, 84, 0.24);
}

.home-topbar-clone .topbar-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
  margin-left: auto;
}

.home-topbar-clone .theme-toggle {
  position: relative;
  display: inline-grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: center;
  gap: 2px;
  width: 84px;
  height: 28px;
  padding: 2px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(24, 24, 27, 0.08);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.home-topbar-clone .theme-toggle:hover {
  transform: translateY(-1px);
  border-color: rgba(24, 24, 27, 0.12);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

.home-topbar-clone .theme-indicator {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: #ffffff;
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.12);
  transition: transform 0.22s ease;
}

.home-topbar-clone .theme-btn {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  padding: 0;
  border: 0;
  background: transparent;
  color: rgba(38, 38, 43, 0.68);
  cursor: pointer;
}

.home-topbar-clone .theme-btn svg {
  width: 12px;
  height: 12px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

html[data-theme="system"] .home-topbar-clone .theme-indicator {
  transform: translateX(27px);
}

html[data-theme="dark"] .home-topbar-clone .theme-indicator {
  transform: translateX(54px);
}

.home-topbar-clone .signin-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  appearance: none;
  cursor: pointer;
  color: #ffffff;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 10px 12px;
  border: 1px solid var(--topbar-clone-highlight-border);
  border-radius: 8px;
  background: var(--topbar-clone-highlight-gradient);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
  transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.home-topbar-clone .signin-link:hover {
  color: #ffffff;
  background: var(--topbar-clone-highlight-gradient-hover);
  border-color: var(--topbar-clone-highlight-border);
  box-shadow: 0 8px 18px rgba(218, 119, 86, 0.25);
}

body.theme-dark .home-topbar-clone {
  background: rgba(0, 0, 0, 0.9);
  border-bottom-color: rgba(255, 255, 255, 0.16);
}

body.theme-dark > main {
  background: #000000 !important;
  color: #ffffff;
}

body.theme-dark .home-topbar-clone,
body.theme-dark .home-topbar-clone * {
  color: #ffffff !important;
}

body.theme-dark .home-topbar-clone .brand-text {
  color: #ffffff;
}

body.theme-dark .home-topbar-clone .topbar-nav-link {
  color: rgba(255, 255, 255, 0.86);
}

body.theme-dark .home-topbar-clone .topbar-nav-link:hover {
  color: #f5f5f7;
}

body.theme-dark .home-topbar-clone .topbar-nav-link.is-active {
  color: #ffffff;
}

body.theme-dark .home-topbar-clone .theme-toggle {
  background: rgba(10, 10, 10, 0.92);
  border-color: rgba(255, 255, 255, 0.2);
}

body.theme-dark .home-topbar-clone .theme-indicator {
  background: #ffffff;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.32);
}

body.theme-dark .home-topbar-clone .theme-btn {
  color: #ffffff;
}

body.theme-dark .home-topbar-clone .signin-link {
  border-color: #ffffff;
  background: #000000;
  color: #ffffff;
  box-shadow: none;
}

body.theme-dark .home-topbar-clone .signin-link:hover {
  border-color: #ffffff;
  background: #111111;
  color: #ffffff;
  box-shadow: none;
}

body.theme-dark .home-topbar-clone .topbar-menu-trigger,
body.theme-dark .chat-mobile-top-btn {
  color: rgba(255, 255, 255, 0.78);
  background: rgba(20, 20, 22, 0.9);
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
}

body.theme-dark .home-topbar-clone .topbar-menu-trigger:hover,
body.theme-dark .chat-mobile-top-btn:hover {
  color: #ffffff;
  background: rgba(28, 28, 32, 0.96);
  border-color: rgba(255, 255, 255, 0.16);
}

body.theme-dark .home-topbar-clone .topbar-mobile-backdrop {
  background: transparent;
}

body.theme-dark .home-topbar-clone .topbar-mobile-menu {
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(0, 0, 0, 0.96);
  box-shadow: 0 24px 54px rgba(0, 0, 0, 0.38);
}

body.theme-dark .home-topbar-clone .topbar-mobile-menu-link {
  color: rgba(255, 255, 255, 0.78);
}

body.theme-dark .home-topbar-clone .topbar-mobile-menu-link:hover,
body.theme-dark .home-topbar-clone .topbar-mobile-menu-link.is-active {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

body > main,
.page-shell > main,
.clone-shell > main {
  padding-top: 72px;
}

.chat-home-topbar-shell .topbar.home-topbar-clone {
  position: relative;
  top: 0;
  right: 0;
  left: 0;
}

.chat-home-topbar-shell .topbar.home-topbar-clone .topbar-inner {
  width: min(1280px, calc(100% - 72px));
  min-height: 72px;
  gap: 28px;
}

.chat-home-topbar-shell .topbar.home-topbar-clone .topbar-nav {
  gap: 42px;
}

.chat-home-topbar-shell .topbar.home-topbar-clone .topbar-nav-link {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
  line-height: 1;
}

.chat-home-topbar-shell .topbar.home-topbar-clone .topbar-actions {
  gap: 12px;
}

.chat-home-topbar-shell .topbar.home-topbar-clone .signin-link {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 10px 12px;
}

.chat-mobile-control-stack {
  position: absolute;
  top: calc(var(--chat-safe-top, 0px) + 12px);
  left: 12px;
  z-index: 34;
  display: none;
  flex-direction: column;
  gap: 8px;
  pointer-events: auto;
}

@media (max-width: 820px) {
  .home-topbar-clone .topbar-inner {
    width: min(1280px, calc(100% - 32px));
    min-height: 64px;
    gap: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  .chat-home-topbar-shell .topbar.home-topbar-clone .topbar-inner {
    width: min(1280px, calc(100% - 32px));
    min-height: 64px;
    gap: 10px;
  }

  .home-topbar-clone .topbar-mobile-tools {
    display: none !important;
  }

  .home-topbar-clone .topbar-mobile-menu,
  .home-topbar-clone .topbar-mobile-backdrop,
  .chat-home-topbar-shell .home-topbar-clone .topbar-mobile-menu,
  .chat-home-topbar-shell .home-topbar-clone .topbar-mobile-backdrop,
  .chat-topbar .home-topbar-clone .topbar-mobile-menu,
  .chat-topbar .home-topbar-clone .topbar-mobile-backdrop {
    display: none !important;
  }

  .home-topbar-clone .topbar-actions {
    order: 3;
    justify-self: auto;
    margin-left: auto;
    flex: 0 0 auto;
    gap: 8px;
  }

  .home-topbar-clone .brand {
    order: 1;
    justify-self: auto;
  }

  .home-topbar-clone .topbar-nav,
  .chat-home-topbar-shell .topbar.home-topbar-clone .topbar-nav {
    order: 2;
    display: none !important;
  }

  .home-topbar-clone .brand img {
    width: 20px;
    height: 20px;
  }

  .home-topbar-clone .brand-text {
    font-size: 11px;
    letter-spacing: 0.04em;
  }

  .home-topbar-clone .theme-toggle {
    display: inline-grid !important;
    width: 72px;
    height: 26px;
    flex: 0 0 auto;
  }

  .home-topbar-clone .theme-indicator {
    width: 22px;
    height: 22px;
  }

  html[data-theme="system"] .home-topbar-clone .theme-indicator {
    transform: translateX(23px);
  }

  html[data-theme="dark"] .home-topbar-clone .theme-indicator {
    transform: translateX(46px);
  }

  .home-topbar-clone .theme-btn {
    width: 22px;
    height: 22px;
  }

  .home-topbar-clone .theme-btn svg {
    width: 11px;
    height: 11px;
  }

  body > main,
  .page-shell > main,
  .clone-shell > main {
    padding-top: 64px;
  }
}

@media (max-width: 620px) {
  .home-topbar-clone .topbar-inner {
    width: calc(100% - 24px);
    min-height: 58px;
  }

  .chat-home-topbar-shell .topbar.home-topbar-clone .topbar-inner {
    width: calc(100% - 24px);
    min-height: 58px;
  }

  .home-topbar-clone .topbar-mobile-tools {
    display: none !important;
  }

  .home-topbar-clone .topbar-inner {
    display: flex;
    align-items: center;
  }

  .home-topbar-clone .topbar-actions {
    order: 3;
    justify-self: auto;
    margin-left: auto;
  }

  .home-topbar-clone .brand {
    order: 1;
    justify-self: auto;
    gap: 6px;
    max-width: 86px;
  }

  .home-topbar-clone .topbar-actions {
    gap: 7px;
  }

  .chat-home-topbar-shell .topbar.home-topbar-clone .topbar-actions {
    gap: 7px;
  }

  .home-topbar-clone .signin-link {
    min-height: 30px;
    padding: 7px 10px;
    font-size: 11px;
    white-space: nowrap;
  }

  .home-topbar-clone .topbar-menu-trigger,
  .chat-mobile-top-btn {
    min-height: 34px;
    padding: 0 10px;
    border-radius: 10px;
  }

  .chat-mobile-control-stack {
    top: calc(var(--chat-safe-top, 0px) + 8px);
    left: 8px;
    gap: 6px;
  }

  .home-topbar-clone .topbar-menu-trigger span,
  .chat-mobile-top-btn span {
    font-size: 11px;
  }

  .home-topbar-clone .topbar-mobile-menu {
    top: calc(env(safe-area-inset-top, 0px) + 58px);
    left: 12px;
    max-width: calc(100vw - 24px);
    padding: 8px;
  }

  .home-topbar-clone .topbar-mobile-menu-link {
    min-height: 36px;
    padding: 0 10px;
    font-size: 14px;
  }

  .chat-home-topbar-shell .topbar.home-topbar-clone .signin-link {
    min-height: 26px;
    padding: 7px 9px;
    font-size: 11px;
    white-space: nowrap;
  }

  .home-topbar-clone .theme-toggle {
    display: inline-grid !important;
    width: 72px;
    height: 26px;
  }

  .home-topbar-clone .theme-indicator {
    width: 22px;
    height: 22px;
  }

  .home-topbar-clone .theme-btn {
    width: 22px;
    height: 22px;
  }

  .home-topbar-clone .theme-btn svg {
    width: 11px;
    height: 11px;
  }

  html[data-theme="system"] .home-topbar-clone .theme-indicator {
    transform: translateX(23px);
  }

  html[data-theme="dark"] .home-topbar-clone .theme-indicator {
    transform: translateX(46px);
  }

  .home-topbar-clone .brand-text {
    font-size: 10px;
    letter-spacing: 0.03em;
  }

  .home-topbar-clone .topbar-nav,
  .chat-home-topbar-shell .topbar.home-topbar-clone .topbar-nav {
    display: none !important;
  }

  body > main,
  .page-shell > main,
  .clone-shell > main {
    padding-top: 58px;
  }
}

@media (max-width: 820px) {
  .home-topbar-clone .topbar-inner,
  .chat-home-topbar-shell .home-topbar-clone .topbar-inner,
  .chat-topbar .home-topbar-clone .topbar-inner {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
  }

  .home-topbar-clone .topbar-mobile-tools,
  .chat-home-topbar-shell .home-topbar-clone .topbar-mobile-tools,
  .chat-topbar .home-topbar-clone .topbar-mobile-tools {
    display: none !important;
  }

  .home-topbar-clone .topbar-mobile-menu,
  .home-topbar-clone .topbar-mobile-backdrop,
  .chat-home-topbar-shell .home-topbar-clone .topbar-mobile-menu,
  .chat-home-topbar-shell .home-topbar-clone .topbar-mobile-backdrop,
  .chat-topbar .home-topbar-clone .topbar-mobile-menu,
  .chat-topbar .home-topbar-clone .topbar-mobile-backdrop {
    display: none !important;
  }

  .home-topbar-clone .brand,
  .chat-home-topbar-shell .home-topbar-clone .brand,
  .chat-topbar .home-topbar-clone .brand {
    display: inline-flex !important;
    width: auto !important;
    height: auto !important;
    max-width: 112px !important;
    flex: 0 0 auto !important;
    order: 1 !important;
  }

  .home-topbar-clone .topbar-nav,
  .chat-home-topbar-shell .home-topbar-clone .topbar-nav,
  .chat-topbar .home-topbar-clone .topbar-nav {
    display: none !important;
  }

  .home-topbar-clone .topbar-actions,
  .chat-home-topbar-shell .home-topbar-clone .topbar-actions,
  .chat-topbar .home-topbar-clone .topbar-actions {
    display: flex !important;
    align-items: center !important;
    width: auto !important;
    height: auto !important;
    flex: 0 0 auto !important;
    order: 3 !important;
    margin-left: auto !important;
  }

  .home-topbar-clone .theme-toggle,
  .chat-home-topbar-shell .home-topbar-clone .theme-toggle,
  .chat-topbar .home-topbar-clone .theme-toggle {
    display: inline-grid !important;
    width: 72px !important;
    height: 26px !important;
    flex: 0 0 auto !important;
  }
}
