:root {
  --bg: #edf1ed;
  --surface: #ffffff;
  --surface-soft: #f0f3ef;
  --ink: #101713;
  --muted: #6d756f;
  --subtle: #9aa39d;
  --line: #dfe5dd;
  --line-strong: #cbd5cf;
  --accent: #257457;
  --accent-soft: #e7f2ec;
  --blue: #286d8c;
  --blue-soft: #e8f2f6;
  --warn: #9a6818;
  --warn-soft: #f6ecdc;
  --danger: #b9504b;
  --danger-soft: #f6e6e4;
  --shadow: 0 18px 50px rgba(16, 23, 19, 0.08);
  --game-ink: #f6fbf7;
  --game-muted: #aeb9b2;
  --game-panel: #151b17;
  --game-panel-2: #202721;
  --game-line: rgba(255, 255, 255, 0.1);
}

[hidden] {
  display: none !important;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
}

body {
  margin: 0;
  min-height: 100%;
  color: var(--ink);
  background: #e9ede9;
  font-family:
    "Microsoft YaHei",
    "PingFang SC",
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
}

button,
input,
select {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.shell,
.admin-shell {
  width: min(1220px, calc(100% - 40px));
  margin: 0 auto;
  padding: 18px 0 48px;
}

.hero {
  position: relative;
  overflow: hidden;
  min-height: 252px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(255, 255, 255, 0.82)),
    #fff;
  box-shadow: var(--shadow);
}

.hero__bg,
.hero__shade {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero__bg {
  right: 0;
  left: auto;
  width: min(42%, 460px);
  background-image: url("./hero-voxel.png");
  background-position: center;
  background-size: cover;
  opacity: 0.16;
}

.hero__shade {
  background: linear-gradient(90deg, #fff 0 56%, rgba(255, 255, 255, 0.42));
}

.topbar,
.site-bar,
.showcase-banner,
.admin-header,
.status-panel__head,
.status-panel__tools,
.admin-panel__head,
.server-card__top,
.server-card__count,
.category-section__head,
.admin-server-card__top,
.admin-server-card__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.topbar {
  position: relative;
  z-index: 1;
  justify-content: flex-end;
  padding: 14px 16px 0;
}

.site-bar {
  justify-content: flex-end;
  min-height: 42px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(16, 23, 19, 0.1);
}

.showcase-banner {
  position: relative;
  overflow: hidden;
  min-height: 108px;
  margin-top: 16px;
  padding: 22px 26px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 6px;
  color: var(--game-ink);
  background:
    linear-gradient(90deg, rgba(43, 48, 45, 0.96) 0 42%, rgba(43, 48, 45, 0.78) 74%, rgba(43, 48, 45, 0.68)),
    url("./hero-voxel.png") center right / cover,
    #333936;
  box-shadow: 0 12px 28px rgba(16, 23, 19, 0.13);
}

.topbar__actions,
.admin-actions,
.inline-control {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.site-title-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.admin-link,
.refresh,
.status-pill,
.category-chip {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
}

.admin-link {
  justify-content: center;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid rgba(16, 23, 19, 0.1);
  color: var(--ink);
  background: rgba(255, 255, 255, 0.86);
  text-decoration: none;
}

.admin-link--solid {
  background: var(--surface);
}

.refresh {
  gap: 8px;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid rgba(16, 23, 19, 0.1);
  color: var(--muted);
  background: rgba(255, 255, 255, 0.86);
}

.refresh__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--warn);
}

.refresh__dot.is-ok {
  background: var(--accent);
}

.refresh__dot.is-error {
  background: var(--danger);
}

.hero__content {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 210px;
  align-items: end;
  gap: 26px;
  padding: 24px 28px 28px;
}

.eyebrow,
.server-card__kicker {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 6px;
  color: inherit;
  font-size: 34px;
  line-height: 1.08;
  letter-spacing: 0;
}

.subline {
  max-width: 620px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.7;
}

.summary {
  display: inline-grid;
  grid-template-columns: auto auto auto;
  align-items: baseline;
  gap: 8px;
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  color: var(--game-ink);
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
}

.summary__label {
  display: inline;
  margin-bottom: 0;
  color: var(--game-muted);
  font-size: 12px;
  font-weight: 800;
}

.summary strong {
  display: inline-block;
  font-size: 22px;
  line-height: 1;
}

.summary span:last-child {
  color: var(--game-muted);
  font-size: 14px;
  font-weight: 800;
}

.status-panel {
  margin-top: 30px;
}

.admin-panel {
  margin-top: 18px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 10px 28px rgba(16, 23, 19, 0.05);
}

.status-panel__head,
.admin-panel__head {
  margin-bottom: 18px;
}

.status-panel h1,
.status-panel h2,
.showcase-banner h1,
.admin-panel h2 {
  margin-bottom: 4px;
}

.status-panel h1,
.showcase-banner h1 {
  font-size: 32px;
}

.status-panel p,
.admin-panel p,
.admin-server-card__bottom span {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 13px;
}

.icon-button {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: var(--surface);
  cursor: pointer;
}

.icon-button:hover,
.admin-link:hover,
.secondary-button:hover {
  border-color: var(--line-strong);
  box-shadow: 0 8px 18px rgba(16, 23, 19, 0.08);
}

.icon-button svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.2;
}

.category-stack,
.category-section,
.admin-server-list,
.login-form,
.category-manager {
  display: grid;
  gap: 22px;
}

.category-section__head {
  max-width: none;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(16, 23, 19, 0.12);
}

.category-section__head h3 {
  margin-bottom: 0;
  font-size: 16px;
}

.category-section__head span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.server-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.server-card {
  display: grid;
  grid-template-columns: 116px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  width: 100%;
  min-height: 128px;
  padding: 10px;
  border: 1px solid #3f4441;
  border-radius: 3px;
  color: #f5f6f3;
  background: #606360;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.server-card__cover {
  position: relative;
  display: grid;
  place-items: center;
  width: 116px;
  aspect-ratio: 1;
  overflow: hidden;
  border: 1px solid #262a28;
  border-radius: 2px;
  color: var(--game-muted);
  background:
    linear-gradient(135deg, rgba(37, 116, 87, 0.12), rgba(40, 109, 140, 0.1)),
    url("./hero-voxel.png") center / cover;
  font-size: 20px;
  font-weight: 900;
}

.server-card__cover img {
  position: absolute;
  inset: 0;
  display: none;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.server-card__cover.has-image img {
  display: block;
}

.server-card__body {
  display: grid;
  min-width: 0;
  gap: 8px;
}

.server-card__label {
  display: block;
  margin-bottom: 5px;
  color: var(--game-muted);
  font-size: 12px;
  font-weight: 900;
}

.server-card__id {
  margin-bottom: 0;
  color: inherit;
  font-size: 16px;
  font-weight: 900;
  line-height: 1;
}

.server-card__name-row {
  display: grid;
  gap: 3px;
}

.server-card h3 {
  margin-bottom: 0;
  font-size: 26px;
  line-height: 1.15;
  letter-spacing: 0;
}

.server-card__network {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 2px 0 0;
  color: #dbe3de;
  font-size: 15px;
  font-weight: 700;
}

.server-card__network::before {
  content: "";
  width: 12px;
  height: 12px;
  background:
    linear-gradient(90deg, transparent 0 2px, #7af47a 2px 4px, transparent 4px 6px, #7af47a 6px 8px, transparent 8px 10px, #7af47a 10px 12px);
}

.status-pill {
  justify-content: center;
  min-width: 58px;
  padding: 5px 10px;
  border-radius: 3px;
  color: #f5fff8;
  background: #258052;
  white-space: nowrap;
}

.status-pill.is-full,
.status-pill.is-maintenance {
  color: #ffd58a;
  background: rgba(154, 104, 24, 0.24);
}

.status-pill.is-offline {
  color: #ff9b9b;
  background: rgba(185, 80, 75, 0.24);
}

.status-pill.is-closed {
  color: #c3cbc6;
  background: rgba(255, 255, 255, 0.1);
}

.meter {
  height: 25px;
  margin: 0;
  overflow: hidden;
  border-radius: 2px;
  border: 1px solid #262a28;
  background: #050505;
}

.meter span {
  display: block;
  width: 0%;
  height: 100%;
  border-radius: 0;
  background: linear-gradient(90deg, rgba(67, 186, 106, 0.86), rgba(85, 154, 226, 0.86));
  transition: width 320ms ease;
}

.meter-wrap {
  position: relative;
}

.usage-text {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 14px;
  line-height: 1;
  pointer-events: none;
}

.server-card__stats {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
}

.server-card__stats span {
  color: #dfe4e0;
  font-size: 14px;
  font-weight: 800;
}

.server-card__owner {
  min-height: 28px;
  padding: 0 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  color: #dfe4e0;
  background: rgba(255, 255, 255, 0.06);
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.server-card__owner strong {
  margin-left: 5px;
  color: #ffffff;
  font-size: 14px;
}

.server-card__owner:hover {
  border-color: rgba(116, 185, 255, 0.5);
  color: #ffffff;
}

.server-card__stats strong {
  margin-right: 6px;
  color: #ffffff;
  font-size: 21px;
}

.server-card__stats span:first-child strong {
  color: #74b9ff;
}

.server-card__stats span:nth-child(2) strong {
  color: #ff6f72;
}

.server-card__stats .server-card__owner strong {
  margin: 0 0 0 5px;
  color: #ffffff;
  font-size: 14px;
}

.server-card__number {
  margin-left: auto;
}

.server-card__note {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.admin-header {
  margin-bottom: 18px;
}

.admin-header h1 {
  margin-bottom: 0;
  color: var(--ink);
  font-size: clamp(32px, 5vw, 50px);
  line-height: 1.05;
}

.admin-eyebrow {
  color: var(--accent);
}

.settings-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.settings-grid--server {
  grid-template-columns: 1.2fr 1fr 120px;
  margin-bottom: 0;
}

label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

input,
select {
  width: 100%;
  min-height: 38px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: var(--surface);
}

input:focus,
select:focus {
  outline: 2px solid rgba(37, 116, 87, 0.18);
  border-color: rgba(37, 116, 87, 0.55);
}

.primary-button,
.secondary-button,
.danger-button {
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 800;
  cursor: pointer;
}

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

.secondary-button {
  color: var(--ink);
  border-color: var(--line);
  background: var(--surface);
}

.danger-button {
  color: var(--danger);
  border-color: rgba(185, 80, 75, 0.22);
  background: var(--danger-soft);
}

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

.category-chip {
  gap: 8px;
  min-height: 32px;
  padding: 0 8px 0 12px;
  border: 1px solid var(--line);
  background: var(--surface);
}

.category-chip button {
  border: 0;
  color: var(--danger);
  background: transparent;
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
}

.admin-server-card {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.admin-server-card__top label {
  flex: 1 1 260px;
}

.status-switch {
  display: inline-grid;
  grid-template-columns: repeat(3, 1fr);
  min-width: 226px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
}

.status-switch button {
  min-height: 38px;
  border: 0;
  border-right: 1px solid var(--line);
  color: var(--muted);
  background: transparent;
  cursor: pointer;
  font-weight: 800;
}

.status-switch button:last-child {
  border-right: 0;
}

.status-switch button.is-active {
  color: #fff;
  background: var(--accent);
}

.form-message {
  min-height: 20px;
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.form-message.is-error {
  color: var(--danger);
}

.form-message.is-ok {
  color: var(--accent);
}

.server-table-wrap,
.server-table {
  display: none;
}

@media (max-width: 820px) {
  .shell,
  .admin-shell {
    width: min(100% - 24px, 1240px);
    padding-top: 12px;
  }

  .topbar,
  .showcase-banner,
  .admin-header,
  .status-panel__head,
  .category-section__head,
  .admin-panel__head,
  .admin-server-card__top,
  .admin-server-card__bottom {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero__content,
  .settings-grid,
  .settings-grid--server,
  .server-grid {
    grid-template-columns: 1fr;
  }

  .hero__content {
    padding: 26px 18px 18px;
  }

  .hero__bg {
    width: 100%;
    opacity: 0.08;
  }

  .summary {
    min-height: 38px;
  }

  .server-card {
    grid-template-columns: 100px minmax(0, 1fr);
    gap: 14px;
    min-height: 136px;
    padding: 14px;
  }

  .server-card__cover {
    width: 100px;
    font-size: 18px;
  }

  .server-card__id {
    font-size: 18px;
  }

  .server-card h3 {
    font-size: 20px;
  }

  .topbar__actions {
    width: 100%;
    justify-content: space-between;
  }

  .status-switch {
    width: 100%;
    min-width: 0;
  }
}

@media (max-width: 560px) {
  .site-bar {
    justify-content: flex-start;
  }

  .topbar__actions,
  .status-panel__tools {
    justify-content: flex-start;
  }

  .showcase-banner {
    min-height: 150px;
    padding: 20px;
  }

  .server-card {
    grid-template-columns: 96px minmax(0, 1fr);
    gap: 12px;
    min-height: 124px;
    padding: 12px;
  }

  .server-card__cover {
    width: 96px;
    height: 96px;
    aspect-ratio: 1;
  }

  .server-card__top {
    align-items: center;
    gap: 10px;
  }

}

/* Website-style status page override */
body {
  background:
    linear-gradient(180deg, rgba(39, 107, 143, 0.09), transparent 300px),
    #f6f7f4;
  color: #111815;
}

.shell {
  width: min(1120px, calc(100% - 40px));
  padding: 20px 0 56px;
}

.site-bar {
  min-height: 44px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(17, 24, 21, 0.08);
}

.admin-link,
.refresh {
  min-height: 36px;
  border: 1px solid rgba(17, 24, 21, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 8px 24px rgba(17, 24, 21, 0.05);
}

.showcase-banner {
  min-height: 184px;
  margin-top: 18px;
  padding: 28px;
  border: 1px solid rgba(17, 24, 21, 0.1);
  border-radius: 10px;
  color: #fff;
  background:
    linear-gradient(90deg, rgba(14, 25, 20, 0.88) 0 46%, rgba(14, 25, 20, 0.56) 78%, rgba(14, 25, 20, 0.24)),
    url("./hero-voxel.png") center right / cover,
    #17211b;
  box-shadow: 0 22px 60px rgba(17, 24, 21, 0.14);
}

.showcase-banner .eyebrow {
  color: rgba(255, 255, 255, 0.72);
}

.showcase-banner h1 {
  font-size: 40px;
}

.showcase-banner #lastUpdated {
  color: rgba(255, 255, 255, 0.78);
}

.summary {
  min-height: 44px;
  border-color: rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.14);
}

.summary__label,
.summary span:last-child {
  color: rgba(255, 255, 255, 0.7);
}

.icon-button {
  border-radius: 8px;
}

.status-panel {
  margin-top: 32px;
}

.status-panel__head {
  margin-bottom: 18px;
}

.status-panel h2 {
  font-size: 24px;
  letter-spacing: 0;
}

.category-section__head {
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(17, 24, 21, 0.1);
}

.server-grid {
  gap: 14px;
}

.server-card {
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 18px;
  min-height: 138px;
  padding: 14px;
  border: 1px solid rgba(17, 24, 21, 0.1);
  border-radius: 10px;
  color: #111815;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 14px 36px rgba(17, 24, 21, 0.06);
}

.server-card__cover {
  width: 112px;
  border: 1px solid rgba(17, 24, 21, 0.1);
  border-radius: 8px;
  background: #eef2ef;
}

.server-card__body {
  gap: 12px;
}

.server-card h3 {
  color: #111815;
  font-size: 26px;
}

.server-card__network {
  color: #66716b;
  font-size: 13px;
}

.server-card__network::before {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #2d9c64;
}

.status-pill {
  min-width: 54px;
  padding: 6px 11px;
  border-radius: 999px;
  color: #1b7d4b;
  background: #e7f5ed;
}

.status-pill.is-full,
.status-pill.is-maintenance {
  color: #9a6818;
  background: #f6ecdc;
}

.status-pill.is-offline {
  color: #b9504b;
  background: #f6e6e4;
}

.status-pill.is-closed {
  color: #5f6862;
  background: #edf0ed;
}

.meter {
  height: 8px;
  border: 0;
  border-radius: 999px;
  background: #e8eee9;
}

.meter span {
  border-radius: inherit;
  background: linear-gradient(90deg, #2d9c64, #3b82b6);
}

.usage-text {
  display: none;
}

.server-card__stats {
  gap: 24px;
}

.server-card__stats span,
.server-card__kicker {
  color: #66716b;
  font-size: 13px;
}

.server-card__stats strong {
  color: #111815;
  font-size: 20px;
}

.server-card__stats span:first-child strong {
  color: #111815;
}

.server-card__stats span:nth-child(2) strong {
  color: #cf4f53;
}

.server-card__number {
  margin-left: auto;
}

.server-card__number strong {
  color: #3f4b45;
  font-size: 14px;
}

.server-card__note {
  color: #66716b;
}

@media (max-width: 820px) {
  .shell {
    width: min(100% - 24px, 1120px);
  }

  .showcase-banner {
    min-height: 168px;
    padding: 22px;
  }

  .showcase-banner h1 {
    font-size: 34px;
  }

  .server-card {
    grid-template-columns: 96px minmax(0, 1fr);
    gap: 14px;
  }

  .server-card__cover {
    width: 96px;
  }
}

@media (max-width: 560px) {
  .showcase-banner {
    min-height: 160px;
  }

  .server-card {
    grid-template-columns: 84px minmax(0, 1fr);
    min-height: 114px;
    padding: 12px;
  }

  .server-card__cover {
    width: 84px;
    height: 84px;
  }

  .server-card h3 {
    font-size: 20px;
  }

  .server-card__stats {
    gap: 14px;
  }

.server-card__number {
  margin-left: 0;
  }
}

.site-nav {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px;
  border: 1px solid rgba(17, 24, 21, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.62);
}

.site-bar {
  justify-content: space-between;
}

.site-nav button {
  min-height: 32px;
  padding: 0 12px;
  border: 0;
  border-radius: 999px;
  color: #5d6962;
  background: transparent;
  cursor: pointer;
  font-size: 13px;
  font-weight: 800;
}

.site-nav button.is-active {
  color: #fff;
  background: #1f6f52;
  box-shadow: 0 8px 18px rgba(31, 111, 82, 0.22);
}

.page-panel {
  display: none;
}

.page-panel.is-active {
  display: block;
}

.content-page {
  margin-top: 24px;
}

.page-title {
  margin-bottom: 18px;
}

.page-title h1 {
  color: #111815;
  font-size: 36px;
}

.community-page-title,
.chat-page-title {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}

.community-page-title > p,
.chat-page-title > p {
  max-width: 520px;
  margin: 0;
  color: #66716b;
  line-height: 1.7;
  text-align: right;
}

.community-layout {
  display: grid;
  grid-template-columns: minmax(300px, 360px) minmax(0, 1fr);
  align-items: start;
  gap: 18px;
}

.community-publish-card,
.community-feed {
  border: 1px solid rgba(17, 24, 21, 0.1);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 18px 42px rgba(17, 24, 21, 0.07);
}

.community-publish-card {
  position: sticky;
  top: 18px;
  padding: 20px;
}

.community-publish-head,
.community-feed__head,
.community-author {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.community-publish-head span,
.community-feed__head span {
  display: block;
  margin-bottom: 5px;
  color: #728078;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.community-publish-head h2,
.community-feed__head h2 {
  margin: 0;
  color: #17201b;
  font-size: 20px;
}

.community-auth-badge {
  flex: 0 0 auto;
  padding: 6px 9px;
  border-radius: 999px;
  color: #986220;
  background: #f6ebd9;
  font-size: 11px;
  font-weight: 900;
}

.community-auth-badge.is-authenticated {
  color: #1d6c4f;
  background: #e5f3ec;
}

.community-identity {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  align-items: center;
  gap: 11px;
  margin: 18px 0 12px;
  padding: 12px;
  border: 1px solid #dce7e2;
  border-radius: 12px;
  background: #f7faf8;
}

.community-identity__avatar,
.community-author__avatar {
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 12px;
  color: #2c6a54;
  background: #e3efe9;
  font-weight: 900;
}

.community-identity__avatar {
  width: 46px;
  height: 46px;
}

.community-identity__avatar img,
.community-author__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.community-identity strong,
.community-identity small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.community-identity strong {
  color: #263a32;
  font-size: 14px;
}

.community-identity small {
  margin-top: 3px;
  color: #7c8781;
  font-size: 11px;
}

.community-login-button {
  width: 100%;
  min-height: 40px;
  margin-bottom: 14px;
  border: 1px solid #cfe1d9;
  border-radius: 9px;
  color: #22694f;
  background: #eef7f2;
  cursor: pointer;
  font-weight: 900;
}

.community-upload-form {
  display: grid;
  gap: 13px;
}

.community-upload-form textarea {
  min-height: 92px;
}

.community-upload-form input:disabled,
.community-upload-form textarea:disabled {
  color: #929b96;
  background: #f1f3f1;
  cursor: not-allowed;
}

.community-file-picker {
  position: relative;
  display: flex;
  align-items: center;
  gap: 11px;
  min-height: 72px;
  padding: 12px;
  border: 1px dashed #b9cec4;
  border-radius: 11px;
  color: #315f4f;
  background: #f5faf7;
  cursor: pointer;
}

.community-file-picker:hover {
  border-color: #6d9e8a;
  background: #eff7f3;
}

.community-file-picker.is-disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.community-file-picker input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.community-file-picker__icon {
  display: grid;
  place-items: center;
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  color: #fff;
  background: #2b795d;
  font-size: 24px;
  font-weight: 400;
}

.community-file-picker strong,
.community-file-picker small {
  display: block;
}

.community-file-picker strong {
  color: #27483c;
  font-size: 13px;
}

.community-file-picker small {
  margin-top: 4px;
  color: #7b8982;
  font-size: 10px;
  line-height: 1.5;
}

.community-image-preview {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  border-radius: 11px;
  background: #dfe7e2;
}

.community-image-preview img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.community-image-preview button {
  position: absolute;
  right: 9px;
  bottom: 9px;
  min-height: 32px;
  padding: 0 10px;
  border: 1px solid rgba(255, 255, 255, 0.36);
  border-radius: 8px;
  color: #fff;
  background: rgba(18, 27, 22, 0.72);
  backdrop-filter: blur(8px);
  cursor: pointer;
  font-size: 12px;
  font-weight: 900;
}

.community-upload-form > .primary-button {
  min-height: 44px;
}

.community-upload-form > .primary-button:disabled {
  color: #87918b;
  background: #e3e8e5;
  cursor: not-allowed;
}

.community-upload-form .form-message {
  margin: 0;
  line-height: 1.55;
}

.community-feed {
  min-width: 0;
  padding: 20px;
}

.community-feed__head {
  align-items: flex-end;
  margin-bottom: 16px;
}

.community-feed__head > strong {
  flex: 0 0 auto;
  color: #607068;
  font-size: 12px;
}

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

.community-post-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid #dde5e0;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(27, 51, 42, 0.05);
}

.community-post-card__image {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: #dfe6e2;
}

.community-post-card__image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform 220ms ease;
}

.community-post-card__image-error {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 16px;
  color: #748078;
  font-size: 12px;
  font-weight: 800;
  text-align: center;
}

.community-post-card:hover .community-post-card__image img {
  transform: scale(1.025);
}

.community-post-card__body {
  padding: 14px;
}

.community-post-card h3 {
  overflow: hidden;
  margin: 0 0 7px;
  color: #1b2822;
  font-size: 17px;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.community-post-card__content {
  display: -webkit-box;
  min-height: 42px;
  overflow: hidden;
  margin: 0 0 14px;
  color: #6a766f;
  font-size: 12px;
  line-height: 1.7;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.community-author {
  justify-content: flex-start;
}

.community-author__avatar {
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  font-size: 12px;
}

.community-author__text {
  min-width: 0;
}

.community-author__text strong,
.community-author__text small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.community-author__text strong {
  color: #315247;
  font-size: 12px;
}

.community-author__text small {
  margin-top: 3px;
  color: #929b96;
  font-size: 10px;
}

.community-empty-state {
  display: grid;
  grid-column: 1 / -1;
  place-items: center;
  align-content: center;
  min-height: 320px;
  padding: 30px;
  border: 1px dashed #ccd9d2;
  border-radius: 12px;
  color: #68776f;
  background: #f7f9f7;
  text-align: center;
}

.community-empty-state__icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 12px;
  border-radius: 14px;
  color: #2c7358;
  background: #e4f0ea;
  font-size: 26px;
}

.community-empty-state strong {
  color: #35483f;
}

.community-empty-state p {
  margin: 7px 0 0;
  font-size: 12px;
  line-height: 1.6;
}

.community-empty-state__button {
  min-height: 34px;
  margin-top: 14px;
  padding: 0 12px;
  border: 1px solid #c9d9d1;
  border-radius: 8px;
  color: #2a674f;
  background: #fff;
  cursor: pointer;
  font-weight: 900;
}

.chat-room {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  height: min(680px, calc(100vh - 190px));
  min-height: 540px;
  overflow: hidden;
  border: 1px solid rgba(17, 24, 21, 0.1);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 18px 46px rgba(17, 24, 21, 0.08);
}

.chat-room__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 56px;
  padding: 0 20px;
  border-bottom: 1px solid #e1e7e3;
  background: rgba(250, 252, 250, 0.94);
}

.chat-connection {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: #53645b;
  font-size: 13px;
}

.chat-connection__dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #a4ada8;
  box-shadow: 0 0 0 4px rgba(164, 173, 168, 0.13);
}

.chat-connection__dot.is-live {
  background: #24835f;
  box-shadow: 0 0 0 4px rgba(36, 131, 95, 0.14);
}

.chat-connection__dot.is-reconnecting {
  background: #c1842b;
  box-shadow: 0 0 0 4px rgba(193, 132, 43, 0.14);
}

#chatMessageCount {
  color: #7a857f;
  font-size: 12px;
  font-weight: 800;
}

.chat-message-list {
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 22px;
  background:
    radial-gradient(circle at 8% 10%, rgba(37, 116, 87, 0.055), transparent 28%),
    #f5f7f5;
  scrollbar-color: #becbc4 transparent;
  scrollbar-width: thin;
}

.chat-empty-state {
  display: grid;
  place-items: center;
  align-content: center;
  min-height: 100%;
  padding: 30px;
  color: #748078;
  text-align: center;
}

.chat-empty-state > span {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  margin-bottom: 12px;
  border-radius: 16px;
  color: #277355;
  background: #e3efe9;
  font-size: 21px;
  font-weight: 900;
  letter-spacing: 2px;
}

.chat-empty-state strong {
  color: #384b42;
}

.chat-empty-state p {
  margin: 7px 0 0;
  font-size: 12px;
  line-height: 1.6;
}

.chat-message {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  width: 100%;
  margin-bottom: 16px;
}

.chat-message:last-child {
  margin-bottom: 0;
}

.chat-message.is-mine {
  flex-direction: row-reverse;
}

.chat-message__avatar {
  display: grid;
  place-items: center;
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  overflow: hidden;
  border-radius: 11px;
  color: #2d6c55;
  background: #dfece6;
  font-size: 12px;
  font-weight: 900;
}

.chat-message__avatar img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.chat-message__main {
  display: grid;
  justify-items: start;
  max-width: min(74%, 680px);
}

.chat-message.is-mine .chat-message__main {
  justify-items: end;
}

.chat-message__meta {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 7px;
  margin: 0 0 5px 2px;
  color: #8a948e;
  font-size: 10px;
}

.chat-message.is-mine .chat-message__meta {
  justify-content: flex-end;
  margin-right: 2px;
}

.chat-message__meta strong {
  color: #496258;
  font-size: 12px;
}

.chat-message__bubble {
  max-width: 100%;
  margin: 0;
  padding: 10px 13px;
  border: 1px solid #dce4df;
  border-radius: 4px 13px 13px;
  color: #26342e;
  background: #fff;
  box-shadow: 0 6px 16px rgba(27, 51, 42, 0.05);
  font-size: 14px;
  line-height: 1.65;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

.chat-message.is-mine .chat-message__bubble {
  border-color: #247858;
  border-radius: 13px 4px 13px 13px;
  color: #fff;
  background: #247858;
  box-shadow: 0 8px 18px rgba(36, 120, 88, 0.17);
}

.chat-room__footer {
  padding: 14px 18px 15px;
  border-top: 1px solid #dfe6e2;
  background: #fff;
}

.chat-identity {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  margin-bottom: 11px;
}

.chat-identity__avatar {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  overflow: hidden;
  border-radius: 11px;
  color: #2b6e55;
  background: #e2eee8;
  font-size: 12px;
  font-weight: 900;
}

.chat-identity__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.chat-identity__text {
  min-width: 0;
}

.chat-identity__text strong,
.chat-identity__text small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chat-identity__text strong {
  color: #32463d;
  font-size: 13px;
}

.chat-identity__text small {
  margin-top: 3px;
  color: #87918b;
  font-size: 10px;
}

#chatLoginButton {
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid #cce0d6;
  border-radius: 8px;
  color: #206c4f;
  background: #edf7f2;
  cursor: pointer;
  font-size: 12px;
  font-weight: 900;
}

.chat-composer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 10px;
}

.chat-composer textarea {
  min-height: 62px;
  max-height: 130px;
  resize: vertical;
}

.chat-composer textarea:disabled {
  color: #909994;
  background: #f0f3f1;
  cursor: not-allowed;
}

.chat-composer__actions {
  display: grid;
  justify-items: end;
  gap: 8px;
}

.chat-composer__actions > span {
  color: #8b948f;
  font-size: 10px;
}

.chat-composer__actions .primary-button {
  min-width: 108px;
  min-height: 42px;
}

.chat-composer__actions .primary-button:disabled {
  color: #89928d;
  background: #e2e7e4;
  cursor: not-allowed;
}

#chatFormMessage {
  min-height: 18px;
  margin: 8px 0 0;
  line-height: 1.4;
}

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

.content-card,
.shop-item,
.profile-card,
.site-form,
.guide-list article {
  border: 1px solid rgba(17, 24, 21, 0.1);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 14px 36px rgba(17, 24, 21, 0.06);
}

.content-card,
.shop-item {
  min-height: 170px;
  padding: 18px;
}

.content-card--wide {
  grid-column: span 2;
  background:
    linear-gradient(135deg, rgba(31, 111, 82, 0.92), rgba(45, 130, 140, 0.82)),
    #1f6f52;
  color: #fff;
}

.content-card__tag,
.shop-item span {
  display: inline-flex;
  margin-bottom: 18px;
  color: #617069;
  font-size: 12px;
  font-weight: 900;
}

.content-card--wide .content-card__tag,
.content-card--wide p {
  color: rgba(255, 255, 255, 0.76);
}

.content-card h2,
.shop-item h2,
.guide-list h2,
.profile-card h2 {
  margin-bottom: 8px;
  font-size: 22px;
}

.content-card p,
.guide-list p,
.profile-card p {
  margin-bottom: 0;
  color: #66716b;
  line-height: 1.7;
}

.content-card--wide p {
  max-width: 420px;
}

.shop-item {
  display: grid;
  align-content: space-between;
  gap: 14px;
}

.shop-item strong {
  font-size: 26px;
}

.shop-item button {
  min-height: 38px;
  border: 0;
  border-radius: 8px;
  color: #fff;
  background: #1f6f52;
  cursor: pointer;
  font-weight: 900;
}

.shop-item button:disabled {
  color: #758079;
  background: #e5ebe6;
  cursor: default;
}

.guide-list {
  display: grid;
  gap: 12px;
}

.guide-list article {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 16px;
  padding: 18px;
}

.guide-list article > span {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  color: #1f6f52;
  background: #e7f3ed;
  font-weight: 900;
}

.site-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  padding: 18px;
}

.site-form__full {
  grid-column: 1 / -1;
}

textarea {
  width: 100%;
  resize: vertical;
  min-height: 120px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: var(--surface);
  font: inherit;
}

textarea:focus {
  outline: 2px solid rgba(37, 116, 87, 0.18);
  border-color: rgba(37, 116, 87, 0.55);
}

.lookup-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.lookup-row .secondary-button {
  white-space: nowrap;
}

.profile-layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 14px;
}

.profile-card {
  display: grid;
  place-items: center;
  align-content: center;
  min-height: 260px;
  padding: 20px;
  text-align: center;
}

.profile-avatar {
  display: grid;
  place-items: center;
  width: 84px;
  height: 84px;
  overflow: hidden;
  margin-bottom: 14px;
  border-radius: 22px;
  color: #497064;
  background: #e7f1ed;
  font-size: 13px;
  font-weight: 900;
}

.profile-avatar.has-image {
  background: #dfe9e5;
  box-shadow: 0 10px 24px rgba(26, 74, 58, 0.16);
}

.profile-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.profile-avatar span {
  padding: 8px;
  line-height: 1.2;
}

.profile-verified-badge {
  margin-top: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  color: #1d6c4f;
  background: #e5f3ec;
  font-size: 12px;
  font-weight: 800;
}

.profile-auth-stack {
  min-width: 0;
}

.profile-binding-panel {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: 0 12px 28px rgba(24, 54, 44, 0.06);
}

.binding-steps {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 16px;
}

.binding-steps span {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 9px 11px;
  border: 1px solid #dce8e3;
  border-radius: 10px;
  color: #38574d;
  background: #f7faf8;
  font-size: 13px;
  font-weight: 700;
}

.binding-steps strong {
  display: grid;
  place-items: center;
  flex: 0 0 24px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  color: #fff;
  background: #267c5e;
  font-size: 12px;
}

.binding-form,
.binding-code-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 10px;
}

.binding-form label,
.binding-code-form label {
  min-width: 0;
}

.binding-form .primary-button,
.binding-code-form .primary-button {
  min-height: 42px;
  white-space: nowrap;
}

.binding-instructions {
  display: grid;
  gap: 12px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.binding-player-row {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px;
}

.binding-player-row span,
.binding-player-row small,
.binding-bot-card span,
.binding-bot-card small {
  color: var(--muted);
}

.binding-player-row strong {
  color: var(--ink);
  font-size: 18px;
}

.binding-bot-card {
  display: grid;
  gap: 3px;
  padding: 12px 14px;
  border: 1px solid #cee3da;
  border-radius: 10px;
  background: #eff8f4;
}

.binding-bot-card strong {
  color: #185c43;
  font-size: 18px;
}

#bindingStatusText {
  margin: 0;
  color: #405c52;
  line-height: 1.65;
}

#profileForm input[readonly] {
  color: #365048;
  background: #f0f4f2;
  cursor: not-allowed;
}

.profile-form-actions {
  display: flex;
  grid-column: 1 / -1;
  gap: 10px;
}

.profile-form-actions button {
  flex: 1 1 160px;
  min-height: 42px;
}

#profileMessage {
  grid-column: 1 / -1;
  margin-top: 0;
}

.profile-binding-hint {
  grid-column: 1 / -1;
  margin: 0;
  padding: 11px 13px;
  border: 1px solid #d5e8df;
  border-radius: 10px;
  color: #28634e;
  background: #f0f8f4;
  font-size: 13px;
  font-weight: 700;
}

@media (max-width: 1040px) {
  .community-post-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 820px) {
  .site-bar {
    gap: 12px;
  }

  .site-nav {
    width: 100%;
    overflow-x: auto;
    justify-content: flex-start;
  }

  .content-grid,
  .shop-grid,
  .community-layout,
  .profile-layout,
  .site-form {
    grid-template-columns: 1fr;
  }

  .community-page-title,
  .chat-page-title {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .community-page-title > p,
  .chat-page-title > p {
    max-width: none;
    text-align: left;
  }

  .chat-message-list {
    padding: 16px;
  }

  .chat-message__main {
    max-width: 82%;
  }

  .chat-composer {
    grid-template-columns: 1fr;
  }

  .chat-composer__actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  .community-publish-card {
    position: static;
  }

  .binding-steps,
  .binding-form,
  .binding-code-form {
    grid-template-columns: 1fr;
  }

  .binding-form .primary-button,
  .binding-code-form .primary-button {
    width: 100%;
  }

  .content-card--wide {
    grid-column: auto;
  }
}

@media (max-width: 560px) {
  .community-publish-card,
  .community-feed {
    padding: 16px;
    border-radius: 12px;
  }

  .community-feed__head {
    align-items: flex-start;
  }

  .community-post-card__body {
    padding: 13px;
  }

  .chat-room {
    min-height: 600px;
    border-radius: 12px;
  }

  .chat-room__header {
    padding: 0 14px;
  }

  .chat-message-list {
    padding: 14px 12px;
  }

  .chat-message__main {
    max-width: 84%;
  }

  .chat-room__footer {
    padding: 12px;
  }

  .chat-identity {
    grid-template-columns: 38px minmax(0, 1fr);
  }

  #chatLoginButton {
    grid-column: 1 / -1;
    width: 100%;
  }
}

/* NV1-style public application shell */
.public-site {
  --bg: #f7f9fc;
  --surface: rgba(255, 255, 255, 0.82);
  --surface-soft: rgba(248, 250, 252, 0.88);
  --ink: #20252b;
  --muted: #69727d;
  --subtle: #98a1ab;
  --line: #dee2e6;
  --line-strong: #cbd3dc;
  --accent: #228be6;
  --accent-hover: #1c7ed6;
  --accent-soft: #e7f5ff;
  --blue: #228be6;
  --blue-soft: #e7f5ff;
  --warn: #f08c00;
  --warn-soft: #fff4e6;
  --danger: #e03131;
  --danger-soft: #fff5f5;
  --shadow: 0 1px 3px rgba(20, 33, 48, 0.05), 0 16px 30px -18px rgba(20, 33, 48, 0.22);
  min-height: 100vh;
  overflow-x: hidden;
  color: var(--ink);
  background:
    radial-gradient(circle at 38% 4%, rgba(116, 192, 252, 0.17), transparent 31rem),
    radial-gradient(circle at 92% 18%, rgba(177, 151, 252, 0.13), transparent 30rem),
    linear-gradient(180deg, #fbfcfe 0%, #f4f7fb 100%);
  background-attachment: fixed;
  font-family: "Open Sans", "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.public-site button,
.public-site input,
.public-site select,
.public-site textarea {
  font: inherit;
}

.public-site .app-header {
  position: fixed;
  z-index: 1200;
  top: 0;
  right: 0;
  left: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  height: 60px;
  padding: 0 18px;
  border-bottom: 1px solid rgba(210, 217, 225, 0.82);
  background: rgba(255, 255, 255, 0.64);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
}

.public-site .app-brand {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  gap: 12px;
}

.public-site .app-brand__mark {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  color: #111418;
  font-family: Arial Black, Impact, sans-serif;
  font-size: 25px;
  font-style: italic;
  font-weight: 900;
  line-height: 1;
  transform: skew(-5deg);
}

.public-site .app-brand__title {
  overflow: hidden;
  color: #252a30;
  font-size: 16px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.public-site .nav-toggle {
  display: none;
  place-items: center;
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 8px;
  color: #343a40;
  background: transparent;
  cursor: pointer;
}

.public-site .nav-toggle:hover {
  background: rgba(34, 139, 230, 0.09);
}

.public-site .nav-toggle svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-width: 2;
}

.public-site .topbar__actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.public-site .admin-link,
.public-site .refresh {
  min-height: 36px;
  border: 1px solid rgba(206, 212, 218, 0.9);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.74);
  box-shadow: none;
  backdrop-filter: blur(8px);
}

.public-site .admin-link {
  padding: 0 13px;
  color: #495057;
  font-size: 13px;
  font-weight: 600;
}

.public-site .admin-link:hover {
  border-color: #a5d8ff;
  color: var(--accent-hover);
  background: var(--accent-soft);
  box-shadow: none;
}

.public-site .refresh {
  gap: 8px;
  padding: 0 12px;
  color: #6b7480;
  font-size: 12px;
  font-weight: 600;
}

.public-site .refresh__dot {
  width: 8px;
  height: 8px;
  background: #fab005;
  box-shadow: 0 0 0 4px rgba(250, 176, 5, 0.12);
}

.public-site .refresh__dot.is-ok {
  background: #40c057;
  box-shadow: 0 0 0 4px rgba(64, 192, 87, 0.12);
}

.public-site .refresh__dot.is-error {
  background: #fa5252;
  box-shadow: 0 0 0 4px rgba(250, 82, 82, 0.12);
}

.public-site .site-bar {
  position: fixed;
  z-index: 1100;
  top: 60px;
  bottom: 0;
  left: 0;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  width: 280px;
  min-height: 0;
  padding: 14px 12px 12px;
  border-right: 1px solid rgba(210, 217, 225, 0.88);
  background: rgba(255, 255, 255, 0.54);
  backdrop-filter: blur(16px) saturate(135%);
  -webkit-backdrop-filter: blur(16px) saturate(135%);
}

.public-site .site-nav__label {
  padding: 5px 12px 10px;
  color: #9aa3ad;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.public-site .site-nav {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 5px;
  width: 100%;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.public-site .site-nav button {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;
  width: 100%;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid transparent;
  border-radius: 8px;
  color: #343a40;
  background: transparent;
  box-shadow: none;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  text-align: left;
  transition: color 160ms ease, background 160ms ease, border-color 160ms ease;
}

.public-site .site-nav button:hover {
  color: #1c7ed6;
  background: rgba(34, 139, 230, 0.07);
}

.public-site .site-nav button.is-active {
  border-color: rgba(34, 139, 230, 0.06);
  color: #1971c2;
  background: rgba(34, 139, 230, 0.13);
  box-shadow: none;
}

.public-site .site-nav__icon {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
}

.public-site .site-nav__icon svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.public-site .site-nav__chevron {
  color: transparent;
  font-size: 26px;
  font-weight: 300;
  line-height: 1;
  transition: color 160ms ease;
}

.public-site .site-nav button.is-active .site-nav__chevron {
  color: currentColor;
}

.public-site .site-bar__footer {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: auto;
  padding: 12px;
  border-top: 1px solid rgba(222, 226, 230, 0.85);
  color: #8a939e;
  font-size: 11px;
  font-weight: 600;
}

.public-site .site-bar__footer-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #40c057;
  box-shadow: 0 0 0 4px rgba(64, 192, 87, 0.1);
}

.public-site .nav-backdrop {
  position: fixed;
  z-index: 1050;
  inset: 60px 0 0;
  visibility: hidden;
  background: rgba(25, 32, 40, 0.38);
  opacity: 0;
  transition: opacity 180ms ease, visibility 180ms ease;
  backdrop-filter: blur(2px);
}

.public-site .shell {
  width: auto;
  min-height: 100vh;
  margin: 0 0 0 280px;
  padding: 76px 16px 48px;
}

.public-site .page-panel {
  width: 100%;
  max-width: 1280px;
  margin-right: auto;
  margin-left: auto;
}

.public-site .page-panel.is-active {
  animation: nbn-page-in 220ms ease both;
}

@keyframes nbn-page-in {
  from {
    opacity: 0;
    transform: translateY(5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.public-site .content-page {
  margin-top: 0;
}

.public-site .eyebrow,
.public-site .server-card__kicker {
  color: #1c7ed6;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.public-site h1,
.public-site h2,
.public-site h3 {
  color: #20252b;
  letter-spacing: -0.02em;
}

.public-site .showcase-banner {
  min-height: 166px;
  margin-top: 0;
  padding: 25px 28px;
  border: 1px solid rgba(210, 217, 225, 0.9);
  border-radius: 16px;
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.96) 0 44%, rgba(255, 255, 255, 0.82) 64%, rgba(255, 255, 255, 0.42)),
    url("./hero-voxel.png") center right / cover,
    #f7f9fc;
  box-shadow: var(--shadow);
}

.public-site .showcase-banner h1 {
  margin-bottom: 8px;
  color: #1f252b;
  font-size: 34px;
}

.public-site .showcase-banner #lastUpdated {
  margin: 0;
  color: #6f7781;
  font-size: 13px;
}

.public-site .status-panel__tools {
  flex-wrap: nowrap;
}

.public-site .summary {
  min-height: 46px;
  padding: 0 15px;
  border: 1px solid rgba(206, 212, 218, 0.9);
  border-radius: 10px;
  color: #343a40;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 1px 2px rgba(20, 33, 48, 0.04);
  backdrop-filter: blur(10px);
}

.public-site .summary__label,
.public-site .summary span:last-child {
  color: #7b8490;
}

.public-site .summary strong {
  color: #1971c2;
  font-size: 23px;
}

.public-site .icon-button {
  width: 42px;
  height: 42px;
  border-color: #a5d8ff;
  border-radius: 9px;
  color: #1971c2;
  background: rgba(231, 245, 255, 0.88);
  box-shadow: none;
}

.public-site .icon-button:hover {
  border-color: #74c0fc;
  color: #fff;
  background: var(--accent);
  box-shadow: none;
}

.public-site .icon-button:disabled {
  opacity: 0.55;
  cursor: wait;
}

.public-site .status-panel {
  margin-top: 12px;
  padding: 20px;
  border: 1px solid rgba(210, 217, 225, 0.9);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.58);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}

.public-site .status-panel__head {
  margin-bottom: 18px;
}

.public-site .status-panel__head h2 {
  font-size: 21px;
}

.public-site .status-panel p {
  color: #7a838d;
}

.public-site .category-stack,
.public-site .category-section {
  gap: 14px;
}

.public-site .category-section__head {
  min-height: 38px;
  padding: 0 0 10px;
  border-bottom: 1px solid #e1e6eb;
}

.public-site .category-section__head h3 {
  color: #31363c;
  font-size: 15px;
  font-weight: 600;
}

.public-site .category-section__head span {
  color: #848d97;
  font-weight: 600;
}

.public-site .server-grid {
  gap: 10px;
}

.public-site .server-card {
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 15px;
  min-height: 118px;
  padding: 11px;
  border: 1px solid #e0e5ea;
  border-radius: 12px;
  color: #343a40;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 1px 2px rgba(20, 33, 48, 0.04), 0 9px 20px -18px rgba(20, 33, 48, 0.5);
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.public-site .server-card:hover {
  border-color: #c9dff1;
  box-shadow: 0 1px 3px rgba(20, 33, 48, 0.06), 0 16px 28px -20px rgba(28, 126, 214, 0.4);
  transform: translateY(-1px);
}

.public-site .server-card__cover {
  width: 96px;
  border: 1px solid #d5dce3;
  border-radius: 10px;
  color: #6f7a85;
  background:
    linear-gradient(135deg, rgba(34, 139, 230, 0.14), rgba(121, 80, 242, 0.08)),
    url("./hero-voxel.png") center / cover;
  box-shadow: 0 3px 10px rgba(20, 33, 48, 0.1);
}

.public-site .server-card__body {
  gap: 7px;
}

.public-site .server-card h3 {
  color: #252a30;
  font-size: 21px;
  font-weight: 650;
}

.public-site .server-card__network {
  color: #747e89;
  font-size: 12px;
  font-weight: 500;
}

.public-site .server-card__network::before {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #40c057;
  box-shadow: 0 0 0 3px rgba(64, 192, 87, 0.1);
}

.public-site .status-pill {
  min-width: 58px;
  padding: 5px 10px;
  border-radius: 999px;
  color: #1971c2;
  background: #e7f5ff;
  font-size: 12px;
  font-weight: 600;
}

.public-site .status-pill.is-full,
.public-site .status-pill.is-maintenance {
  color: #e67700;
  background: #fff4e6;
}

.public-site .status-pill.is-offline {
  color: #e03131;
  background: #fff5f5;
}

.public-site .status-pill.is-closed {
  color: #69727d;
  background: #f1f3f5;
}

.public-site .meter-wrap {
  display: grid;
  grid-template-columns: minmax(80px, 1fr) auto;
  align-items: center;
  gap: 10px;
}

.public-site .meter {
  height: 7px;
  border: 0;
  border-radius: 999px;
  background: #e9eef3;
}

.public-site .meter span {
  border-radius: inherit;
  background: linear-gradient(90deg, #228be6, #4dabf7);
}

.public-site .usage-text {
  position: static;
  display: block;
  min-width: 58px;
  color: #4f5964;
  font-size: 12px;
  font-weight: 700;
  text-align: right;
}

.public-site .server-card__stats {
  gap: 10px 22px;
}

.public-site .server-card__stats span {
  color: #78828d;
  font-size: 12px;
  font-weight: 500;
}

.public-site .server-card__stats strong,
.public-site .server-card__stats span:first-child strong,
.public-site .server-card__stats span:nth-child(2) strong {
  margin-right: 4px;
  color: #343a40;
  font-size: 15px;
  font-weight: 700;
}

.public-site .server-card__stats span:nth-child(2) strong {
  color: #1971c2;
}

.public-site .server-card__number {
  margin-left: auto;
}

.public-site .server-card__owner {
  min-height: 28px;
  padding: 0 9px;
  border-color: #d9e5ef;
  border-radius: 7px;
  color: #65717d;
  background: #f7fafc;
  font-size: 11px;
  font-weight: 600;
}

.public-site .server-card__owner strong,
.public-site .server-card__stats .server-card__owner strong {
  color: #1971c2;
  font-size: 12px;
}

.public-site .server-card__owner:hover {
  border-color: #a5d8ff;
  color: #1971c2;
  background: #e7f5ff;
}

.public-site .server-card__kicker {
  margin: 0;
  color: #939ca6;
  text-transform: none;
}

.public-site .server-card__note {
  color: #737d87;
}

.public-site .page-title {
  margin: 2px 0 18px;
}

.public-site .page-title h1 {
  margin-bottom: 5px;
  color: #20252b;
  font-size: 30px;
  font-weight: 700;
}

.public-site .community-page-title > p,
.public-site .chat-page-title > p {
  color: #727c87;
  font-size: 13px;
  line-height: 1.65;
}

.public-site .community-publish-card,
.public-site .community-feed,
.public-site .chat-room,
.public-site .content-card,
.public-site .shop-item,
.public-site .profile-card,
.public-site .site-form,
.public-site .guide-list article,
.public-site .profile-binding-panel {
  border: 1px solid rgba(210, 217, 225, 0.92);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.76);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}

.public-site .community-publish-card {
  top: 76px;
}

.public-site .community-publish-head span,
.public-site .community-feed__head span,
.public-site .content-card__tag,
.public-site .shop-item span {
  color: #1c7ed6;
}

.public-site .community-publish-head h2,
.public-site .community-feed__head h2,
.public-site .community-post-card h3,
.public-site .content-card h2,
.public-site .shop-item h2,
.public-site .guide-list h2,
.public-site .profile-card h2 {
  color: #2b3036;
}

.public-site .community-auth-badge {
  color: #e67700;
  background: #fff4e6;
}

.public-site .community-auth-badge.is-authenticated,
.public-site .profile-verified-badge {
  color: #1971c2;
  background: #e7f5ff;
}

.public-site .community-identity,
.public-site .chat-identity {
  border-color: #e1e6eb;
  background: rgba(248, 250, 252, 0.82);
}

.public-site .community-identity__avatar,
.public-site .community-author__avatar,
.public-site .chat-identity__avatar,
.public-site .chat-message__avatar {
  color: #1971c2;
  background: #e7f5ff;
}

.public-site .community-login-button,
.public-site #chatLoginButton,
.public-site .community-empty-state__button {
  border-color: #a5d8ff;
  color: #1971c2;
  background: #e7f5ff;
}

.public-site .community-login-button:hover,
.public-site #chatLoginButton:hover,
.public-site .community-empty-state__button:hover {
  border-color: #74c0fc;
  background: #d0ebff;
}

.public-site .community-file-picker {
  border-color: #a5d8ff;
  color: #1971c2;
  background: rgba(231, 245, 255, 0.58);
}

.public-site .community-file-picker:hover {
  border-color: #4dabf7;
  background: #e7f5ff;
}

.public-site .community-file-picker__icon {
  background: #228be6;
}

.public-site .community-file-picker strong,
.public-site .community-identity strong,
.public-site .community-author__text strong,
.public-site .chat-identity__text strong {
  color: #35404a;
}

.public-site .community-file-picker small,
.public-site .community-identity small,
.public-site .community-author__text small,
.public-site .chat-identity__text small {
  color: #87919c;
}

.public-site .community-post-card {
  border-color: #e0e5ea;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 1px 2px rgba(20, 33, 48, 0.04);
}

.public-site .community-empty-state {
  border-color: #cfd8e2;
  color: #737e89;
  background: rgba(248, 250, 252, 0.72);
}

.public-site .community-empty-state__icon,
.public-site .chat-empty-state > span {
  color: #1971c2;
  background: #e7f5ff;
}

.public-site .chat-room {
  background: rgba(255, 255, 255, 0.8);
}

.public-site .chat-room__header {
  border-bottom-color: #e1e6eb;
  background: rgba(255, 255, 255, 0.78);
}

.public-site .chat-message-list {
  background:
    radial-gradient(circle at 12% 8%, rgba(34, 139, 230, 0.06), transparent 28%),
    rgba(247, 249, 252, 0.88);
}

.public-site .chat-connection__dot.is-live {
  background: #40c057;
  box-shadow: 0 0 0 4px rgba(64, 192, 87, 0.12);
}

.public-site .chat-message__bubble {
  border-color: #dfe5eb;
  color: #303840;
  background: #fff;
  box-shadow: 0 1px 3px rgba(20, 33, 48, 0.05);
}

.public-site .chat-message.is-mine .chat-message__bubble {
  border-color: #228be6;
  color: #fff;
  background: #228be6;
  box-shadow: 0 7px 18px rgba(34, 139, 230, 0.18);
}

.public-site .chat-room__footer {
  border-top-color: #e1e6eb;
  background: rgba(255, 255, 255, 0.9);
}

.public-site .shop-grid {
  gap: 14px;
}

.public-site .shop-item {
  min-height: 190px;
  padding: 20px;
}

.public-site .shop-item strong {
  color: #1971c2;
  font-size: 24px;
}

.public-site .shop-item button,
.public-site .primary-button {
  border-color: #228be6;
  color: #fff;
  background: #228be6;
  box-shadow: none;
}

.public-site .shop-item button:hover:not(:disabled),
.public-site .primary-button:hover:not(:disabled) {
  border-color: #1c7ed6;
  background: #1c7ed6;
}

.public-site .shop-item button:disabled,
.public-site .primary-button:disabled {
  border-color: #e4e8ed;
  color: #929ba5;
  background: #eef1f4;
}

.public-site .secondary-button {
  border-color: #ced4da;
  color: #495057;
  background: #fff;
}

.public-site .secondary-button:hover {
  border-color: #a5d8ff;
  color: #1971c2;
  background: #e7f5ff;
  box-shadow: none;
}

.public-site .danger-button {
  border-color: #ffc9c9;
  color: #e03131;
  background: #fff5f5;
}

.public-site .danger-button:hover {
  border-color: #ffa8a8;
  background: #ffe3e3;
}

.public-site .guide-list article > span,
.public-site .binding-steps strong {
  color: #fff;
  background: #228be6;
}

.public-site .guide-list p,
.public-site .profile-card p,
.public-site .content-card p {
  color: #717b86;
}

.public-site label {
  color: #606b76;
  font-size: 12px;
  font-weight: 600;
}

.public-site input,
.public-site select,
.public-site textarea {
  border-color: #ced4da;
  border-radius: 8px;
  color: #2f363d;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: inset 0 1px 1px rgba(20, 33, 48, 0.02);
}

.public-site input::placeholder,
.public-site textarea::placeholder {
  color: #a1a9b2;
}

.public-site input:focus,
.public-site select:focus,
.public-site textarea:focus {
  border-color: #74c0fc;
  outline: 3px solid rgba(34, 139, 230, 0.13);
}

.public-site .profile-avatar {
  color: #1971c2;
  background: #e7f5ff;
}

.public-site .profile-avatar.has-image {
  background: #d0ebff;
  box-shadow: 0 10px 24px rgba(34, 139, 230, 0.14);
}

.public-site .binding-steps span {
  border-color: #dfe5eb;
  color: #505d68;
  background: rgba(248, 250, 252, 0.8);
}

.public-site .binding-bot-card,
.public-site .profile-binding-hint {
  border-color: #a5d8ff;
  color: #1971c2;
  background: #e7f5ff;
}

.public-site .binding-bot-card strong {
  color: #1971c2;
}

.public-site #bindingStatusText {
  color: #55626e;
}

.public-site #profileForm input[readonly] {
  color: #64707b;
  background: #f1f3f5;
}

.public-site .form-message {
  color: #737e89;
}

@media (max-width: 1080px) {
  .public-site .site-bar {
    width: 250px;
  }

  .public-site .shell {
    margin-left: 250px;
  }

  .public-site .community-layout {
    grid-template-columns: minmax(280px, 330px) minmax(0, 1fr);
  }
}

@media (max-width: 900px) {
  .public-site .app-header {
    height: 58px;
    padding: 0 12px;
  }

  .public-site .nav-toggle {
    display: grid;
  }

  .public-site .site-bar {
    top: 58px;
    width: min(300px, 86vw);
    background: rgba(249, 251, 253, 0.96);
    transform: translateX(-104%);
    transition: transform 200ms ease;
    box-shadow: 16px 0 36px rgba(20, 33, 48, 0.12);
  }

  .public-site.nav-open {
    overflow: hidden;
  }

  .public-site.nav-open .site-bar {
    transform: translateX(0);
  }

  .public-site.nav-open .nav-backdrop {
    visibility: visible;
    opacity: 1;
  }

  .public-site .nav-backdrop {
    inset: 58px 0 0;
  }

  .public-site .shell {
    margin-left: 0;
    padding: 72px 14px 40px;
  }

  .public-site .community-layout,
  .public-site .profile-layout,
  .public-site .site-form,
  .public-site .shop-grid,
  .public-site .content-grid {
    grid-template-columns: 1fr;
  }

  .public-site .community-publish-card {
    position: static;
  }

  .public-site .community-post-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .public-site .app-brand {
    gap: 7px;
  }

  .public-site .app-brand__mark {
    width: 28px;
    height: 28px;
    font-size: 22px;
  }

  .public-site .app-brand__title {
    max-width: none;
    font-size: 0;
  }

  .public-site .app-brand__title::after {
    content: "N-B-N";
    font-size: 14px;
  }

  .public-site .admin-link {
    display: none;
  }

  .public-site .refresh {
    min-height: 34px;
    padding: 0 9px;
    font-size: 11px;
  }

  .public-site .shell {
    padding: 70px 10px 30px;
  }

  .public-site .showcase-banner {
    align-items: flex-start;
    flex-direction: column;
    min-height: 210px;
    padding: 20px;
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.95) 0 52%, rgba(255, 255, 255, 0.62)),
      url("./hero-voxel.png") center / cover;
  }

  .public-site .showcase-banner h1 {
    font-size: 30px;
  }

  .public-site .status-panel__tools {
    width: 100%;
    justify-content: space-between;
    margin-top: auto;
  }

  .public-site .status-panel {
    padding: 14px 12px;
  }

  .public-site .status-panel__head {
    margin-bottom: 14px;
  }

  .public-site .category-section__head {
    align-items: flex-start;
  }

  .public-site .category-section__head span {
    max-width: 48%;
    text-align: right;
  }

  .public-site .server-card {
    grid-template-columns: 78px minmax(0, 1fr);
    gap: 11px;
    min-height: 104px;
    padding: 10px;
  }

  .public-site .server-card__cover {
    width: 78px;
  }

  .public-site .server-card__top {
    align-items: flex-start;
    gap: 8px;
  }

  .public-site .server-card h3 {
    font-size: 17px;
    line-height: 1.25;
  }

  .public-site .status-pill {
    min-width: auto;
    padding: 4px 8px;
    font-size: 10px;
  }

  .public-site .meter-wrap {
    gap: 7px;
  }

  .public-site .meter {
    height: 6px;
  }

  .public-site .usage-text {
    min-width: 46px;
    font-size: 10px;
  }

  .public-site .server-card__stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, auto));
    justify-content: start;
    gap: 7px 13px;
  }

  .public-site .server-card__number {
    grid-column: 1 / -1;
    margin-left: 0;
  }

  .public-site .server-card__owner {
    grid-column: 1 / -1;
    justify-self: start;
  }

  .public-site .server-card__kicker {
    display: none;
  }

  .public-site .page-title h1 {
    font-size: 27px;
  }

  .public-site .community-page-title,
  .public-site .chat-page-title {
    align-items: flex-start;
    flex-direction: column;
    gap: 7px;
  }

  .public-site .community-page-title > p,
  .public-site .chat-page-title > p {
    text-align: left;
  }

  .public-site .community-post-grid {
    grid-template-columns: 1fr;
  }

  .public-site .community-publish-card,
  .public-site .community-feed {
    padding: 15px;
  }

  .public-site .chat-room {
    height: calc(100dvh - 140px);
    min-height: 580px;
  }

  .public-site .profile-card,
  .public-site .profile-binding-panel,
  .public-site .site-form,
  .public-site .shop-item,
  .public-site .guide-list article {
    border-radius: 13px;
  }

  .public-site .binding-steps,
  .public-site .binding-form,
  .public-site .binding-code-form {
    grid-template-columns: 1fr;
  }
}

/* Starter gift claim flow */
.public-site .shop-item--starter {
  position: relative;
  overflow: hidden;
}

.public-site .shop-item--starter::after {
  content: "";
  position: absolute;
  right: -34px;
  bottom: -44px;
  width: 132px;
  height: 132px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--skin-accent) 18%, transparent);
  filter: blur(2px);
  pointer-events: none;
}

.public-site .shop-item--starter > * {
  position: relative;
  z-index: 1;
}

.public-site .shop-item--starter p {
  margin: -4px 0 2px;
  color: var(--skin-muted);
  font-size: 13px;
  line-height: 1.65;
}

.public-site .starter-gift-panel[hidden] {
  display: none !important;
}

.public-site .starter-gift-panel {
  margin-top: 16px;
  padding: 20px;
  border: 1px solid var(--skin-line);
  border-radius: 16px;
  background: color-mix(in srgb, var(--skin-surface-solid) 78%, transparent);
  box-shadow: 0 20px 54px rgb(15 23 42 / 0.09);
  backdrop-filter: blur(20px) saturate(1.12);
  -webkit-backdrop-filter: blur(20px) saturate(1.12);
  animation: starter-gift-in 180ms ease-out;
}

@keyframes starter-gift-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.public-site .starter-gift-panel__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.public-site .starter-gift-panel__header h2 {
  margin: 8px 0 4px;
  color: var(--skin-text);
  font-size: 21px;
}

.public-site .starter-gift-panel__header p {
  margin: 0;
  color: var(--skin-muted);
  font-size: 13px;
  line-height: 1.6;
}

.public-site .starter-gift-state {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 9px;
  border-radius: 999px;
  color: var(--skin-accent);
  background: color-mix(in srgb, var(--skin-accent) 12%, transparent);
  font-size: 11px;
  font-weight: 750;
}

.public-site .starter-gift-state[data-status="delivered"] {
  color: #16815b;
  background: rgb(22 129 91 / 0.12);
}

.public-site .starter-gift-state[data-status="failed"] {
  color: #c2414b;
  background: rgb(194 65 75 / 0.12);
}

.public-site .starter-gift-close {
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  border: 1px solid var(--skin-line);
  border-radius: 10px;
  color: var(--skin-muted);
  background: var(--skin-surface-soft);
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
}

.public-site .starter-gift-close:hover {
  color: var(--skin-text);
  border-color: var(--skin-line-strong);
}

.public-site .starter-gift-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.public-site .starter-gift-form > label {
  display: grid;
  gap: 7px;
  color: var(--skin-text);
  font-size: 12px;
  font-weight: 680;
}

.public-site .starter-gift-form input {
  width: 100%;
  min-height: 44px;
  padding: 0 13px;
  border: 1px solid var(--skin-line);
  border-radius: 10px;
  outline: 0;
  color: var(--skin-text);
  background: var(--skin-surface-soft);
  transition: border-color 150ms ease, box-shadow 150ms ease, background 150ms ease;
}

.public-site .starter-gift-form input:focus {
  border-color: var(--skin-accent);
  background: var(--skin-surface-solid);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--skin-accent) 14%, transparent);
}

.public-site .starter-gift-progress {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 11px;
  min-height: 58px;
  padding: 11px 13px;
  border: 1px solid var(--skin-line);
  border-radius: 12px;
  background: color-mix(in srgb, var(--skin-surface-soft) 82%, transparent);
}

.public-site .starter-gift-progress__dot {
  flex: 0 0 10px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--skin-line-strong);
  box-shadow: 0 0 0 5px color-mix(in srgb, var(--skin-line-strong) 15%, transparent);
}

.public-site .starter-gift-progress__dot[data-status="queued"],
.public-site .starter-gift-progress__dot[data-status="joining"],
.public-site .starter-gift-progress__dot[data-status="checking_player"],
.public-site .starter-gift-progress__dot[data-status="delivering"] {
  background: var(--skin-accent);
  box-shadow: 0 0 0 5px color-mix(in srgb, var(--skin-accent) 16%, transparent);
  animation: starter-gift-pulse 1.2s ease-in-out infinite;
}

.public-site .starter-gift-progress__dot[data-status="delivered"] {
  background: #20a474;
  box-shadow: 0 0 0 5px rgb(32 164 116 / 0.14);
}

.public-site .starter-gift-progress__dot[data-status="failed"] {
  background: #d24d57;
  box-shadow: 0 0 0 5px rgb(210 77 87 / 0.14);
}

@keyframes starter-gift-pulse {
  50% {
    transform: scale(0.78);
    opacity: 0.72;
  }
}

.public-site .starter-gift-progress strong,
.public-site .starter-gift-progress small {
  display: block;
}

.public-site .starter-gift-progress strong {
  margin-bottom: 3px;
  color: var(--skin-text);
  font-size: 13px;
}

.public-site .starter-gift-progress small {
  color: var(--skin-muted);
  font-size: 12px;
  line-height: 1.45;
}

.public-site .starter-gift-form > .primary-button,
.public-site .starter-gift-form > .form-message {
  grid-column: 1 / -1;
}

.public-site .starter-gift-form > .primary-button {
  min-height: 44px;
}

.public-site .starter-gift-form > .primary-button:disabled {
  opacity: 0.58;
  cursor: wait;
}

.public-site .starter-gift-form > .form-message {
  margin: -2px 0 0;
}

@media (max-width: 640px) {
  .public-site .starter-gift-panel {
    padding: 16px;
    border-radius: 14px;
  }

  .public-site .starter-gift-form {
    grid-template-columns: 1fr;
  }

  .public-site .starter-gift-form > .primary-button,
  .public-site .starter-gift-form > .form-message,
  .public-site .starter-gift-progress {
    grid-column: 1;
  }
}

@media (max-width: 390px) {
  .public-site .app-brand__title {
    max-width: none;
  }

  .public-site .refresh {
    padding: 0 8px;
  }

  .public-site .refresh__dot {
    width: 7px;
    height: 7px;
  }

  .public-site .server-card {
    grid-template-columns: 70px minmax(0, 1fr);
  }

  .public-site .server-card__cover {
    width: 70px;
  }
}

/* Multi-theme skin system */
html[data-theme="light"] {
  color-scheme: light;
  --skin-bg-1: #f7f9fc;
  --skin-bg-2: #eef3f9;
  --skin-glow-1: rgba(96, 165, 250, 0.15);
  --skin-glow-2: rgba(167, 139, 250, 0.1);
  --skin-surface: rgba(255, 255, 255, 0.91);
  --skin-surface-solid: #ffffff;
  --skin-surface-soft: #f6f8fb;
  --skin-header: rgba(255, 255, 255, 0.76);
  --skin-sidebar: rgba(249, 251, 254, 0.94);
  --skin-text: #252a30;
  --skin-heading: #1f2429;
  --skin-muted: #6f7882;
  --skin-subtle: #9099a3;
  --skin-line: #dce2e8;
  --skin-line-strong: #c8d1dc;
  --skin-accent: #228be6;
  --skin-accent-hover: #1c7ed6;
  --skin-accent-soft: #e7f5ff;
  --skin-accent-rgb: 34 139 230;
  --skin-shadow: 0 1px 3px rgba(20, 33, 48, 0.05), 0 16px 30px -18px rgba(20, 33, 48, 0.22);
  --skin-hero-overlay: linear-gradient(90deg, rgba(255, 255, 255, 0.97) 0 42%, rgba(255, 255, 255, 0.8) 65%, rgba(255, 255, 255, 0.36));
}

html[data-theme="ocean"] {
  color-scheme: light;
  --skin-bg-1: #f2fbfd;
  --skin-bg-2: #e8f5f9;
  --skin-glow-1: rgba(34, 211, 238, 0.16);
  --skin-glow-2: rgba(59, 130, 246, 0.12);
  --skin-surface: rgba(252, 255, 255, 0.91);
  --skin-surface-solid: #ffffff;
  --skin-surface-soft: #f1f9fb;
  --skin-header: rgba(248, 254, 255, 0.78);
  --skin-sidebar: rgba(245, 252, 253, 0.95);
  --skin-text: #203138;
  --skin-heading: #172a31;
  --skin-muted: #61747c;
  --skin-subtle: #8799a0;
  --skin-line: #d4e5e9;
  --skin-line-strong: #bcd7de;
  --skin-accent: #0891b2;
  --skin-accent-hover: #0e7490;
  --skin-accent-soft: #cffafe;
  --skin-accent-rgb: 8 145 178;
  --skin-shadow: 0 1px 3px rgba(17, 55, 66, 0.05), 0 16px 30px -18px rgba(8, 145, 178, 0.25);
  --skin-hero-overlay: linear-gradient(90deg, rgba(249, 255, 255, 0.97) 0 42%, rgba(240, 253, 255, 0.79) 65%, rgba(225, 250, 255, 0.3));
}

html[data-theme="forest"] {
  color-scheme: light;
  --skin-bg-1: #f3f8f4;
  --skin-bg-2: #eaf2ec;
  --skin-glow-1: rgba(74, 222, 128, 0.13);
  --skin-glow-2: rgba(45, 212, 191, 0.09);
  --skin-surface: rgba(253, 255, 253, 0.92);
  --skin-surface-solid: #ffffff;
  --skin-surface-soft: #f3f8f5;
  --skin-header: rgba(250, 254, 251, 0.79);
  --skin-sidebar: rgba(247, 252, 248, 0.95);
  --skin-text: #24332a;
  --skin-heading: #1c2b22;
  --skin-muted: #65736a;
  --skin-subtle: #8b978f;
  --skin-line: #d7e3da;
  --skin-line-strong: #c3d4c7;
  --skin-accent: #2f855a;
  --skin-accent-hover: #276749;
  --skin-accent-soft: #e2f4e8;
  --skin-accent-rgb: 47 133 90;
  --skin-shadow: 0 1px 3px rgba(26, 55, 36, 0.05), 0 16px 30px -18px rgba(47, 133, 90, 0.25);
  --skin-hero-overlay: linear-gradient(90deg, rgba(253, 255, 253, 0.97) 0 42%, rgba(245, 253, 247, 0.8) 65%, rgba(229, 249, 235, 0.32));
}

html[data-theme="dusk"] {
  color-scheme: light;
  --skin-bg-1: #faf6fd;
  --skin-bg-2: #f1eaf8;
  --skin-glow-1: rgba(168, 85, 247, 0.13);
  --skin-glow-2: rgba(244, 114, 182, 0.1);
  --skin-surface: rgba(255, 253, 255, 0.91);
  --skin-surface-solid: #ffffff;
  --skin-surface-soft: #faf6fc;
  --skin-header: rgba(255, 252, 255, 0.78);
  --skin-sidebar: rgba(252, 248, 254, 0.95);
  --skin-text: #302939;
  --skin-heading: #27212f;
  --skin-muted: #746a7d;
  --skin-subtle: #9a8fa2;
  --skin-line: #e4dbe9;
  --skin-line-strong: #d2c5db;
  --skin-accent: #7c3aed;
  --skin-accent-hover: #6d28d9;
  --skin-accent-soft: #f0e7ff;
  --skin-accent-rgb: 124 58 237;
  --skin-shadow: 0 1px 3px rgba(55, 36, 68, 0.05), 0 16px 30px -18px rgba(124, 58, 237, 0.25);
  --skin-hero-overlay: linear-gradient(90deg, rgba(255, 253, 255, 0.97) 0 42%, rgba(252, 246, 255, 0.8) 65%, rgba(244, 226, 255, 0.3));
}

html[data-theme="dark"] {
  color-scheme: dark;
  --skin-bg-1: #11151b;
  --skin-bg-2: #171c24;
  --skin-glow-1: rgba(37, 99, 235, 0.18);
  --skin-glow-2: rgba(124, 58, 237, 0.12);
  --skin-surface: rgba(28, 34, 44, 0.93);
  --skin-surface-solid: #1c222c;
  --skin-surface-soft: #171d26;
  --skin-header: rgba(20, 25, 33, 0.84);
  --skin-sidebar: rgba(17, 22, 29, 0.96);
  --skin-text: #dfe6ee;
  --skin-heading: #f1f5f9;
  --skin-muted: #a3adb9;
  --skin-subtle: #7f8996;
  --skin-line: #343d4a;
  --skin-line-strong: #465263;
  --skin-accent: #60a5fa;
  --skin-accent-hover: #93c5fd;
  --skin-accent-soft: #172f4a;
  --skin-accent-rgb: 96 165 250;
  --skin-shadow: 0 1px 3px rgba(0, 0, 0, 0.24), 0 18px 34px -18px rgba(0, 0, 0, 0.72);
  --skin-hero-overlay: linear-gradient(90deg, rgba(17, 21, 27, 0.98) 0 42%, rgba(17, 21, 27, 0.82) 65%, rgba(17, 21, 27, 0.46));
}

html[data-theme] .public-site {
  --bg: var(--skin-bg-1);
  --surface: var(--skin-surface-solid);
  --surface-soft: var(--skin-surface-soft);
  --ink: var(--skin-text);
  --muted: var(--skin-muted);
  --subtle: var(--skin-subtle);
  --line: var(--skin-line);
  --line-strong: var(--skin-line-strong);
  --accent: var(--skin-accent);
  --accent-soft: var(--skin-accent-soft);
  --blue: var(--skin-accent);
  --blue-soft: var(--skin-accent-soft);
  --shadow: var(--skin-shadow);
  color: var(--skin-text);
  background:
    radial-gradient(circle at 36% 3%, var(--skin-glow-1), transparent 31rem),
    radial-gradient(circle at 92% 18%, var(--skin-glow-2), transparent 29rem),
    linear-gradient(180deg, var(--skin-bg-1), var(--skin-bg-2));
}

html[data-theme] .public-site .app-header {
  border-color: var(--skin-line);
  background: var(--skin-header);
}

html[data-theme] .public-site .site-bar {
  border-color: var(--skin-line);
  background: var(--skin-sidebar);
}

html[data-theme] .public-site .app-header__context strong,
html[data-theme] .public-site .site-owner-card__text strong,
html[data-theme] .public-site h1,
html[data-theme] .public-site h2,
html[data-theme] .public-site h3,
html[data-theme] .public-site .page-title h1,
html[data-theme] .public-site .showcase-banner h1,
html[data-theme] .public-site .community-publish-head h2,
html[data-theme] .public-site .community-feed__head h2,
html[data-theme] .public-site .community-post-card h3,
html[data-theme] .public-site .content-card h2,
html[data-theme] .public-site .shop-item h2,
html[data-theme] .public-site .guide-list h2,
html[data-theme] .public-site .profile-card h2 {
  color: var(--skin-heading);
}

html[data-theme] .public-site .app-header__context span,
html[data-theme] .public-site .site-owner-card__text small,
html[data-theme] .public-site .site-nav__label,
html[data-theme] .public-site .showcase-banner #lastUpdated,
html[data-theme] .public-site .status-panel p,
html[data-theme] .public-site .community-page-title > p,
html[data-theme] .public-site .chat-page-title > p,
html[data-theme] .public-site .guide-list p,
html[data-theme] .public-site .profile-card p,
html[data-theme] .public-site .content-card p,
html[data-theme] .public-site .form-message {
  color: var(--skin-muted);
}

html[data-theme] .public-site .eyebrow,
html[data-theme] .public-site .community-publish-head span,
html[data-theme] .public-site .community-feed__head span,
html[data-theme] .public-site .content-card__tag,
html[data-theme] .public-site .shop-item span,
html[data-theme] .public-site .shop-item strong {
  color: var(--skin-accent);
}

html[data-theme] .public-site .site-owner-card {
  grid-template-columns: 40px minmax(0, 1fr);
  min-height: 58px;
  margin: 0 2px 13px;
  padding: 8px 9px;
  border: 0;
  border-bottom: 1px solid var(--skin-line);
  border-radius: 0;
  color: var(--skin-text);
  background: transparent;
  box-shadow: none;
}

html[data-theme] .public-site .site-owner-card__avatar {
  width: 38px;
  height: 38px;
  border: 1px solid rgb(var(--skin-accent-rgb) / 0.2);
  border-radius: 11px;
  color: var(--skin-accent);
  background: var(--skin-accent-soft);
  box-shadow: none;
  font-size: 17px;
}

html[data-theme] .public-site .site-owner-card__text strong {
  font-size: 14px;
}

html[data-theme] .public-site .site-owner-card__text small {
  margin-top: 3px;
  font-size: 10px;
}

html[data-theme] .public-site .site-nav button {
  color: var(--skin-text);
}

html[data-theme] .public-site .site-nav button:hover {
  color: var(--skin-accent);
  background: rgb(var(--skin-accent-rgb) / 0.08);
}

html[data-theme] .public-site .site-nav button.is-active {
  border-color: rgb(var(--skin-accent-rgb) / 0.08);
  color: var(--skin-accent);
  background: rgb(var(--skin-accent-rgb) / 0.14);
}

html[data-theme] .public-site .site-bar__footer {
  border-color: var(--skin-line);
  color: var(--skin-subtle);
}

.public-site .theme-control {
  position: relative;
}

.public-site.theme-menu-open::after {
  content: "";
  position: fixed;
  z-index: 1150;
  inset: 60px 0 0 268px;
  background: rgba(15, 23, 42, 0.18);
  backdrop-filter: blur(1.5px);
  -webkit-backdrop-filter: blur(1.5px);
}

html[data-theme="dark"] .public-site.theme-menu-open::after {
  background: rgba(0, 0, 0, 0.34);
}

.public-site .theme-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 36px;
  padding: 0 11px;
  border: 1px solid var(--skin-line);
  border-radius: 8px;
  color: var(--skin-muted);
  background: var(--skin-surface);
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
  transition: color 150ms ease, border-color 150ms ease, background 150ms ease, transform 80ms ease;
}

.public-site .theme-button:hover,
.public-site .theme-button[aria-expanded="true"] {
  border-color: rgb(var(--skin-accent-rgb) / 0.42);
  color: var(--skin-accent);
  background: var(--skin-accent-soft);
}

.public-site .theme-button svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.public-site .theme-menu {
  position: absolute;
  z-index: 1900;
  top: calc(100% + 10px);
  right: 0;
  width: min(430px, calc(100vw - 24px));
  max-height: min(650px, calc(100vh - 82px));
  padding: 14px;
  overflow-y: auto;
  border: 1px solid var(--skin-line);
  border-radius: 14px;
  color: var(--skin-text);
  background: var(--skin-surface-solid);
  box-shadow: 0 22px 60px -25px rgba(15, 23, 42, 0.5);
}

.public-site .theme-menu__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  padding: 2px 2px 11px;
  border-bottom: 1px solid var(--skin-line);
}

.public-site .theme-menu__head strong,
.public-site .theme-menu__head span {
  display: block;
}

.public-site .theme-menu__head strong {
  color: var(--skin-heading);
  font-size: 15px;
}

.public-site .theme-menu__head span {
  margin-top: 3px;
  color: var(--skin-muted);
  font-size: 10px;
}

.public-site .theme-menu__head > button {
  display: grid;
  place-items: center;
  flex: 0 0 30px;
  width: 30px;
  height: 30px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  color: var(--skin-muted);
  background: var(--skin-surface-soft);
  cursor: pointer;
  font-size: 20px;
  line-height: 1;
}

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

.public-site .theme-options > button {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) 18px;
  align-items: center;
  gap: 9px;
  min-height: 60px;
  padding: 8px 9px;
  border: 1px solid var(--skin-line);
  border-radius: 10px;
  color: var(--skin-text);
  background: var(--skin-surface-soft);
  cursor: pointer;
  text-align: left;
  transition: color 150ms ease, border-color 150ms ease, background 150ms ease, transform 80ms ease;
}

.public-site .theme-options > button:nth-child(-n + 2) {
  grid-column: 1 / -1;
}

.public-site .theme-options > button:hover {
  border-color: rgb(var(--skin-accent-rgb) / 0.38);
  background: rgb(var(--skin-accent-rgb) / 0.07);
}

.public-site .theme-options > button.is-active {
  border-color: var(--skin-accent);
  background: var(--skin-accent-soft);
}

.public-site .theme-options > button > span:nth-child(2),
.public-site .theme-options > button strong,
.public-site .theme-options > button small {
  display: block;
  min-width: 0;
}

.public-site .theme-options > button strong {
  overflow: hidden;
  color: var(--skin-heading);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.public-site .theme-options > button small {
  overflow: hidden;
  margin-top: 3px;
  color: var(--skin-muted);
  font-size: 9px;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.public-site .theme-options > button b {
  color: var(--skin-accent);
  opacity: 0;
  font-size: 14px;
}

.public-site .theme-options > button.is-active b {
  opacity: 1;
}

.public-site .theme-option__swatch {
  display: block;
  width: 32px;
  height: 32px;
  border: 1px solid rgba(127, 139, 153, 0.22);
  border-radius: 9px;
  box-shadow: inset 0 0 0 3px rgba(255, 255, 255, 0.22);
}

.public-site .theme-option__swatch.is-smart {
  background: conic-gradient(from 45deg, #60a5fa, #f8fafc, #a78bfa, #111827, #60a5fa);
}

.public-site .theme-option__swatch.is-system {
  background: linear-gradient(135deg, #f8fafc 0 50%, #1f2937 50%);
}

.public-site .theme-option__swatch.is-light {
  background: linear-gradient(135deg, #ffffff, #dbeafe);
}

.public-site .theme-option__swatch.is-dark {
  background: linear-gradient(135deg, #11151b, #334155);
}

.public-site .theme-option__swatch.is-ocean {
  background: linear-gradient(135deg, #cffafe, #0891b2);
}

.public-site .theme-option__swatch.is-forest {
  background: linear-gradient(135deg, #dcfce7, #2f855a);
}

.public-site .theme-option__swatch.is-dusk {
  background: linear-gradient(135deg, #f3e8ff, #7c3aed);
}

html[data-theme] .public-site .admin-link,
html[data-theme] .public-site .refresh,
html[data-theme] .public-site .summary,
html[data-theme] .public-site .overview-stat,
html[data-theme] .public-site .visible-server-count {
  border-color: var(--skin-line);
  color: var(--skin-muted);
  background: var(--skin-surface);
}

html[data-theme] .public-site .summary strong,
html[data-theme] .public-site .server-card__stats span:nth-child(2) strong,
html[data-theme] .public-site .server-card__copy strong,
html[data-theme] .public-site .server-card__owner strong {
  color: var(--skin-accent);
}

html[data-theme] .public-site .showcase-banner {
  border-color: var(--skin-line);
  background: var(--skin-hero-overlay), url("./hero-voxel.png") center right / cover, var(--skin-surface-soft);
  box-shadow: var(--skin-shadow);
}

html[data-theme] .public-site .status-panel,
html[data-theme] .public-site .community-publish-card,
html[data-theme] .public-site .community-feed,
html[data-theme] .public-site .chat-room,
html[data-theme] .public-site .content-card,
html[data-theme] .public-site .shop-item,
html[data-theme] .public-site .profile-card,
html[data-theme] .public-site .site-form,
html[data-theme] .public-site .guide-list article,
html[data-theme] .public-site .profile-binding-panel {
  border-color: var(--skin-line);
  background: var(--skin-surface);
  box-shadow: var(--skin-shadow);
}

html[data-theme] .public-site .server-toolbar {
  background: color-mix(in srgb, var(--skin-surface-solid) 94%, transparent);
}

html[data-theme] .public-site .server-search input,
html[data-theme] .public-site input,
html[data-theme] .public-site select,
html[data-theme] .public-site textarea {
  border-color: var(--skin-line);
  color: var(--skin-text);
  background: var(--skin-surface-solid);
}

html[data-theme] .public-site input::placeholder,
html[data-theme] .public-site textarea::placeholder {
  color: var(--skin-subtle);
}

html[data-theme] .public-site input:focus,
html[data-theme] .public-site select:focus,
html[data-theme] .public-site textarea:focus {
  border-color: rgb(var(--skin-accent-rgb) / 0.62);
  outline-color: rgb(var(--skin-accent-rgb) / 0.14);
}

html[data-theme] .public-site .server-category-filters button,
html[data-theme] .public-site .server-card__copy,
html[data-theme] .public-site .server-card__owner,
html[data-theme] .public-site .community-post-card,
html[data-theme] .public-site .community-identity,
html[data-theme] .public-site .chat-identity,
html[data-theme] .public-site .binding-steps span {
  border-color: var(--skin-line);
  color: var(--skin-muted);
  background: var(--skin-surface-soft);
}

html[data-theme] .public-site .server-category-filters button:hover,
html[data-theme] .public-site .server-card__copy:hover,
html[data-theme] .public-site .server-card__copy.is-copied,
html[data-theme] .public-site .server-card__owner:hover {
  border-color: rgb(var(--skin-accent-rgb) / 0.5);
  color: var(--skin-accent);
  background: var(--skin-accent-soft);
}

html[data-theme] .public-site .server-category-filters button.is-active,
html[data-theme] .public-site .primary-button,
html[data-theme] .public-site .shop-item button:not(:disabled),
html[data-theme] .public-site .binding-steps strong,
html[data-theme] .public-site .community-file-picker__icon {
  border-color: var(--skin-accent);
  color: #fff;
  background: var(--skin-accent);
}

html[data-theme] .public-site .server-card {
  border-color: var(--skin-line);
  color: var(--skin-text);
  background: var(--skin-surface-solid);
  box-shadow: var(--skin-shadow);
}

html[data-theme] .public-site .server-card h3,
html[data-theme] .public-site .server-card__stats strong,
html[data-theme] .public-site .server-card__stats span:first-child strong,
html[data-theme] .public-site .community-identity strong,
html[data-theme] .public-site .community-author__text strong,
html[data-theme] .public-site .chat-identity__text strong {
  color: var(--skin-heading);
}

html[data-theme] .public-site .server-card__network,
html[data-theme] .public-site .server-card__stats span,
html[data-theme] .public-site .usage-text,
html[data-theme] .public-site .server-card__kicker,
html[data-theme] .public-site .community-identity small,
html[data-theme] .public-site .community-author__text small,
html[data-theme] .public-site .chat-identity__text small {
  color: var(--skin-muted);
}

html[data-theme] .public-site .meter {
  background: var(--skin-line);
}

html[data-theme] .public-site .meter span {
  background: linear-gradient(90deg, var(--skin-accent), color-mix(in srgb, var(--skin-accent) 62%, #7dd3fc));
}

html[data-theme] .public-site .status-pill.is-online,
html[data-theme] .public-site .community-auth-badge.is-authenticated,
html[data-theme] .public-site .profile-verified-badge,
html[data-theme] .public-site .community-login-button,
html[data-theme] .public-site #chatLoginButton,
html[data-theme] .public-site .community-empty-state__button {
  color: var(--skin-accent);
  background: var(--skin-accent-soft);
}

html[data-theme] .public-site .category-section__head,
html[data-theme] .public-site .chat-room__header,
html[data-theme] .public-site .chat-room__footer {
  border-color: var(--skin-line);
}

html[data-theme] .public-site .chat-room__header,
html[data-theme] .public-site .chat-room__footer {
  background: var(--skin-surface);
}

html[data-theme] .public-site .chat-message-list,
html[data-theme] .public-site .community-empty-state,
html[data-theme] .public-site .server-empty-state {
  color: var(--skin-muted);
  background: var(--skin-surface-soft);
}

html[data-theme] .public-site .chat-message__bubble {
  border-color: var(--skin-line);
  color: var(--skin-text);
  background: var(--skin-surface-solid);
}

html[data-theme] .public-site .chat-message.is-mine .chat-message__bubble {
  border-color: var(--skin-accent);
  color: #fff;
  background: var(--skin-accent);
}

html[data-theme] .public-site .community-file-picker,
html[data-theme] .public-site .binding-bot-card,
html[data-theme] .public-site .profile-binding-hint {
  border-color: rgb(var(--skin-accent-rgb) / 0.32);
  color: var(--skin-accent);
  background: var(--skin-accent-soft);
}

html[data-theme] .public-site .profile-avatar,
html[data-theme] .public-site .community-identity__avatar,
html[data-theme] .public-site .community-author__avatar,
html[data-theme] .public-site .chat-identity__avatar,
html[data-theme] .public-site .chat-message__avatar,
html[data-theme] .public-site .community-empty-state__icon,
html[data-theme] .public-site .chat-empty-state > span,
html[data-theme] .public-site .server-empty-state > span {
  color: var(--skin-accent);
  background: var(--skin-accent-soft);
}

html[data-theme="dark"] .public-site .category-section__mark {
  color: hsl(var(--category-hue) 76% 72%);
  background: hsl(var(--category-hue) 40% 20%);
}

html[data-theme="dark"] .public-site .server-card__cover,
html[data-theme="dark"] .public-site .community-post-card__image {
  border-color: var(--skin-line);
  background-color: #151b23;
}

html[data-theme="dark"] .public-site .server-card.has-error {
  border-color: #7f3940;
  background: #291b20;
}

html[data-theme="dark"] .public-site .shop-item button:disabled,
html[data-theme="dark"] .public-site .primary-button:disabled,
html[data-theme="dark"] .public-site .chat-composer textarea:disabled,
html[data-theme="dark"] .public-site .community-upload-form input:disabled,
html[data-theme="dark"] .public-site .community-upload-form textarea:disabled,
html[data-theme="dark"] .public-site #profileForm input[readonly] {
  border-color: #303946;
  color: #77818d;
  background: #171c24;
}

html[data-theme="dark"] .public-site .nav-backdrop {
  background: rgba(0, 0, 0, 0.58);
}

@media (max-width: 760px) {
  .public-site .theme-button {
    width: 36px;
    padding: 0;
  }

  .public-site .theme-button > span {
    display: none;
  }
}

@media (max-width: 1080px) and (min-width: 901px) {
  .public-site.theme-menu-open::after {
    left: 250px;
  }
}

@media (max-width: 900px) {
  .public-site.theme-menu-open::after {
    inset: 58px 0 0;
  }
}

@media (max-width: 640px) {
  .public-site.theme-menu-open {
    overflow: hidden;
  }

  .public-site.theme-menu-open::after {
    inset: 58px 0 0;
  }

  .public-site .theme-menu {
    position: fixed;
    top: 66px;
    right: 10px;
    left: 10px;
    width: auto;
    max-height: calc(100dvh - 78px);
  }

  .public-site .theme-options {
    grid-template-columns: 1fr;
  }

  .public-site .theme-options > button:nth-child(-n + 2) {
    grid-column: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .public-site *,
  .public-site *::before,
  .public-site *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

/* Xiang Su multi-server experience */
.public-site .site-bar {
  top: 0;
  width: 268px;
  padding: 14px 12px 12px;
  background: rgba(249, 251, 254, 0.9);
}

.public-site .app-header {
  left: 268px;
  padding-right: 18px;
  padding-left: 18px;
}

.public-site .shell {
  margin-left: 268px;
}

.public-site .app-header__context {
  display: grid;
  min-width: 0;
  gap: 1px;
}

.public-site .app-header__context strong,
.public-site .app-header__context span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.public-site .app-header__context strong {
  color: #252a30;
  font-size: 15px;
  font-weight: 650;
}

.public-site .app-header__context span {
  color: #8a939d;
  font-size: 11px;
  font-weight: 500;
}

.public-site .site-owner-card {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  align-items: center;
  gap: 11px;
  min-height: 72px;
  margin-bottom: 15px;
  padding: 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 15px;
  color: #fff;
  background:
    radial-gradient(circle at 92% 8%, rgba(255, 255, 255, 0.22), transparent 34%),
    linear-gradient(135deg, #1971c2 0%, #228be6 46%, #7048e8 100%);
  box-shadow: 0 14px 30px -18px rgba(25, 113, 194, 0.72);
}

.public-site .site-owner-card__avatar {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.17);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22);
  font-size: 21px;
  font-weight: 800;
}

.public-site .site-owner-card__text,
.public-site .site-owner-card__text strong,
.public-site .site-owner-card__text small {
  display: block;
  min-width: 0;
}

.public-site .site-owner-card__text strong,
.public-site .site-owner-card__text small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.public-site .site-owner-card__text strong {
  font-size: 14px;
  font-weight: 700;
}

.public-site .site-owner-card__text small {
  margin-top: 5px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 10px;
  font-weight: 600;
}

.public-site .site-nav__label {
  padding-left: 10px;
}

.public-site .site-nav button,
.public-site .icon-button,
.public-site .server-card__copy,
.public-site .server-card__owner,
.public-site .server-category-filters button {
  touch-action: manipulation;
}

.public-site button:focus-visible,
.public-site a:focus-visible,
.public-site input:focus-visible,
.public-site select:focus-visible,
.public-site textarea:focus-visible {
  outline: 3px solid rgba(34, 139, 230, 0.2);
  outline-offset: 2px;
}

.public-site .site-nav button:active,
.public-site .icon-button:active,
.public-site .server-card__copy:active,
.public-site .server-category-filters button:active {
  transform: scale(0.98);
}

.public-site .showcase-banner {
  min-height: 156px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.97) 0 42%, rgba(255, 255, 255, 0.8) 65%, rgba(255, 255, 255, 0.36)),
    url("./hero-voxel.png") center right / cover,
    #f7f9fc;
}

.public-site .showcase-banner h1 {
  max-width: 560px;
  font-size: clamp(29px, 3vw, 38px);
}

.public-site .status-panel__tools {
  display: grid;
  grid-template-columns: auto 78px 68px 42px;
  align-items: stretch;
  gap: 8px;
}

.public-site .overview-stat {
  display: grid;
  place-items: center;
  align-content: center;
  min-width: 0;
  min-height: 46px;
  padding: 5px 10px;
  border: 1px solid rgba(206, 212, 218, 0.9);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.8);
  box-shadow: 0 1px 2px rgba(20, 33, 48, 0.04);
}

.public-site .overview-stat span {
  color: #89929d;
  font-size: 9px;
  font-weight: 650;
}

.public-site .overview-stat strong {
  margin-top: 1px;
  color: #343a40;
  font-size: 17px;
  line-height: 1;
}

.public-site .status-panel {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.public-site .status-panel__head {
  align-items: flex-end;
}

.public-site .visible-server-count {
  flex: 0 0 auto;
  min-height: 30px;
  padding: 7px 10px;
  border-radius: 8px;
  color: #5f6a75;
  background: #f1f3f5;
  font-size: 11px;
  font-weight: 650;
}

.public-site .server-toolbar {
  position: sticky;
  z-index: 30;
  top: 70px;
  display: grid;
  grid-template-columns: minmax(230px, 330px) minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  margin: -3px -4px 16px;
  padding: 8px 4px;
  background: rgba(250, 251, 253, 0.94);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.public-site .server-search {
  position: relative;
  display: block;
}

.public-site .server-search svg {
  position: absolute;
  z-index: 1;
  top: 50%;
  left: 12px;
  width: 18px;
  height: 18px;
  fill: none;
  stroke: #8b949e;
  stroke-linecap: round;
  stroke-width: 1.9;
  transform: translateY(-50%);
  pointer-events: none;
}

.public-site .server-search input {
  min-height: 42px;
  padding: 9px 38px 9px 39px;
  border-color: #d6dde4;
  border-radius: 10px;
  background: #fff;
  font-size: 13px;
}

.public-site .server-search input::-webkit-search-cancel-button {
  cursor: pointer;
}

.public-site .server-category-filters {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  padding: 1px 2px 3px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scroll-snap-type: inline proximity;
  scrollbar-width: none;
}

.public-site .server-category-filters::-webkit-scrollbar {
  display: none;
}

.public-site .server-category-filters button {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  gap: 7px;
  min-height: 38px;
  padding: 0 11px;
  border: 1px solid #dce2e8;
  border-radius: 9px;
  color: #68737e;
  background: rgba(255, 255, 255, 0.86);
  cursor: pointer;
  scroll-snap-align: start;
  font-size: 12px;
  font-weight: 600;
  transition: color 150ms ease, border-color 150ms ease, background 150ms ease, transform 80ms ease;
}

.public-site .server-category-filters button:hover {
  border-color: #a5d8ff;
  color: #1971c2;
  background: #e7f5ff;
}

.public-site .server-category-filters button.is-active {
  border-color: #228be6;
  color: #fff;
  background: #228be6;
  box-shadow: 0 8px 18px -13px rgba(34, 139, 230, 0.85);
}

.public-site .server-category-filters small {
  display: grid;
  place-items: center;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border-radius: 999px;
  color: inherit;
  background: rgba(73, 80, 87, 0.08);
  font-size: 9px;
  font-weight: 700;
}

.public-site .server-category-filters button.is-active small {
  background: rgba(255, 255, 255, 0.18);
}

.public-site .server-empty-state {
  display: grid;
  place-items: center;
  min-height: 260px;
  padding: 30px;
  border: 1px dashed #cfd7df;
  border-radius: 13px;
  color: #7b8590;
  background: #f8fafc;
  text-align: center;
}

.public-site .server-empty-state[hidden] {
  display: none;
}

.public-site .server-empty-state > span {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 11px;
  border-radius: 14px;
  color: #1971c2;
  background: #e7f5ff;
  font-size: 26px;
}

.public-site .server-empty-state strong {
  color: #3e4852;
}

.public-site .server-empty-state p {
  margin: 7px 0 0;
}

.public-site .category-section {
  content-visibility: auto;
  contain-intrinsic-size: 150px;
}

.public-site .category-section__head {
  min-height: 48px;
}

.public-site .category-section__title {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 10px;
}

.public-site .category-section__mark {
  display: grid;
  place-items: center;
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  color: hsl(var(--category-hue) 72% 42%);
  background: hsl(var(--category-hue) 78% 95%);
  font-size: 14px;
  font-weight: 750;
}

.public-site .category-section__title h3 {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.public-site .category-section__meta {
  flex: 0 0 auto;
}

.public-site .server-card {
  content-visibility: auto;
  contain-intrinsic-size: 118px;
  contain: layout paint style;
}

.public-site .server-card__network.is-offline::before {
  background: #fa5252;
  box-shadow: 0 0 0 3px rgba(250, 82, 82, 0.1);
}

.public-site .server-card__network.is-stale::before {
  background: #fab005;
  box-shadow: 0 0 0 3px rgba(250, 176, 5, 0.1);
}

.public-site .server-card.has-error {
  border-color: #ffc9c9;
  background: #fffafa;
}

.public-site .server-card__cover.has-image-error {
  color: #e03131;
  background: #fff5f5;
}

.public-site .server-card__cover img {
  display: block;
  opacity: 0;
  transition: opacity 180ms ease;
}

.public-site .server-card__cover.has-image img {
  display: block;
  opacity: 1;
}

.public-site .server-card__copy {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 30px;
  margin-left: auto;
  padding: 0 9px;
  border: 1px solid #d9e5ef;
  border-radius: 7px;
  color: #65717d;
  background: #f7fafc;
  cursor: pointer;
  font-size: 11px;
  font-weight: 600;
  transition: color 150ms ease, border-color 150ms ease, background 150ms ease, transform 80ms ease;
}

.public-site .server-card__copy strong,
.public-site .server-card__stats .server-card__copy strong {
  margin: 0;
  color: #1971c2;
  font-size: 12px;
  font-weight: 700;
}

.public-site .server-card__copy svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.public-site .server-card__copy:hover,
.public-site .server-card__copy.is-copied {
  border-color: #74c0fc;
  color: #1971c2;
  background: #e7f5ff;
}

.public-site .site-toast {
  position: fixed;
  z-index: 2000;
  right: 22px;
  bottom: 22px;
  max-width: min(360px, calc(100vw - 28px));
  padding: 11px 14px;
  border: 1px solid #b2f2bb;
  border-radius: 10px;
  color: #2b8a3e;
  background: rgba(235, 251, 238, 0.96);
  box-shadow: 0 14px 32px -16px rgba(20, 33, 48, 0.38);
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity 160ms ease, transform 160ms ease;
  font-size: 13px;
  font-weight: 650;
}

.public-site .site-toast.is-error {
  border-color: #ffc9c9;
  color: #c92a2a;
  background: rgba(255, 245, 245, 0.97);
}

.public-site .site-toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1080px) {
  .public-site .site-bar {
    width: 250px;
  }

  .public-site .app-header {
    left: 250px;
  }

  .public-site .shell {
    margin-left: 250px;
  }

  .public-site .status-panel__tools {
    grid-template-columns: auto 72px 64px 42px;
  }
}

@media (max-width: 900px) {
  .public-site {
    background-attachment: scroll;
  }

  .public-site .app-header {
    left: 0;
  }

  .public-site .site-bar {
    top: 58px;
    width: min(300px, 86vw);
  }

  .public-site .shell {
    margin-left: 0;
  }

  .public-site .server-toolbar {
    top: 66px;
  }
}

@media (max-width: 720px) {
  .public-site .server-toolbar {
    grid-template-columns: 1fr;
    gap: 7px;
  }

  .public-site .server-category-filters {
    margin-right: -2px;
    margin-left: -2px;
  }
}

@media (max-width: 640px) {
  .public-site .app-header__context {
    display: block;
  }

  .public-site .app-header__context strong {
    font-size: 14px;
  }

  .public-site .app-header__context span {
    display: none;
  }

  .public-site .showcase-banner {
    min-height: 222px;
  }

  .public-site .showcase-banner h1 {
    max-width: 280px;
    font-size: 28px;
  }

  .public-site .status-panel__tools {
    grid-template-columns: minmax(0, 1fr) 62px 58px 42px;
    gap: 6px;
  }

  .public-site .summary {
    gap: 5px;
    min-width: 0;
    padding: 0 10px;
  }

  .public-site .summary__label {
    font-size: 10px;
  }

  .public-site .summary strong {
    font-size: 20px;
  }

  .public-site .summary span:last-child {
    font-size: 11px;
  }

  .public-site .overview-stat {
    min-height: 42px;
    padding: 4px 5px;
  }

  .public-site .overview-stat strong {
    font-size: 15px;
  }

  .public-site .status-panel__head {
    align-items: flex-start;
  }

  .public-site .visible-server-count {
    min-height: 28px;
    padding: 6px 8px;
  }

  .public-site .server-toolbar {
    margin-right: -2px;
    margin-left: -2px;
    padding-right: 2px;
    padding-left: 2px;
  }

  .public-site .server-search input {
    min-height: 44px;
    font-size: 16px;
  }

  .public-site .server-category-filters button {
    min-height: 40px;
  }

  .public-site .category-section {
    contain-intrinsic-size: 190px;
  }

  .public-site .server-card {
    contain-intrinsic-size: 190px;
  }

  .public-site .category-section__mark {
    flex-basis: 32px;
    width: 32px;
    height: 32px;
  }

  .public-site .category-section__meta {
    max-width: 48%;
    text-align: right;
  }

  .public-site .server-card__copy {
    grid-column: 1 / -1;
    justify-content: space-between;
    justify-self: stretch;
    min-height: 38px;
    margin-left: 0;
    padding: 0 10px;
  }

  .public-site .site-toast {
    right: 50%;
    bottom: 14px;
    width: calc(100vw - 24px);
    text-align: center;
    transform: translate(50%, 12px);
  }

  .public-site .site-toast.is-visible {
    transform: translate(50%, 0);
  }
}

@media (max-width: 390px) {
  .public-site .status-panel__tools {
    grid-template-columns: minmax(0, 1fr) 56px 54px 40px;
    gap: 5px;
  }

  .public-site .summary {
    padding: 0 8px;
  }

  .public-site .overview-stat {
    padding-right: 3px;
    padding-left: 3px;
  }
}

/* Minimal three-mode public theme and low-noise status layout */
.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.public-site .theme-button {
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  min-height: 36px;
  padding: 0;
}

.public-site .theme-button .theme-icon {
  display: none;
}

html[data-theme-mode="system"] .public-site .theme-icon--system,
html[data-theme-mode="light"] .public-site .theme-icon--light,
html[data-theme-mode="dark"] .public-site .theme-icon--dark {
  display: block;
}

.public-site .showcase-banner {
  min-height: 118px;
  padding: 19px 22px;
}

.public-site .showcase-banner h1 {
  margin: 0;
  font-size: clamp(25px, 2.4vw, 31px);
}

.public-site .status-panel__tools {
  display: flex;
  align-items: stretch;
  gap: 7px;
}

.public-site .summary,
.public-site .overview-stat {
  min-height: 42px;
}

.public-site .overview-stat {
  min-width: 66px;
  padding: 4px 9px;
}

.public-site .icon-button {
  flex: 0 0 42px;
}

.public-site .status-panel {
  margin-top: 10px;
  padding: 16px;
}

.public-site .server-toolbar[hidden],
.public-site .server-search[hidden],
.public-site .server-category-filters[hidden],
.public-site .status-panel__tools > [hidden] {
  display: none !important;
}

.public-site .server-toolbar.is-search-only {
  grid-template-columns: minmax(230px, 330px);
}

.public-site .server-toolbar.is-filter-only {
  grid-template-columns: minmax(0, 1fr);
}

.public-site .category-stack.has-single-category,
.public-site .category-stack.has-single-category .category-section {
  gap: 0;
}

.public-site .category-stack.has-single-category .category-section__head,
.public-site .category-stack.has-single-category .server-card__kicker {
  display: none !important;
}

.public-site .chat-page-title,
.public-site .chat-room__header {
  display: none !important;
}

@media (max-width: 640px) {
  .public-site .showcase-banner {
    min-height: 146px;
    padding: 16px;
    gap: 12px;
  }

  .public-site .showcase-banner h1 {
    font-size: 25px;
  }

  .public-site .status-panel__tools {
    display: flex;
    gap: 6px;
    margin-top: auto;
  }

  .public-site .summary {
    flex: 1 1 auto;
  }

  .public-site .overview-stat {
    flex: 0 0 58px;
    min-width: 0;
  }

  .public-site .status-panel {
    padding: 10px;
  }
}

/* Xiang Su glass refinement */
html[data-theme] .public-site .app-header,
html[data-theme] .public-site .site-bar {
  background: color-mix(in srgb, var(--skin-surface-solid) 78%, transparent);
  backdrop-filter: blur(22px) saturate(1.18);
  -webkit-backdrop-filter: blur(22px) saturate(1.18);
}

html[data-theme] .public-site .site-owner-card {
  grid-template-columns: 42px minmax(0, 1fr);
  min-height: 64px;
  margin: 0 0 14px;
  padding: 10px;
  border: 1px solid rgb(var(--skin-accent-rgb) / 0.16);
  border-radius: 14px;
  background: color-mix(in srgb, var(--skin-surface-solid) 72%, transparent);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.08), 0 12px 28px -22px rgb(var(--skin-accent-rgb) / 0.5);
  backdrop-filter: blur(16px) saturate(1.15);
  -webkit-backdrop-filter: blur(16px) saturate(1.15);
}

html[data-theme] .public-site .site-owner-card__avatar {
  width: 42px;
  height: 42px;
  border: 1px solid rgb(var(--skin-accent-rgb) / 0.28);
  border-radius: 12px;
  color: #fff;
  background:
    radial-gradient(circle at 28% 20%, rgb(255 255 255 / 0.28), transparent 34%),
    linear-gradient(145deg, var(--skin-accent), color-mix(in srgb, var(--skin-accent) 58%, #7456e8));
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.24), 0 8px 20px -14px rgb(var(--skin-accent-rgb) / 0.9);
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.04em;
}

html[data-theme] .public-site .site-owner-card__text strong {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.public-site .showcase-banner {
  backdrop-filter: blur(18px) saturate(1.12);
  -webkit-backdrop-filter: blur(18px) saturate(1.12);
}

.public-site .status-panel__tools {
  align-items: center;
}

.public-site .status-panel__tools > .summary,
.public-site .status-panel__tools > .overview-stat,
.public-site .status-panel__tools > .icon-button {
  box-sizing: border-box;
  height: 48px;
  min-height: 48px;
  margin: 0;
  border-radius: 12px;
  background: color-mix(in srgb, var(--skin-surface-solid) 72%, transparent);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.1), 0 8px 22px -18px rgb(15 23 42 / 0.48);
  backdrop-filter: blur(14px) saturate(1.12);
  -webkit-backdrop-filter: blur(14px) saturate(1.12);
}

.public-site .status-panel__tools > .summary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 14px;
  line-height: 1;
}

.public-site .status-panel__tools > .summary strong,
.public-site .status-panel__tools > .summary span,
.public-site .status-panel__tools > .overview-stat strong,
.public-site .status-panel__tools > .overview-stat span {
  line-height: 1;
}

.public-site .status-panel__tools > .overview-stat {
  display: grid;
  align-content: center;
  justify-items: center;
  min-width: 68px;
  padding: 6px 9px;
  gap: 4px;
}

.public-site .status-panel__tools > .icon-button {
  flex: 0 0 48px;
  width: 48px;
}

html[data-theme] .public-site .status-panel,
html[data-theme] .public-site .community-publish-card,
html[data-theme] .public-site .community-feed,
html[data-theme] .public-site .chat-room,
html[data-theme] .public-site .content-card,
html[data-theme] .public-site .shop-item,
html[data-theme] .public-site .profile-card,
html[data-theme] .public-site .profile-binding-panel,
html[data-theme] .public-site #profileForm {
  background: color-mix(in srgb, var(--skin-surface-solid) 78%, transparent);
  backdrop-filter: blur(20px) saturate(1.12);
  -webkit-backdrop-filter: blur(20px) saturate(1.12);
}

html[data-theme] .public-site .server-card,
html[data-theme] .public-site .community-post-card {
  background: color-mix(in srgb, var(--skin-surface-solid) 86%, transparent);
}

.public-site .community-page-title {
  align-items: center;
  margin-bottom: 14px;
}

.public-site .community-page-title h1 {
  margin: 0;
  font-size: 30px;
}

.public-site .community-publish-head,
.public-site .community-feed__head {
  align-items: center;
}

.public-site .community-publish-head h2,
.public-site .community-feed__head h2 {
  margin: 0;
  font-size: 19px;
}

.public-site .community-file-picker > span:last-child {
  min-width: 0;
}

.public-site .community-post-card.is-text-only .community-post-card__body {
  display: flex;
  flex-direction: column;
  min-height: 148px;
}

.public-site .community-post-grid {
  align-items: start;
}

.public-site .community-post-card {
  align-self: start;
}

.public-site .community-post-card.is-text-only .community-author {
  margin-top: auto;
}

.public-site .community-post-card__body > .community-author:first-child {
  margin-top: 0;
}

.public-site .form-message:empty {
  display: none;
}

.public-site .chat-settings[hidden],
.public-site .chat-settings__form[hidden] {
  display: none !important;
}

.public-site .chat-settings {
  margin-bottom: 10px;
  overflow: hidden;
  border: 1px solid var(--skin-line);
  border-radius: 12px;
  background: color-mix(in srgb, var(--skin-surface-soft) 82%, transparent);
}

.public-site .chat-settings__toggle {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) 18px;
  align-items: center;
  gap: 9px;
  width: 100%;
  min-height: 42px;
  padding: 0 12px;
  border: 0;
  color: var(--skin-heading);
  background: transparent;
  cursor: pointer;
  text-align: left;
}

.public-site .chat-settings__toggle > span {
  font-size: 13px;
  font-weight: 700;
}

.public-site .chat-settings__toggle > small {
  overflow: hidden;
  color: var(--skin-muted);
  font-size: 11px;
  text-align: right;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.public-site .chat-settings__toggle > b {
  color: var(--skin-subtle);
  font-size: 22px;
  font-weight: 400;
  line-height: 1;
  text-align: center;
  transform: rotate(90deg);
  transition: transform 160ms ease;
}

.public-site .chat-settings__toggle[aria-expanded="true"] > b {
  transform: rotate(-90deg);
}

.public-site .chat-settings__form {
  padding: 12px;
  border-top: 1px solid var(--skin-line);
}

.public-site .chat-settings__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(190px, 0.72fr);
  gap: 10px;
}

.public-site .chat-settings__grid > label:not(.chat-avatar-picker) {
  display: grid;
  gap: 6px;
  color: var(--skin-muted);
  font-size: 11px;
  font-weight: 650;
}

.public-site .chat-settings__grid input[type="text"] {
  width: 100%;
  min-height: 42px;
  padding: 9px 11px;
  border: 1px solid var(--skin-line);
  border-radius: 10px;
  color: var(--skin-text);
  background: color-mix(in srgb, var(--skin-surface-solid) 80%, transparent);
}

.public-site .chat-avatar-picker {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 62px;
  padding: 8px 10px;
  border: 1px solid var(--skin-line);
  border-radius: 10px;
  color: var(--skin-heading);
  background: color-mix(in srgb, var(--skin-surface-solid) 72%, transparent);
  cursor: pointer;
}

.public-site .chat-avatar-picker input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
}

.public-site .chat-avatar-picker__preview {
  display: grid;
  place-items: center;
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  overflow: hidden;
  border: 1px solid rgb(var(--skin-accent-rgb) / 0.2);
  border-radius: 12px;
  color: var(--skin-accent);
  background: var(--skin-accent-soft);
  font-weight: 800;
}

.public-site .chat-avatar-picker__preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.public-site .chat-avatar-picker strong {
  display: block;
  overflow: hidden;
  max-width: 150px;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.public-site .chat-privacy-option {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 10px;
  padding: 9px 11px;
  border: 1px solid var(--skin-line);
  border-radius: 10px;
  background: color-mix(in srgb, var(--skin-surface-solid) 68%, transparent);
  cursor: pointer;
}

.public-site .chat-privacy-option > span strong,
.public-site .chat-privacy-option > span small {
  display: block;
}

.public-site .chat-privacy-option > span strong {
  color: var(--skin-heading);
  font-size: 12px;
}

.public-site .chat-privacy-option > span small {
  margin-top: 2px;
  color: var(--skin-muted);
  font-size: 10px;
}

.public-site .chat-privacy-option input {
  position: absolute;
  opacity: 0;
}

.public-site .chat-privacy-option > i {
  position: relative;
  flex: 0 0 38px;
  width: 38px;
  height: 22px;
  border-radius: 999px;
  background: var(--skin-line-strong);
  transition: background 160ms ease;
}

.public-site .chat-privacy-option > i::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 6px rgb(15 23 42 / 0.24);
  transition: transform 160ms ease;
}

.public-site .chat-privacy-option input:checked + i {
  background: var(--skin-accent);
}

.public-site .chat-privacy-option input:checked + i::after {
  transform: translateX(16px);
}

.public-site .chat-settings__actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 10px;
}

.public-site .chat-settings__actions button {
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid var(--skin-line);
  border-radius: 9px;
  color: var(--skin-text);
  background: var(--skin-surface-soft);
  cursor: pointer;
  font-size: 12px;
  font-weight: 650;
}

.public-site .chat-settings__actions .primary-button {
  border-color: var(--skin-accent);
  color: #fff;
  background: var(--skin-accent);
}

.public-site .chat-settings__actions button:disabled,
.public-site .chat-settings__toggle:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.public-site .chat-message__meta .is-private {
  color: var(--skin-accent);
}

@media (max-width: 640px) {
  .public-site .status-panel__tools > .summary,
  .public-site .status-panel__tools > .overview-stat,
  .public-site .status-panel__tools > .icon-button {
    height: 46px;
    min-height: 46px;
  }

  .public-site .status-panel__tools > .summary {
    min-width: 0;
    padding: 0 9px;
  }

  .public-site .status-panel__tools > .overview-stat {
    flex-basis: 58px;
    min-width: 58px;
    padding: 5px;
  }

  .public-site .status-panel__tools > .icon-button {
    flex-basis: 46px;
    width: 46px;
  }

  .public-site .chat-settings__grid {
    grid-template-columns: 1fr;
  }

  .public-site .chat-settings__actions > button {
    flex: 1 1 0;
  }
}
