:root {
  --brick-base: #ffb4b2;
  --brick-bright: #ffd5c5;
  --brick-shadow: #ff8b90;
  --brick-blue: #5a9fdf;
  --brick-ice: #9ee1ff;
  --brick-petal: #f5b8d8;
  --on-brick: #321d22;
  color-scheme: dark;
  --ground: #19191c;
  --panel: #232327;
  --rail: #111113;
  --side: #1c1c20;
  --raised: #302d30;
  --line: #ffffff10;
  --ink: #f5f2f0;
  --soft: #c0babc;
  --muted: #a9a4a8;
  --accent: var(--brick-base);
  --primary: var(--brick-base);
  --green: var(--brick-ice);
  --danger: var(--brick-shadow);
  --ease: cubic-bezier(0.23, 1, 0.32, 1);
  font-family: 'Segoe UI Variable', 'Microsoft YaHei UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  font-size: 14px;
  color: var(--ink);
  background: var(--ground);
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
textarea,
select {
  -webkit-tap-highlight-color: transparent;
}
button,
a {
  touch-action: manipulation;
}
button {
  color: inherit;
  background: none;
  border: 0;
  border-radius: 7px;
  cursor: pointer;
  padding: 0;
}
a {
  color: var(--accent);
}
button:disabled {
  opacity: 0.55;
  cursor: wait;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--brick-ice);
  outline-offset: 3px;
}
button {
  transition:
    background-color 0.15s,
    color 0.15s,
    transform 0.12s var(--ease);
}
button:active:not(:disabled) {
  transform: scale(0.975);
}
::selection {
  background: #6c424a;
  color: #fff;
}
* {
  scrollbar-width: thin;
  scrollbar-color: #51494d transparent;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1,
h2,
h3 {
  font-weight: 680;
}
svg.icon {
  display: inline-block;
  flex: none;
  vertical-align: middle;
}
button .icon {
  pointer-events: none;
}
#app {
  display: flex;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  isolation: isolate;
}
.rail {
  width: 70px;
  background: var(--rail);
  flex: none;
  display: flex;
  align-items: center;
  flex-direction: column;
  padding: 18px 7px 12px;
  gap: 13px;
  z-index: 12;
}
.rail .brand {
  color: var(--brick-bright);
  height: 39px;
  display: grid;
  place-items: center;
  margin-bottom: 1px;
}
.brand svg {
  width: 34px;
  height: 34px;
}
.rail-divider {
  height: 1px;
  background: #39363a;
  width: 29px;
  margin: 1px 0 2px;
}
.server-logo,
.rail-round {
  position: relative;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
}
.server-logo {
  background: var(--brick-base);
  color: var(--on-brick);
  border-radius: 15px;
  box-shadow: inset 0 0 0 1px #ffd5c560;
}
.server-logo:before {
  content: '';
  position: absolute;
  left: -13px;
  border-radius: 0 6px 6px 0;
  background: var(--brick-base);
  width: 4px;
  height: 25px;
}
.rail-round {
  color: #c8bfc1;
  background: #282529;
  border-radius: 16px;
}
.rail-round:hover,
.iconbtn:hover {
  background: #393539;
  color: white;
}
.rail-space {
  flex: 1;
}
.rail-help {
  color: #a69da1;
}
.sidebar {
  display: flex;
  flex-direction: column;
  width: 224px;
  background: var(--side);
  border-right: 1px solid var(--line);
  flex: none;
  min-height: 0;
  z-index: 10;
}
.community {
  height: 76px;
  padding: 0 19px;
  display: flex;
  align-items: center;
  width: 100%;
  gap: 10px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
}
.community > span {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}
.community strong {
  font-size: 18px;
  letter-spacing: 0.01em;
}
.community small {
  font:
    650 9px/1.1 'Segoe UI',
    sans-serif;
  letter-spacing: 0.2em;
  color: #b5a8ad;
}
.community .icon {
  color: var(--muted);
}
.navscroll {
  padding: 20px 11px 14px;
  overflow: auto;
  flex: 1;
}
.navitem {
  width: 100%;
  min-height: 37px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  color: #c3bcbe;
  font-weight: 500;
  text-align: left;
  margin-bottom: 3px;
}
.navitem > span:nth-child(2) {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.navitem .icon {
  color: #a99fa4;
}
.navitem:hover,
.browse-link:hover,
.textrow:hover,
.result:hover,
.member:hover,
.community:hover {
  background: #ffffff08;
}
.navitem.active {
  background: #493237;
  color: var(--brick-bright);
}
.navitem.active .icon {
  color: var(--brick-base);
}
.navgroup {
  margin-top: 25px;
}
.navgroup-head {
  padding: 0 6px 5px 3px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
}
.navgroup-head > button:first-child {
  display: flex;
  align-items: center;
  gap: 5px;
  font-weight: 650;
  font-size: 12px;
  min-height: 26px;
}
.navgroup-head .closed {
  transform: rotate(-90deg);
}
.navgroup-head .adder {
  width: 24px;
  height: 24px;
}
.nav-peer {
  padding: 2px 10px 5px 44px;
  color: var(--muted);
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 7px;
}
.nav-peer .avatar {
  width: 18px;
  height: 18px;
}
.bottom-account {
  border-top: 1px solid var(--line);
  display: flex;
  padding: 14px 12px;
  min-height: 74px;
  gap: 5px;
  align-items: center;
}
.account {
  display: flex;
  gap: 9px;
  text-align: left;
  align-items: center;
  min-width: 0;
  flex: 1;
}
.account .avatar {
  width: 35px;
  height: 35px;
}
.identity-text {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}
.identity-text strong,
.member strong {
  font-size: 13px;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
}
.identity-text small,
.member small {
  font-size: 11px;
  color: var(--muted);
}
.dot {
  display: inline-block;
  background: var(--green);
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex: none;
}
.dot.down {
  background: #c39872;
}
.identity-text small .dot {
  margin-right: 5px;
  width: 6px;
  height: 6px;
}
.iconbtn {
  display: inline-grid;
  place-items: center;
  width: 33px;
  height: 33px;
  flex: none;
  color: #bdb5b8;
}
.main {
  min-width: 0;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.topbar {
  min-height: 66px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 30px;
  border-bottom: 1px solid var(--line);
  background: #1b1a1d;
  z-index: 2;
}
.top-location {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 650;
  min-width: 0;
}
.top-location span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.top-location > .icon {
  color: #b9b0b3;
}
.top-spacer {
  flex: 1;
}
.search-trigger {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #b1a9ac;
  background: #272429;
  border: 1px solid var(--line);
  height: 32px;
  padding: 0 9px;
  font-size: 12px;
}
.search-trigger kbd,
kbd {
  color: #b5acb1;
  background: #302d30;
  border: 1px solid #51494e;
  font:
    10px/1.4 'Segoe UI',
    sans-serif;
  border-radius: 4px;
  padding: 1px 4px;
}
.toolbar-sep {
  width: 1px;
  height: 19px;
  background: #ffffff16;
}
.mobile-menu {
  display: none;
}
.content {
  flex: 1;
  min-height: 0;
  overflow: auto;
  outline: 0;
  scroll-behavior: smooth;
  position: relative;
}
.home {
  max-width: 1560px;
  margin: auto;
  padding: 26px 32px 35px;
}
.hero {
  isolation: isolate;
  position: relative;
  overflow: hidden;
  border-radius: 15px;
  min-height: 235px;
  display: flex;
  align-items: center;
  background: var(--brick-base);
}
.hero:before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, #46242b22 0%, #49252b11 32%, #fff0 62%);
}
.hero-copy {
  padding: 30px 35px;
  position: relative;
  color: #fff;
  z-index: 1;
}
.hero h1 {
  font-size: clamp(35px, 3.15vw, 52px);
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -0.035em;
}
.hero p {
  font-size: 14px;
  line-height: 1.7;
  color: #e6dced;
  margin-top: 10px;
  max-width: 35em;
}
.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 22px;
}
.primary,
.secondary,
.danger-btn,
.white-btn {
  min-height: 38px;
  padding: 8px 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 650;
  border-radius: 8px;
  font-size: 13px;
}
.primary {
  background: var(--primary);
  color: var(--on-brick);
}
.primary:hover {
  background: var(--brick-bright);
}
.white-btn {
  background: #f6f2ff;
  color: #282135;
}
.white-btn:hover {
  background: white;
}
.secondary {
  background: #383336;
  color: var(--ink);
}
.danger-btn {
  background: #603541;
  color: #ffc1c7;
}
.hero-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  color: #efebf7;
}
.hero-status .dot {
  background: #d3c2ef;
}
.hero-status .live {
  background: #8ee5ba;
}
.hero-bug {
  position: absolute;
  right: 15px;
  bottom: 13px;
  color: #fffc;
  display: flex;
  align-items: center;
  gap: 5px;
}
.specks {
  pointer-events: none;
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.specks i {
  position: absolute;
  width: 3px;
  height: 3px;
  background: #fff9db;
  border-radius: 50%;
  animation: twinkle 5s ease-in-out infinite alternate;
}
.specks i:nth-child(1) {
  left: 58%;
  top: 20%;
}
.specks i:nth-child(2) {
  left: 34%;
  top: 70%;
  animation-delay: -1s;
}
.specks i:nth-child(3) {
  left: 91%;
  top: 28%;
  animation-delay: -2s;
}
.specks i:nth-child(4) {
  left: 48%;
  top: 39%;
  animation-delay: -3.4s;
}
@keyframes twinkle {
  0%,
  25% {
    opacity: 0.14;
    transform: scale(0.55);
  }
  75%,
  100% {
    opacity: 0.85;
    transform: scale(1.2);
  }
}
.section {
  margin-top: 27px;
}
.section-head {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 12px;
}
.section-head h2 {
  font-size: 20px;
  letter-spacing: -0.025em;
  line-height: 1.4;
}
.count {
  color: #c5b4ba;
  background: #362e32;
  padding: 2px 7px;
  font:
    600 11px/1.3 'Segoe UI',
    sans-serif;
  border-radius: 6px;
}
.head-action {
  margin-left: auto;
  color: #c0b4b9;
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 4px;
}
.head-action:hover {
  color: white;
}
.textlist {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}
.textrow {
  border-radius: 0;
  width: 100%;
  padding: 12px 17px;
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
  min-height: 57px;
}
.textrow + .textrow {
  border-top: 1px solid var(--line);
}
.hashtag-box {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  background: #362d31;
  color: #e8b6be;
  border-radius: 9px;
}
.textrow strong {
  font-size: 14px;
  flex: none;
}
.textrow .topic {
  font-size: 12px;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.textrow > .icon {
  margin-left: auto;
  color: #a69aa0;
}
.loading,
.failure {
  padding: 40px;
  color: var(--soft);
  line-height: 1.8;
}
.failure h2,
.failure p {
  margin-bottom: 14px;
}
