/* MuckWater global interface layer (UI tokens + shared components) */
:root {
  --bg: #0a0d0c;
  --bg-soft: #111512;
  --surface: rgba(18, 23, 20, 0.88);
  --surface-solid: #121714;
  --surface-raised: #171d1a;
  --line: rgba(225, 233, 227, 0.12);
  --line-strong: rgba(176, 199, 184, 0.34);
  --text: #edf1ed;
  --text-strong: #fbfcfa;
  --muted: #aab3ad;
  --muted-2: #7f8a83;
  --accent: #8bbf98;
  --accent-strong: #b3d8bd;
  --accent-blue: #94b6bf;
  --warning: #d7aa64;
  --danger: #df8585;
  --success: #8bbf98;
  --shadow: none;
}

html[data-theme="light"] {
  --bg: #f5f6f2;
  --bg-soft: #fbfbf8;
  --surface: rgba(255, 255, 255, 0.88);
  --surface-solid: #ffffff;
  --surface-raised: #f2f4ef;
  --line: rgba(31, 42, 36, 0.13);
  --line-strong: rgba(70, 102, 80, 0.30);
  --text: #1b211d;
  --text-strong: #090d0b;
  --muted: #667069;
  --muted-2: #858d87;
  --accent: #527c5e;
  --accent-strong: #375d43;
  --accent-blue: #5d7f89;
  --warning: #93682c;
  --danger: #a84949;
  --success: #527c5e;
  --shadow: none;
}

*,
*::before,
*::after {
  box-shadow: none !important;
  text-shadow: none !important;
}

body {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.018), transparent 34%),
    linear-gradient(135deg, rgba(139, 191, 152, 0.035), transparent 32%),
    linear-gradient(225deg, rgba(148, 182, 191, 0.035), transparent 34%),
    var(--bg);
}

body::before {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.018), transparent 36%);
}

.background-grid {
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.028) 1px, transparent 1px);
  background-size: 84px 84px;
  opacity: 0.08;
  -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.34), transparent 74%);
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.34), transparent 74%);
}

.navbar {
  background: rgba(9, 12, 11, 0.90);
  border-bottom-color: rgba(225, 233, 227, 0.105);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

.logo,
.app-top-link,
.nav-btn,
.admin-link,
.auth-main-btn,
.auth-sub-btn,
.discord-btn,
.quick-actions button,
.file-picker span,
.forum-action-btn,
.side-link-row,
.app-side-btn {
  font-weight: 720;
}

.logo-mark,
.user-avatar-mini,
.app-avatar {
  border-color: rgba(225, 233, 227, 0.16);
  background:
    linear-gradient(135deg, rgba(139, 191, 152, 0.18), rgba(148, 182, 191, 0.12)),
    rgba(255, 255, 255, 0.035);
}

input,
textarea,
select {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.042);
}

input:focus,
textarea:focus,
select:focus {
  border-color: var(--line-strong);
  outline: 1px solid rgba(176, 199, 184, 0.28);
  outline-offset: 2px;
  background: rgba(255, 255, 255, 0.060);
}

:focus-visible {
  outline: 2px solid rgba(179, 216, 189, 0.62);
  outline-offset: 2px;
}

.floating-theme-toggle {
  position: fixed;
  right: max(18px, env(safe-area-inset-right));
  bottom: calc(72px + env(safe-area-inset-bottom));
  z-index: 80;
  display: inline-flex;
  gap: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.060), rgba(255, 255, 255, 0.024)),
    rgba(12, 17, 15, 0.86);
  padding: 5px;
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

.floating-theme-toggle-btn {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition: background var(--motion-fast) var(--ease), border-color var(--motion-fast) var(--ease), color var(--motion-fast) var(--ease);
}

.floating-theme-toggle-btn:hover,
.floating-theme-toggle-btn.is-active {
  border-color: rgba(139, 191, 152, 0.34);
  background: rgba(139, 191, 152, 0.14);
  color: var(--text-strong);
}

.floating-theme-toggle-btn svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.app-top-link,
.nav-btn,
.admin-link,
.auth-sub-btn,
.discord-btn,
.quick-actions button,
.file-picker span,
.icon-btn,
.user-trigger,
.forum-action-btn,
.reaction-btn,
.view-count-pill,
.post-tool-btn,
.comment-edit-btn,
.server-address-copy,
.side-link-row {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.044);
  color: var(--text);
}

.app-top-link:hover,
.app-top-link.is-active,
.nav-btn:hover,
.admin-link:hover,
.auth-sub-btn:hover,
.quick-actions button:hover,
.file-picker span:hover,
.icon-btn:hover,
.user-trigger:hover,
.forum-action-btn:hover,
.reaction-btn:hover,
.reaction-btn.is-active,
.side-link-row:hover,
.side-link-row.is-active {
  border-color: var(--line-strong);
  background: rgba(139, 191, 152, 0.095);
  color: var(--text-strong);
}

.nav-btn.primary,
.auth-main-btn,
.forum-action-btn:not(.muted),
.server-address-copy {
  border-color: rgba(139, 191, 152, 0.36);
  background: rgba(139, 191, 152, 0.135);
  color: var(--text-strong);
}

.nav-btn.primary:hover,
.auth-main-btn:hover,
.forum-action-btn:not(.muted):hover,
.server-address-copy:hover {
  border-color: rgba(179, 216, 189, 0.48);
  background: rgba(139, 191, 152, 0.18);
}

:is(
  .app-sidebar,
  .app-panel,
  .forum-board,
  .forum-side-section,
  .community-hero,
  .community-command-strip,
  .hub-board-card,
  .notice-board-list,
  .notice-admin-form,
  .hub-inquiry-board .inquiry-list,
  .hub-inquiry-board .inquiry-composer,
  .console-board,
  .console-sidebar .forum-side-section,
  .auth-panel,
  .hero-glass,
  .notification-panel,
  .profile-menu
) {
  border-color: var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.032), rgba(255, 255, 255, 0.012)),
    var(--surface);
}

body.site-community-post .post-detail,
body.site-community-hub .post-detail {
  border-color: transparent;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  overflow: visible;
}

body.site-community-post .post-detail .board-toolbar,
body.site-community-hub .post-detail .board-toolbar,
body.site-community-post .post-detail .post-detail-body,
body.site-community-hub .post-detail .post-detail-body,
body.site-community-post .post-detail .comment-section,
body.site-community-hub .post-detail .comment-section {
  border-color: transparent;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

body.site-community-post .post-detail .post-back-btn,
body.site-community-hub .post-detail .post-back-btn,
body.site-community-post .post-detail .post-tool-btn,
body.site-community-hub .post-detail .post-tool-btn,
body.site-community-post .post-detail .reaction-btn,
body.site-community-hub .post-detail .reaction-btn,
body.site-community-post .post-detail .view-count-pill,
body.site-community-hub .post-detail .view-count-pill {
  border-color: transparent;
  background: transparent;
  box-shadow: none;
}

body.site-community-post .post-detail .post-back-btn:hover,
body.site-community-hub .post-detail .post-back-btn:hover,
body.site-community-post .post-detail .post-tool-btn:hover,
body.site-community-hub .post-detail .post-tool-btn:hover,
body.site-community-post .post-detail .reaction-btn:hover,
body.site-community-hub .post-detail .reaction-btn:hover,
body.site-community-post .post-detail .reaction-btn.is-active,
body.site-community-hub .post-detail .reaction-btn.is-active {
  border-color: color-mix(in srgb, var(--accent) 22%, transparent);
  background: color-mix(in srgb, var(--accent) 7.5%, transparent);
  color: var(--text-strong);
}

.profile-menu,
.notification-panel {
  background: var(--surface-solid);
}

.hero {
  perspective: none;
}

.hero-glass {
  width: min(100%, 900px);
  min-height: 520px;
  border-color: rgba(225, 233, 227, 0.13);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.048), rgba(255, 255, 255, 0.014)),
    rgba(18, 23, 20, 0.78);
  transform: none !important;
  transform-style: flat;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

.hero-glass::before,
.hero-glass::after,
.auth-panel::before,
.auth-panel::after {
  content: none;
}

.hero-content {
  transform: none;
}

.server-status-line,
.server-meta span,
.server-meta a {
  border-color: rgba(225, 233, 227, 0.13);
  background: rgba(255, 255, 255, 0.045);
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

.server-name {
  color: var(--text-strong);
  font-size: clamp(2.35rem, 6vw, 4.6rem);
  font-weight: 780;
}

.big-server-ip {
  width: min(100%, 660px);
  border: 1px solid rgba(225, 233, 227, 0.13);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.038), rgba(255, 255, 255, 0.012)),
    rgba(255, 255, 255, 0.030);
  padding: 16px;
  color: var(--text-strong);
  font-size: clamp(2rem, 7vw, 4.8rem);
  font-weight: 760;
}

.big-server-ip::before {
  content: none;
}

.copy-btn {
  min-height: 48px;
  border-color: rgba(139, 191, 152, 0.34);
  border-radius: var(--radius-sm);
  background: rgba(139, 191, 152, 0.13);
  color: var(--text-strong);
  padding: 0 20px;
}

.copy-btn:hover {
  border-color: rgba(179, 216, 189, 0.48);
  background: rgba(139, 191, 152, 0.18);
}

.auth-overlay {
  background: rgba(7, 9, 8, 0.72);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.auth-tabs,
.auth-card,
.register-step,
.login-card,
.discord-consent,
.already-linked-card {
  border-color: rgba(225, 233, 227, 0.13);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.040);
}

html[data-theme="light"] body {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.50), transparent 38%),
    linear-gradient(135deg, rgba(82, 124, 94, 0.040), transparent 32%),
    linear-gradient(225deg, rgba(93, 127, 137, 0.038), transparent 34%),
    var(--bg);
}

html[data-theme="light"] .navbar {
  background: rgba(255, 255, 255, 0.90);
}

html[data-theme="light"] .background-grid {
  background-image:
    linear-gradient(rgba(31, 42, 36, 0.032) 1px, transparent 1px),
    linear-gradient(90deg, rgba(31, 42, 36, 0.032) 1px, transparent 1px);
  opacity: 0.18;
}

html[data-theme="light"] input,
html[data-theme="light"] textarea,
html[data-theme="light"] select,
html[data-theme="light"] .app-top-link,
html[data-theme="light"] .nav-btn,
html[data-theme="light"] .admin-link,
html[data-theme="light"] .auth-sub-btn,
html[data-theme="light"] .icon-btn,
html[data-theme="light"] .user-trigger,
html[data-theme="light"] .forum-action-btn,
html[data-theme="light"] .side-link-row {
  background: rgba(255, 255, 255, 0.66);
}

@media (max-width: 760px) {
  .hero-glass {
    min-height: 460px;
    padding: 76px 22px 40px;
  }

  .big-server-ip {
    font-size: clamp(2rem, 11vw, 3.8rem);
  }
}

/* Layout discipline and overflow repair */
*,
*::before,
*::after {
  min-width: 0;
}

img,
svg,
canvas,
video,
iframe {
  max-width: 100%;
}

.eyebrow,
.panel-head > span:empty,
.side-title > span:empty {
  display: none;
}

.auth-message:empty,
.app-form-message:empty,
.field-message:empty,
.notice-form-message:empty {
  display: none;
}

.auth-message:not(:empty),
.app-form-message:not(:empty),
.field-message:not(:empty),
.notice-form-message:not(:empty) {
  display: block;
}

.navbar {
  gap: 12px;
  align-items: center;
}

body.site-home:not(.auth-page) .navbar {
  z-index: 70;
}

.logo {
  flex: 0 0 auto;
  gap: 0;
  min-width: 42px;
  width: 42px;
}

.logo-mark {
  display: block;
  width: 42px;
  height: 42px;
  aspect-ratio: 1 / 1;
  border-radius: 0;
  background: #050807;
  object-fit: contain;
}

.app-nav,
.nav-actions {
  position: relative;
  z-index: 1;
  min-width: 0;
  gap: 8px;
  pointer-events: auto;
}

.app-top-links {
  flex: 1 1 auto;
  min-width: 0;
  gap: 8px;
  justify-content: flex-start;
  overflow-x: auto;
  scrollbar-width: none;
}

html[data-nav-align="center"] .app-top-links {
  justify-content: center;
}

html[data-nav-align="right"] .app-top-links {
  justify-content: flex-end;
}

.app-top-links::-webkit-scrollbar {
  display: none;
}

@media (min-width: 761px) {
  html[data-nav-align="center"] .app-nav {
    position: static;
    justify-content: flex-end;
  }

  html[data-nav-align="center"] .app-top-links {
    position: absolute;
    top: 50%;
    left: 50%;
    flex: 0 1 auto;
    width: max-content;
    max-width: min(760px, calc(100vw - 360px));
    margin: 0;
    transform: translate(-50%, -50%);
  }
}

.app-top-link,
.icon-btn,
.user-trigger,
.nav-btn {
  flex: 0 0 auto;
  pointer-events: auto;
}

.app-top-link {
  position: relative;
  min-height: 34px;
  border: 0;
  border-radius: 0;
  background: transparent;
  padding: 0 8px;
  color: color-mix(in srgb, var(--muted) 92%, transparent);
}

.app-top-link::after {
  content: "";
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: 2px;
  height: 2px;
  border-radius: 999px;
  background: var(--accent-strong);
  opacity: 0;
  transform: scaleX(0.65);
  transition: opacity var(--motion-fast) var(--ease), transform var(--motion-fast) var(--ease);
}

.app-top-link:hover,
.app-top-link.is-active {
  border-color: transparent;
  background: transparent;
  color: var(--text-strong);
}

.app-top-link:hover::after,
.app-top-link.is-active::after {
  opacity: 1;
  transform: scaleX(1);
}

html[data-theme="light"] .app-top-link {
  background: transparent;
  color: color-mix(in srgb, var(--text) 74%, transparent);
}

html[data-theme="light"] .app-top-link:hover,
html[data-theme="light"] .app-top-link.is-active {
  background: transparent;
  color: var(--text-strong);
}

.hero {
  min-height: auto;
}

.hero-glass {
  align-items: center;
  padding: clamp(28px, 5vw, 52px);
}

.app-shell,
.forum-shell,
.console-shell {
  padding-bottom: 30px;
}

.app-shell {
  grid-template-columns: minmax(204px, 230px) minmax(0, 1fr);
  gap: 16px;
}

.forum-layout,
.console-layout {
  grid-template-columns: minmax(0, 1fr) minmax(260px, 300px);
}

.community-page-layout {
  grid-template-columns: minmax(0, 1fr) minmax(260px, 300px);
}

.app-grid.two-columns,
.site-account .app-grid.two-columns {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
}

.app-page-head,
.forum-head,
.console-shell .forum-head,
.community-hero,
.board-toolbar,
.console-board-toolbar,
.hub-board-head,
.side-title,
.post-title-row {
  align-items: center;
}

.app-page-head,
.forum-head,
.console-head {
  margin-bottom: 14px;
}

.panel-head,
.side-title {
  margin-bottom: 10px;
}

.app-panel,
.app-sidebar,
.forum-board,
.forum-side-section,
.console-board,
.community-command-strip,
.hub-board-card,
.notice-board-list,
.hub-inquiry-board .inquiry-list {
  overflow: clip;
  overflow-wrap: anywhere;
}

.editor-board {
  overflow: visible;
}

.app-panel > :last-child,
.forum-side-section > :last-child,
.board-toolbar > :last-child,
.console-board-toolbar > :last-child,
.hub-board-head > :last-child {
  margin-bottom: 0;
}

.user-snapshot > div,
.app-user-summary > div {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.community-hero {
  grid-template-columns: 50px minmax(0, 1fr) auto;
  gap: 14px;
  padding: 14px;
}

.community-hero-mark {
  width: 50px;
  height: 50px;
}

.community-head-actions {
  justify-content: flex-end;
}

.community-command-strip {
  display: grid;
  grid-template-columns: minmax(0, 1fr) max-content;
  align-items: center;
}

.community-tabs {
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
}

.community-tabs::-webkit-scrollbar {
  display: none;
}

.sort-select-wrap {
  min-width: 0;
}

.notice-form-grid {
  grid-template-columns: minmax(120px, 150px) minmax(0, 1fr) max-content;
}

.hub-inquiry-board .inquiry-composer {
  grid-template-columns: minmax(120px, 160px) minmax(0, 1fr) auto;
  align-items: start;
}

.hub-inquiry-board .inquiry-composer textarea {
  min-height: 82px;
}

.write-fields {
  grid-template-columns: minmax(150px, 200px) minmax(0, 1fr);
}

.write-actions,
.console-form {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
}

.write-actions .forum-action-btn,
.console-form .auth-main-btn {
  width: auto;
  min-width: 108px;
}

.editor-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  overflow: visible;
}

.editor-toolbar-group,
.editor-toolbar button,
.editor-size-control {
  flex: 0 0 auto;
}

.editor-color-popover,
.editor-link-popover,
.editor-youtube-popover {
  max-width: calc(100vw - 32px);
}

.post-feed-meta,
.post-stat-row,
.post-reaction-bar,
.comment-actions,
.post-detail-actions,
.console-toolbar,
.account-action-row {
  flex-wrap: wrap;
}

.post-title,
.post-summary,
.forum-row-main strong,
.forum-row-main p,
.side-link-row span,
.server-address-copy span,
.notification-item strong,
.notification-item span:last-child {
  overflow-wrap: anywhere;
}

.side-link-row {
  justify-content: flex-start;
}

.server-address-copy,
.forum-action-btn,
.auth-main-btn,
.auth-sub-btn,
.nav-btn {
  max-width: 100%;
}

@media (max-width: 1040px) {
  .app-shell,
  .forum-layout,
  .console-layout,
  .community-page-layout {
    grid-template-columns: 1fr;
  }

  .community-right-rail,
  .forum-sidebar,
  .console-sidebar {
    position: static;
  }
}

@media (max-width: 820px) {
  .community-command-strip,
  .notice-form-grid,
  .hub-inquiry-board .inquiry-composer,
  .write-fields,
  .write-actions,
  .console-form {
    grid-template-columns: 1fr;
  }

  .write-actions .forum-action-btn,
  .console-form .auth-main-btn {
    width: 100%;
  }

  .community-head-actions,
  .console-toolbar {
    width: 100%;
    justify-content: stretch;
  }
}

@media (max-width: 760px) {
  .navbar {
    gap: 10px;
  }

  .app-top-links {
    gap: 6px;
  }

  .community-hero {
    grid-template-columns: minmax(0, 1fr);
  }

  .community-hero-mark {
    display: none;
  }
}

/* Server address feature: focused card without shadows */
.hero {
  display: grid;
  place-items: center;
  min-height: 100dvh;
  padding: var(--nav-height, 72px) 24px;
  perspective: 1100px;
}

.hero-glass {
  width: min(100%, 1020px);
  min-height: auto;
  border-color: rgba(198, 233, 221, 0.16);
  border-radius: 20px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.040), rgba(255, 255, 255, 0.012)),
    linear-gradient(135deg, rgba(139, 191, 152, 0.075), rgba(148, 182, 191, 0.045) 52%, rgba(215, 170, 100, 0.030)),
    rgba(10, 17, 15, 0.86);
  padding: 42px 52px 48px;
  transform:
    translate3d(var(--glass-shift-x, 0px), var(--glass-shift-y, 0px), 0)
    rotateX(var(--glass-tilt-y, 0deg))
    rotateY(var(--glass-tilt-x, 0deg)) !important;
  transition: transform var(--motion) var(--ease), border-color var(--motion) var(--ease), background var(--motion) var(--ease);
  will-change: auto;
}

.glass-pointer-enabled .hero-glass {
  will-change: transform;
}

.hero-content {
  display: grid;
  justify-items: center;
  width: 100%;
  max-width: 840px;
  margin: 0 auto;
  gap: 18px;
}

.server-status-fixed {
  position: static !important;
  display: flex;
  justify-content: center;
  margin: 0;
}

.server-status-line {
  min-height: 34px;
  border-color: rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.048);
  padding: 0 14px;
}

.server-name {
  margin: 0 0 4px;
  color: var(--text-strong);
  font-size: 2.7rem;
  font-weight: 860;
  line-height: 1.08;
}

.big-server-ip {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  justify-content: center;
  width: min(100%, 780px);
  min-height: 136px;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(198, 233, 221, 0.25);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.105), rgba(255, 255, 255, 0.028)),
    linear-gradient(135deg, rgba(139, 191, 152, 0.18), rgba(148, 182, 191, 0.12) 50%, rgba(215, 170, 100, 0.060)),
    rgba(14, 25, 22, 0.78);
  padding: 26px 34px 30px;
  color: rgba(247, 255, 251, 0.98);
  font-family: "Space Grotesk", Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 4.25rem;
  font-weight: 820;
  line-height: 1;
  letter-spacing: 0;
  text-align: center;
  white-space: nowrap;
  word-break: keep-all;
  overflow-wrap: normal;
}

.big-server-ip::before {
  content: "";
  position: absolute;
  inset: 1px;
  z-index: -1;
  border-radius: 17px;
  background:
    linear-gradient(115deg, rgba(255, 255, 255, 0.18), transparent 23%, transparent 72%, rgba(255, 255, 255, 0.075)),
    linear-gradient(90deg, rgba(139, 191, 152, 0.16), transparent 34%, rgba(148, 182, 191, 0.13));
  pointer-events: none;
}

.big-server-ip::after {
  content: "";
  position: absolute;
  left: 32px;
  right: 32px;
  bottom: 18px;
  z-index: -1;
  height: 1px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgba(179, 216, 189, 0.56), rgba(148, 182, 191, 0.46), transparent);
  pointer-events: none;
}

.copy-btn {
  min-width: 172px;
  min-height: 52px;
  margin-top: 8px;
  border-color: rgba(198, 233, 221, 0.24);
  border-radius: 999px;
  background:
    linear-gradient(135deg, rgba(139, 191, 152, 0.18), rgba(148, 182, 191, 0.10)),
    rgba(255, 255, 255, 0.050);
  color: var(--text-strong);
}

.copy-btn:hover,
.copy-btn.copied {
  border-color: rgba(179, 216, 189, 0.50);
  background:
    linear-gradient(135deg, rgba(139, 191, 152, 0.25), rgba(148, 182, 191, 0.15)),
    rgba(255, 255, 255, 0.065);
}

.server-meta {
  justify-content: center;
  margin-top: 8px;
}

.server-meta span,
.server-meta a {
  min-height: 36px;
  border-color: rgba(255, 255, 255, 0.11);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.040);
  padding: 0 14px;
}

@media (max-width: 920px) {
  .hero-glass {
    padding: 36px 32px 42px;
  }

  .server-name {
    font-size: 2.35rem;
  }

  .big-server-ip {
    min-height: 118px;
    font-size: 3.4rem;
    padding-right: 26px;
    padding-left: 26px;
  }
}

@media (max-width: 640px) {
  .hero {
    padding-right: 16px;
    padding-left: 16px;
  }

  .hero-glass {
    padding: 28px 18px 34px;
    border-radius: 16px;
  }

  .hero-content {
    gap: 14px;
  }

  .server-name {
    font-size: 2rem;
  }

  .big-server-ip {
    min-height: 94px;
    border-radius: 14px;
    font-size: 2.55rem;
    padding: 20px 18px 24px;
  }

  .big-server-ip::before {
    border-radius: 13px;
  }

  .big-server-ip::after {
    left: 18px;
    right: 18px;
    bottom: 13px;
  }

  .copy-btn {
    width: 100%;
    max-width: 260px;
  }
}

@media (max-width: 420px) {
  .server-name {
    font-size: 1.78rem;
  }

  .big-server-ip {
    min-height: 82px;
    font-size: 2rem;
  }
}

/* Restore the betA1.3 server address interior while keeping the current card shell */
body.site-home .hero {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: calc(var(--nav-height) + 42px) var(--page-pad) 96px;
  perspective: 1100px;
}

body.site-home .hero-glass {
  --glass-shift-x: 0px;
  --glass-shift-y: 0px;
  --glass-tilt-x: 0deg;
  --glass-tilt-y: 0deg;
  width: min(100%, 860px);
  min-height: 500px;
  display: grid;
  align-items: center;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(198, 233, 221, 0.20);
  border-radius: 28px;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--accent) 7.5%, transparent), rgba(104, 199, 238, 0.055) 46%, rgba(241, 186, 99, 0.035)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.044) 44%, rgba(255, 255, 255, 0.028)),
    rgba(6, 17, 20, 0.74);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.38),
    inset 0 -1px 0 rgba(255, 255, 255, 0.07),
    inset 0 -28px 76px rgba(0, 0, 0, 0.22),
    0 22px 58px rgba(0, 0, 0, 0.28) !important;
  padding: clamp(30px, 5vw, 58px);
  contain: paint;
  backface-visibility: hidden;
  transform:
    translate3d(var(--glass-shift-x), var(--glass-shift-y), 0)
    rotateX(var(--glass-tilt-y))
    rotateY(var(--glass-tilt-x)) !important;
  transform-origin: center;
  transform-style: preserve-3d;
  transition: border-color var(--motion-fast) var(--ease), box-shadow var(--motion) var(--ease), transform var(--motion-fast) var(--ease);
  will-change: auto;
}

body.site-home.glass-pointer-enabled .hero-glass {
  will-change: transform;
}

body.site-home .hero-glass::before,
body.site-home .hero-glass::after {
  content: "" !important;
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: none;
  box-shadow: none !important;
  opacity: 0;
  pointer-events: none;
}

body.site-home .hero-content {
  display: flex;
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 980px;
  flex-direction: column;
  align-items: center;
  margin: 0 auto;
  text-align: center;
  transform: translateZ(32px) !important;
}

body.site-home .server-status-fixed {
  position: absolute !important;
  top: 30px;
  left: 50%;
  right: auto;
  z-index: 2;
  display: block;
  margin: 0;
  transform: translateX(-50%);
}

body.site-home .server-status-line {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 40px;
  border: 1px solid rgba(198, 233, 221, 0.16);
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.04)),
    rgba(5, 17, 20, 0.46);
  box-shadow: none !important;
  padding: 0 16px;
  color: rgba(225, 241, 236, 0.82);
  font-size: 0.88rem;
  font-weight: 700;
}

body.site-home .server-name {
  margin: 0 0 16px;
  color: rgba(230, 246, 240, 0.80);
  font-size: clamp(2.4rem, 5.2vw, 3rem);
  line-height: 0.98;
  font-weight: 780;
  letter-spacing: 0;
  text-shadow: 0 18px 46px rgba(0, 0, 0, 0.28) !important;
}

body.site-home .big-server-ip {
  display: block;
  width: auto;
  max-width: 100%;
  min-height: 0;
  margin: 0 0 30px;
  position: relative;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: none;
  box-shadow: none !important;
  padding: 0;
  color: rgba(247, 255, 251, 0.98);
  font-family: "Space Grotesk", Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: clamp(3.2rem, 8.4vw, 6rem);
  font-weight: 760;
  line-height: 1;
  letter-spacing: 0;
  text-align: center;
  white-space: normal;
  overflow-wrap: anywhere;
  text-shadow:
    0 1px 0 rgba(255, 255, 255, 0.10),
    0 18px 52px color-mix(in srgb, var(--accent) 18%, transparent),
    0 26px 82px rgba(104, 199, 238, 0.13),
    0 28px 86px rgba(0, 0, 0, 0.34) !important;
}

body.site-home .big-server-ip::before {
  content: none;
}

body.site-home .big-server-ip::after {
  content: none;
}

body.site-home .copy-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  gap: 10px;
  width: auto;
  min-width: 158px;
  min-height: 56px;
  margin-top: 0;
  border: 1px solid rgba(143, 240, 170, 0.38);
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.055)),
    linear-gradient(135deg, color-mix(in srgb, var(--accent) 30%, transparent), rgba(104, 199, 238, 0.20)),
    rgba(6, 17, 20, 0.32);
  box-shadow: none !important;
  padding: 0 26px;
  color: rgba(248, 255, 251, 0.96);
  font-size: 1rem;
  font-weight: 800;
  transition: border-color var(--motion-fast) var(--ease), background var(--motion-fast) var(--ease), color var(--motion-fast) var(--ease);
}

body.site-home .copy-btn:hover {
  border-color: rgba(202, 244, 229, 0.48);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0.065)),
    linear-gradient(135deg, rgba(116, 227, 151, 0.34), rgba(104, 199, 238, 0.24)),
    rgba(6, 17, 20, 0.36);
}

body.site-home .copy-btn.copied {
  border-color: color-mix(in srgb, var(--accent) 58%, transparent);
}

body.site-home .server-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  max-width: 690px;
  justify-content: center;
  margin-top: 32px;
  font-size: 0.94rem;
  font-weight: 650;
}

body.site-home .server-meta span,
body.site-home .server-meta a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  border: 1px solid rgba(198, 233, 221, 0.13);
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.105), rgba(255, 255, 255, 0.035)),
    rgba(6, 19, 22, 0.42);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18) !important;
  padding: 0 12px;
  color: rgba(220, 238, 232, 0.76);
}

body.site-home .server-meta strong {
  color: rgba(218, 255, 229, 0.94);
}

html[data-theme="light"] .floating-theme-toggle {
  border-color: rgba(31, 42, 36, 0.13);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(255, 255, 255, 0.58)),
    rgba(255, 255, 255, 0.82);
}

html[data-theme="light"] body.site-home .hero-glass {
  border-color: rgba(31, 42, 36, 0.13);
  background:
    linear-gradient(135deg, rgba(82, 124, 94, 0.075), rgba(93, 127, 137, 0.050) 46%, rgba(147, 104, 44, 0.035)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.70) 44%, rgba(255, 255, 255, 0.58)),
    rgba(246, 248, 243, 0.88);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.90),
    inset 0 -1px 0 rgba(31, 42, 36, 0.05),
    0 22px 58px rgba(31, 42, 36, 0.10) !important;
}

html[data-theme="light"] body.site-home .server-status-line {
  border-color: rgba(31, 42, 36, 0.13);
  background: rgba(255, 255, 255, 0.64);
  color: #5f6b64;
}

html[data-theme="light"] body.site-home .server-name {
  color: #56645c;
  text-shadow: none !important;
}

html[data-theme="light"] body.site-home .big-server-ip {
  color: #0f1712;
  text-shadow: none !important;
}

html[data-theme="light"] body.site-home .copy-btn {
  border-color: rgba(82, 124, 94, 0.28);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.76), rgba(255, 255, 255, 0.42)),
    rgba(82, 124, 94, 0.10);
  color: #142019;
}

html[data-theme="light"] body.site-home .copy-btn:hover,
html[data-theme="light"] body.site-home .copy-btn.copied {
  border-color: rgba(82, 124, 94, 0.42);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(255, 255, 255, 0.50)),
    rgba(82, 124, 94, 0.14);
}

html[data-theme="light"] body.site-home .server-meta span,
html[data-theme="light"] body.site-home .server-meta a {
  border-color: rgba(31, 42, 36, 0.12);
  background: rgba(255, 255, 255, 0.62);
  color: #667069;
}

html[data-theme="light"] body.site-home .server-meta strong {
  color: #31523c;
}

@media (max-width: 860px), (prefers-reduced-motion: reduce) {
  body.site-home .hero-glass {
    transform: none !important;
    will-change: auto;
  }
}

@media (max-width: 760px) {
  body.site-home .hero-glass {
    min-height: 460px;
    padding: 76px 22px 40px;
  }

  body.site-home .big-server-ip {
    font-size: clamp(2.7rem, 14vw, 4.6rem);
  }

  body.site-home .copy-btn {
    width: 100%;
    max-width: 280px;
  }

  body.site-home .server-meta {
    margin-top: 24px;
  }

  body.site-home .server-meta span,
  body.site-home .server-meta a {
    width: 100%;
  }
}

/* betA1.3 full server card restore */
body.site-home:not(.auth-page) .hero {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: calc(var(--nav-height) + 42px) var(--page-pad) 96px;
  perspective: 1100px;
}

body.site-home:not(.auth-page) .hero-glass {
  --glass-shift-x: 0px;
  --glass-shift-y: 0px;
  --glass-tilt-x: 0deg;
  --glass-tilt-y: 0deg;
  width: min(100%, 860px);
  min-height: 500px;
  display: grid;
  align-items: center;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 28px;
  background:
    radial-gradient(circle at 18% 18%, rgba(143, 240, 170, 0.17), transparent 30%),
    radial-gradient(circle at 84% 16%, rgba(104, 199, 238, 0.16), transparent 28%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0.035) 58%),
    var(--surface);
  box-shadow: var(--shadow) !important;
  padding: clamp(30px, 5vw, 58px);
  contain: paint;
  backface-visibility: hidden;
  -webkit-backdrop-filter: blur(12px) saturate(128%);
  backdrop-filter: blur(12px) saturate(128%);
  transform:
    translate3d(var(--glass-shift-x), var(--glass-shift-y), 0)
    rotateX(var(--glass-tilt-y))
    rotateY(var(--glass-tilt-x)) !important;
  transform-origin: center;
  transform-style: preserve-3d;
  transition: transform var(--motion-fast) var(--ease), border-color var(--motion-fast) var(--ease);
  will-change: auto;
}

.glass-pointer-enabled body.site-home:not(.auth-page) .hero-glass {
  will-change: transform;
}

body.site-home:not(.auth-page) .hero-glass::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    radial-gradient(ellipse at 50% -10%, rgba(255, 255, 255, 0.34), transparent 42%),
    radial-gradient(ellipse at 0% 50%, rgba(255, 255, 255, 0.12), transparent 34%),
    radial-gradient(ellipse at 100% 50%, rgba(255, 255, 255, 0.10), transparent 34%),
    linear-gradient(115deg, rgba(255, 255, 255, 0.22), transparent 26%),
    linear-gradient(180deg, transparent 52%, rgba(0, 0, 0, 0.24));
  box-shadow: none !important;
  opacity: 1;
  pointer-events: none;
}

body.site-home:not(.auth-page) .hero-glass::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(255, 255, 255, 0.32), transparent 30%),
    linear-gradient(90deg, rgba(255, 255, 255, 0.22), transparent 10%, transparent 90%, rgba(255, 255, 255, 0.20)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.18), transparent 18%, transparent 78%, rgba(0, 0, 0, 0.22));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.55),
    inset 0 -22px 46px rgba(0, 0, 0, 0.22),
    inset 18px 0 42px rgba(255, 255, 255, 0.08),
    inset -18px 0 42px rgba(255, 255, 255, 0.08) !important;
  opacity: 0.76;
  pointer-events: none;
}

body.site-home:not(.auth-page) .hero-content {
  position: relative;
  z-index: 1;
  display: block;
  width: auto;
  max-width: none;
  margin: 0;
  text-align: left;
  transform: translateZ(32px) !important;
}

body.site-home:not(.auth-page) .server-status-fixed {
  position: absolute !important;
  top: 18px;
  right: 18px;
  left: auto;
  z-index: 2;
  display: block;
  margin: 0;
  transform: none;
}

body.site-home:not(.auth-page) .server-status-line {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 9px;
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(7, 16, 20, 0.54);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18) !important;
  padding: 0 13px;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 700;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

body.site-home:not(.auth-page) .server-name {
  margin: 0;
  color: var(--text-strong);
  font-size: clamp(2.2rem, 7vw, 5rem);
  line-height: 0.98;
  font-weight: 900;
  letter-spacing: 0;
  text-shadow: 0 12px 34px rgba(0, 0, 0, 0.34) !important;
}

body.site-home:not(.auth-page) .big-server-ip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  width: min(100%, 640px);
  max-width: none;
  min-height: 0;
  margin: 28px 0 20px;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.10), rgba(255, 255, 255, 0.035)),
    rgba(0, 0, 0, 0.28);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 16px 46px rgba(0, 0, 0, 0.22) !important;
  padding: 14px;
  color: var(--accent-strong);
  font-family: var(--font);
  font-size: clamp(1.2rem, 4vw, 2.35rem);
  font-weight: 900;
  line-height: 1.5;
  letter-spacing: 0;
  text-align: left;
  white-space: normal;
  overflow-wrap: anywhere;
  text-shadow: none !important;
}

body.site-home:not(.auth-page) .big-server-ip::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(143, 240, 170, 0.10), transparent 48%, rgba(104, 199, 238, 0.09));
  pointer-events: none;
}

body.site-home:not(.auth-page) .big-server-ip::after {
  content: none;
}

body.site-home:not(.auth-page) .copy-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  position: relative;
  gap: 0;
  width: 48px;
  min-width: 0;
  height: 48px;
  min-height: 0;
  margin-top: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.10) !important;
  padding: 0;
  color: var(--text);
  font-size: 0;
  font-weight: 800;
  transition: border-color var(--motion-fast) var(--ease), background var(--motion-fast) var(--ease), color var(--motion-fast) var(--ease);
}

body.site-home:not(.auth-page) .copy-btn:hover {
  border-color: var(--line-strong);
  background: color-mix(in srgb, var(--accent) 10%, transparent);
}

body.site-home:not(.auth-page) .copy-btn svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
}

body.site-home:not(.auth-page) .copy-btn span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

body.site-home:not(.auth-page) .copy-btn.copied {
  border-color: color-mix(in srgb, var(--accent) 70%, transparent);
  color: var(--accent-strong);
}

body.site-home:not(.auth-page) .server-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 10px;
  max-width: 690px;
  margin-top: 0;
  font-size: 1rem;
  font-weight: 400;
}

body.site-home:not(.auth-page) .server-meta span,
body.site-home:not(.auth-page) .server-meta a {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.065);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07) !important;
  padding: 0 12px;
  color: var(--muted);
  font-size: 0.92rem;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

body.site-home:not(.auth-page) .server-meta strong,
body.site-home:not(.auth-page) .server-meta a {
  color: var(--text-strong);
}

body.site-home:not(.auth-page) .server-meta span > a {
  display: inline;
  width: auto;
  min-height: auto;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none !important;
  padding: 0;
  color: rgba(149, 221, 242, 0.96);
}

body.site-home:not(.auth-page) .server-meta span > a:hover {
  color: var(--text-strong);
  text-decoration: underline;
  text-underline-offset: 4px;
}

html[data-theme="light"] body.site-home:not(.auth-page) .hero-glass {
  border-color: var(--line);
  background:
    radial-gradient(circle at 18% 18%, rgba(82, 124, 94, 0.12), transparent 30%),
    radial-gradient(circle at 84% 16%, rgba(93, 127, 137, 0.11), transparent 28%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.78), rgba(255, 255, 255, 0.40) 58%),
    var(--surface);
  box-shadow: var(--shadow) !important;
}

html[data-theme="light"] body.site-home:not(.auth-page) .server-status-line {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.64);
  color: var(--muted);
}

html[data-theme="light"] body.site-home:not(.auth-page) .server-name {
  color: var(--text-strong);
  text-shadow: none !important;
}

html[data-theme="light"] body.site-home:not(.auth-page) .big-server-ip {
  border-color: var(--line-strong);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.78), rgba(255, 255, 255, 0.34)),
    rgba(82, 124, 94, 0.08);
  color: var(--accent-strong);
}

html[data-theme="light"] body.site-home:not(.auth-page) .copy-btn {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.60);
  color: var(--text);
}

html[data-theme="light"] body.site-home:not(.auth-page) .server-meta span,
html[data-theme="light"] body.site-home:not(.auth-page) .server-meta a {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.62);
  color: var(--muted);
}

html[data-theme="light"] body.site-home:not(.auth-page) .server-meta strong,
html[data-theme="light"] body.site-home:not(.auth-page) .server-meta span > a {
  color: var(--accent-strong);
}

@media (max-width: 760px) {
  body.site-home:not(.auth-page) .hero {
    align-items: start;
    padding-top: 150px;
    padding-bottom: 92px;
  }

  body.site-home:not(.auth-page) .hero-glass {
    width: 100%;
    min-height: 430px;
    padding: 28px 18px;
  }

  body.site-home:not(.auth-page) .server-status-fixed {
    position: static !important;
    margin-bottom: 24px;
    transform: none;
  }

  body.site-home:not(.auth-page) .big-server-ip {
    align-items: stretch;
    flex-direction: column;
  }

  body.site-home:not(.auth-page) .copy-btn {
    width: 100%;
    max-width: none;
  }

  body.site-home:not(.auth-page) .server-meta {
    flex-direction: column;
  }

  body.site-home:not(.auth-page) .server-meta span,
  body.site-home:not(.auth-page) .server-meta a {
    width: 100%;
  }
}

@media (max-width: 860px), (prefers-reduced-motion: reduce) {
  body.site-home:not(.auth-page) .hero-glass {
    transform: none !important;
    will-change: auto;
  }
}

/* Community feed: keep the main list attached to the right rail. */
body.site-community-hub .community-shell {
  width: min(100%, 1240px);
}

body.site-community-hub .community-page-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px !important;
  gap: 18px;
  align-items: start;
}

body.site-community-hub .community-left-rail {
  display: none;
}

body.site-community-hub .community-main-column {
  grid-column: 1;
  justify-self: stretch;
  width: 100%;
  max-width: none;
  transform: none;
}

body.site-community-hub .community-right-rail {
  grid-column: 2;
  justify-self: stretch;
  width: 100%;
}

html[data-nav-align="center"] body.site-community-hub:not(.is-community-post-detail) .community-page-layout {
  grid-template-columns: minmax(0, 1fr) 320px !important;
  justify-content: stretch;
}

html[data-nav-align="center"] body.site-community-hub:not(.is-community-post-detail) .community-main-column,
html[data-nav-align="center"] body.site-community-hub:not(.is-community-post-detail) .hub-channel,
html[data-nav-align="center"] body.site-community-hub:not(.is-community-post-detail) .hub-board-head,
html[data-nav-align="center"] body.site-community-hub:not(.is-community-post-detail) .community-board.hub-board-card {
  justify-self: stretch;
  width: 100%;
  max-width: none;
}

html[data-nav-align="center"] body.site-community-hub:not(.is-community-post-detail) .community-main-column {
  transform: none;
}

html[data-nav-align="center"] body.site-community-hub.is-community-post-detail .community-main-column {
  transform: none;
}

@media (max-width: 1180px) {
  body.site-community-hub .community-page-layout {
    grid-template-columns: minmax(0, 1fr) minmax(260px, 300px) !important;
  }

  body.site-community-hub .community-left-rail {
    display: none;
  }

  body.site-community-hub .community-main-column {
    grid-column: 1;
    justify-self: stretch;
    max-width: none;
    transform: none;
  }

  body.site-community-hub .community-right-rail {
    grid-column: 2;
    justify-self: stretch;
    width: 100%;
  }
}

@media (max-width: 1020px) {
  body.site-community-hub .community-page-layout {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  body.site-community-hub .community-main-column,
  body.site-community-hub .community-right-rail {
    grid-column: 1;
  }
}

/* Performance: keep hover/focus transitions on compositor-friendly properties. */
body.site-home .nav-btn,
body.site-home .copy-btn,
body.site-home .server-meta a {
  transition: transform var(--motion-fast) var(--ease), opacity var(--motion-fast) var(--ease) !important;
}

body.site-home .nav-btn:hover,
body.site-home .copy-btn:hover,
body.site-home .server-meta a:hover {
  transform: translateY(-1px);
}

body.site-home .hero-glass {
  transition: transform var(--motion) var(--ease) !important;
}

@media (prefers-reduced-motion: reduce) {
  body.site-home .nav-btn,
  body.site-home .copy-btn,
  body.site-home .server-meta a,
  body.site-home .hero-glass {
    transition: none !important;
    transform: none !important;
  }
}

/* Shared select/list reset and skin */
:where(.site-home, .site-app) select {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(45deg, transparent 50%, currentColor 50%) calc(100% - 17px) 50% / 6px 6px no-repeat,
    linear-gradient(135deg, currentColor 50%, transparent 50%) calc(100% - 12px) 50% / 6px 6px no-repeat,
    linear-gradient(180deg, rgba(255, 255, 255, 0.052), rgba(255, 255, 255, 0.018)),
    rgba(255, 255, 255, 0.044);
  color: var(--text);
  padding: 0 38px 0 14px;
  cursor: pointer;
  font-weight: 850;
  line-height: 1;
  text-align: left;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.065),
    0 1px 0 rgba(0, 0, 0, 0.16);
  transition:
    transform var(--motion-fast) var(--ease),
    border-color var(--motion-fast) var(--ease),
    background-color var(--motion-fast) var(--ease),
    box-shadow var(--motion-fast) var(--ease),
    color var(--motion-fast) var(--ease);
}

:where(.site-home, .site-app) select:hover {
  border-color: var(--line-strong);
  background-color: rgba(139, 191, 152, 0.095);
  color: var(--text-strong);
  transform: translateY(-1px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 8px 18px rgba(0, 0, 0, 0.16);
}

:where(.site-home, .site-app) select:focus,
:where(.site-home, .site-app) select:focus-visible {
  border-color: var(--line-strong);
  background-color: rgba(139, 191, 152, 0.12);
  color: var(--text-strong);
  outline: none;
  transform: translateY(-1px);
  box-shadow:
    0 0 0 3px color-mix(in srgb, var(--accent) 13%, transparent),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

:where(.site-home, .site-app) select:disabled {
  cursor: not-allowed;
  opacity: 0.6;
}

:where(.site-home, .site-app) select option {
  background: var(--surface-solid);
  color: var(--text);
}

:where(.site-home, .site-app) select option:checked {
  background: var(--accent);
  color: #07120d;
}

html[data-theme="light"] :where(.site-home, .site-app) select {
  border-color: rgba(35, 62, 52, 0.16);
  background:
    linear-gradient(45deg, transparent 50%, currentColor 50%) calc(100% - 17px) 50% / 6px 6px no-repeat,
    linear-gradient(135deg, currentColor 50%, transparent 50%) calc(100% - 12px) 50% / 6px 6px no-repeat,
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(244, 248, 245, 0.88)),
    rgba(255, 255, 255, 0.78);
}

.site-account .compact-form select,
.site-account .account-flow select,
.site-community .forum-composer select,
body.site-community-hub .friend-add-form select {
  padding-right: 38px;
}

.site-community .sort-select-wrap select {
  padding-right: 32px;
}

:where(.site-home, .site-app) select.mw-native-select {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  min-width: 0 !important;
  min-height: 0 !important;
  margin: 0 !important;
  border: 0 !important;
  padding: 0 !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

:where(.site-home, .site-app) .mw-select {
  position: relative;
  display: block;
  width: 100%;
  min-width: 0;
}

:where(.site-home, .site-app) .mw-select-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.052), rgba(255, 255, 255, 0.018)),
    rgba(255, 255, 255, 0.044);
  padding: 0 12px 0 14px;
  color: var(--text);
  font: inherit;
  font-weight: 850;
  line-height: 1;
  cursor: pointer;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.065),
    0 1px 0 rgba(0, 0, 0, 0.16);
  transition:
    transform var(--motion-fast) var(--ease),
    border-color var(--motion-fast) var(--ease),
    background-color var(--motion-fast) var(--ease),
    box-shadow var(--motion-fast) var(--ease),
    color var(--motion-fast) var(--ease);
}

:where(.site-home, .site-app) .mw-select-trigger::after {
  content: "";
  width: 8px;
  height: 8px;
  margin-left: auto;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  opacity: 0.72;
  transform: translateY(-2px) rotate(45deg);
  transition: transform var(--motion-fast) var(--ease), opacity var(--motion-fast) var(--ease);
}

:where(.site-home, .site-app) .mw-select-label {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

:where(.site-home, .site-app) .mw-select-trigger:hover,
:where(.site-home, .site-app) .mw-select.is-open .mw-select-trigger,
:where(.site-home, .site-app) .mw-select-trigger:focus-visible {
  border-color: var(--line-strong);
  background-color: rgba(139, 191, 152, 0.095);
  color: var(--text-strong);
  outline: none;
  transform: translateY(-1px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 8px 18px rgba(0, 0, 0, 0.16);
}

:where(.site-home, .site-app) .mw-select.is-open .mw-select-trigger {
  background-color: rgba(139, 191, 152, 0.12);
  box-shadow:
    0 0 0 3px color-mix(in srgb, var(--accent) 13%, transparent),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

:where(.site-home, .site-app) .mw-select.is-open .mw-select-trigger::after {
  opacity: 1;
  transform: translateY(2px) rotate(225deg);
}

:where(.site-home, .site-app) .mw-select.is-disabled {
  opacity: 0.6;
}

:where(.site-home, .site-app) .mw-select.is-disabled .mw-select-trigger {
  cursor: not-allowed;
  transform: none;
}

:where(.site-home, .site-app) .mw-select-menu {
  position: fixed;
  z-index: 5000;
  display: grid;
  width: var(--mw-select-menu-width, auto);
  min-width: var(--mw-select-menu-min-width, 160px);
  max-height: min(268px, calc(100vh - 120px));
  gap: 4px;
  overflow-y: auto;
  border: 1px solid rgba(198, 233, 221, 0.18);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.035)),
    rgba(8, 18, 17, 0.96);
  padding: 6px;
  box-shadow:
    0 18px 34px rgba(0, 0, 0, 0.32),
    inset 0 1px 0 rgba(255, 255, 255, 0.07);
}

:where(.site-home, .site-app) .mw-select-menu[hidden] {
  display: none;
}

:where(.site-home, .site-app) .mw-select-option {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 34px;
  border: 1px solid transparent;
  border-radius: 7px;
  background: transparent;
  padding: 0 10px;
  color: var(--muted);
  font: inherit;
  font-size: 0.88rem;
  font-weight: 850;
  text-align: left;
  cursor: pointer;
  transition: background var(--motion-fast) var(--ease), border-color var(--motion-fast) var(--ease), color var(--motion-fast) var(--ease);
}

:where(.site-home, .site-app) .mw-select-option:hover,
:where(.site-home, .site-app) .mw-select-option:focus-visible {
  border-color: color-mix(in srgb, var(--accent) 24%, transparent);
  background: color-mix(in srgb, var(--accent) 10%, transparent);
  color: var(--text-strong);
  outline: none;
}

:where(.site-home, .site-app) .mw-select-option.is-active {
  border-color: color-mix(in srgb, var(--accent) 34%, transparent);
  background: color-mix(in srgb, var(--accent) 14%, transparent);
  color: var(--text-strong);
}

:where(.site-home, .site-app) .mw-select-option.is-disabled {
  cursor: not-allowed;
  opacity: 0.52;
}

html[data-theme="light"] :where(.site-home, .site-app) .mw-select-trigger {
  border-color: rgba(35, 62, 52, 0.16);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(244, 248, 245, 0.88)),
    rgba(255, 255, 255, 0.78);
}

html[data-theme="light"] :where(.site-home, .site-app) .mw-select-menu {
  border-color: rgba(35, 62, 52, 0.16);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(244, 248, 245, 0.94)),
    rgba(255, 255, 255, 0.96);
  box-shadow: 0 18px 34px rgba(20, 50, 37, 0.16);
}

.site-account .compact-form .mw-select-trigger,
.site-account .account-flow .mw-select-trigger,
.site-community .forum-composer .mw-select-trigger,
body.site-community-hub .friend-add-form .mw-select-trigger {
  padding-right: 12px;
}

.site-community .sort-select-wrap .mw-select {
  width: auto;
  min-width: 104px;
}

.site-community .sort-select-wrap .mw-select-trigger {
  min-height: 31px;
  padding: 0 10px;
  font-size: 0.84rem;
  font-weight: 850;
}

body.site-community-hub .friend-add-form .mw-select-trigger {
  min-height: 38px;
  font-size: 0.84rem;
}

/* Softer global dark tone, without green background gradients */
html:not([data-theme="light"]) {
  --bg: #10191c;
  --bg-soft: #162125;
  --surface: rgba(24, 35, 39, 0.78);
  --surface-solid: #1a272b;
  --surface-raised: #213036;
  --line: rgba(219, 232, 227, 0.17);
  --line-strong: rgba(214, 230, 224, 0.28);
  --muted: #b3c1bc;
  --muted-2: #91a19b;
  --accent: #8aa99a;
  --accent-strong: #b6c9bd;
  --accent-blue: #93b0bc;
}

html:not([data-theme="light"]) body.site-app,
html:not([data-theme="light"]) body.site-home,
html:not([data-theme="light"]) body.auth-page {
  background: var(--bg) !important;
  background-image: none !important;
}

body.site-app,
body.site-home,
body.auth-page {
  background-image: none !important;
}

.background-orb,
.orb-a,
.orb-b {
  display: none !important;
  background: none !important;
  background-image: none !important;
}

html:not([data-theme="light"]) body::before,
html:not([data-theme="light"]) body::after {
  background-image: none !important;
}

:is(
  .app-panel,
  .forum-board,
  .forum-side-section,
  .community-hero,
  .community-command-strip,
  .hub-board-card,
  .notice-board-list,
  .auth-card,
  .hero-glass,
  .server-card,
  .feature-card,
  .wide-panel,
  .editor-board
) {
  background-image: none !important;
}

body.site-community-write .rich-editor::selection,
body.site-community-write .rich-editor *::selection,
body.site-community-write #post-title::selection,
body.site-community-write #post-tags::selection {
  background: rgba(148, 163, 184, 0.42);
  color: var(--text-strong);
}

body.site-community-write .rich-editor::-moz-selection,
body.site-community-write .rich-editor *::-moz-selection,
body.site-community-write #post-title::-moz-selection,
body.site-community-write #post-tags::-moz-selection {
  background: rgba(148, 163, 184, 0.42);
  color: var(--text-strong);
}

/* Context-sized list controls */
select#post-sort + .mw-select {
  width: 106px;
  min-width: 106px;
}

select#post-sort + .mw-select .mw-select-trigger {
  min-height: 31px;
  padding: 0 9px;
  font-size: 0.82rem;
}

select#inquiry-category + .mw-select {
  width: 128px;
  min-width: 128px;
}

select#inquiry-category + .mw-select .mw-select-trigger {
  min-height: 40px;
  font-size: 0.86rem;
}

select#friend-edition-input + .mw-select,
select#id-minecraft-edition + .mw-select,
select#follow-minecraft-edition + .mw-select {
  width: 104px;
  min-width: 104px;
}

select#friend-edition-input + .mw-select .mw-select-trigger,
select#id-minecraft-edition + .mw-select .mw-select-trigger,
select#follow-minecraft-edition + .mw-select .mw-select-trigger {
  min-height: 38px;
  font-size: 0.84rem;
}

select#disable-2fa-method + .mw-select,
select#password-2fa-method + .mw-select,
select#id-2fa-method + .mw-select {
  min-width: 154px;
}

select#disable-2fa-method + .mw-select .mw-select-trigger,
select#password-2fa-method + .mw-select .mw-select-trigger,
select#id-2fa-method + .mw-select .mw-select-trigger {
  min-height: 40px;
  font-size: 0.84rem;
}

select#post-category + .mw-select {
  width: 82px;
  min-width: 82px;
}

select#post-visibility + .mw-select {
  width: 126px;
  min-width: 126px;
}

select#post-category + .mw-select .mw-select-trigger,
select#post-visibility + .mw-select .mw-select-trigger {
  min-height: 34px;
  font-size: 0.84rem;
}

select#editor-font-family + .mw-select {
  width: 118px;
  min-width: 118px;
}

select#editor-line-height + .mw-select {
  width: 92px;
  min-width: 92px;
}

select#editor-font-family + .mw-select .mw-select-trigger,
select#editor-line-height + .mw-select .mw-select-trigger {
  min-height: 32px;
  font-size: 0.8rem;
}

/* Solid popover/list surfaces and stepped reveal motion */
:where(.site-home, .site-app) .user-trigger {
  width: auto;
  min-width: 42px;
  justify-content: flex-start;
  gap: 8px;
  padding: 0 10px 0 7px;
}

:where(.site-home, .site-app) .user-name-mini {
  display: inline-block;
  max-width: 132px;
  overflow: hidden;
  color: var(--text-strong);
  font-size: 0.86rem;
  font-weight: 850;
  line-height: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

:where(.site-home, .site-app) .profile-menu,
:where(.site-home, .site-app) .notification-panel,
:where(.site-home, .site-app) .mw-select-menu {
  background: var(--surface-solid) !important;
  background-image: none !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
}

:where(.site-home, .site-app) .profile-menu {
  display: grid;
  gap: 7px;
  min-width: 222px;
  padding: 10px !important;
}

:where(.site-home, .site-app) .notification-list {
  gap: 6px;
  background: var(--surface-solid);
}

:where(.site-home, .site-app) .profile-menu button,
:where(.site-home, .site-app) .notification-item,
:where(.site-home, .site-app) .mw-select-option {
  background: var(--surface-raised) !important;
  background-image: none !important;
}

:where(.site-home, .site-app) .profile-menu button {
  min-height: 44px;
  border-radius: var(--radius-sm);
  padding: 0 14px;
}

:where(.site-home, .site-app) .profile-menu button:hover,
:where(.site-home, .site-app) .profile-menu button:focus-visible,
:where(.site-home, .site-app) .notification-item:hover,
:where(.site-home, .site-app) .notification-item:focus-visible,
:where(.site-home, .site-app) .mw-select-option:hover,
:where(.site-home, .site-app) .mw-select-option:focus-visible,
:where(.site-home, .site-app) .mw-select-option.is-active {
  background: color-mix(in srgb, var(--surface-raised) 82%, var(--accent-blue) 18%) !important;
}

:where(.site-home, .site-app) .notification-item.is-read {
  opacity: 1 !important;
}

@keyframes mw-panel-drop-in {
  from {
    -webkit-clip-path: inset(0 0 18px 0);
    clip-path: inset(0 0 18px 0);
    transform: translateY(-8px);
  }
  to {
    -webkit-clip-path: inset(0);
    clip-path: inset(0);
    transform: translateY(0);
  }
}

@keyframes mw-row-drop-in {
  from {
    transform: translateY(-7px);
  }
  to {
    transform: translateY(0);
  }
}

:where(.site-home, .site-app) .profile-menu:not(.hidden),
:where(.site-home, .site-app) .notification-panel:not(.hidden),
:where(.site-home, .site-app) .mw-select-menu:not([hidden]) {
  transform-origin: top center;
  animation: mw-panel-drop-in 0.18s cubic-bezier(0.22, 1, 0.36, 1) both;
}

:where(.site-home, .site-app) .profile-menu:not(.hidden) button,
:where(.site-home, .site-app) .notification-panel:not(.hidden) .notification-item,
:where(.site-home, .site-app) .mw-select-menu:not([hidden]) .mw-select-option {
  animation: mw-row-drop-in 0.22s cubic-bezier(0.22, 1, 0.36, 1) both;
}

:where(.site-home, .site-app) .profile-menu:not(.hidden) button:nth-child(2),
:where(.site-home, .site-app) .notification-panel:not(.hidden) .notification-item:nth-child(2),
:where(.site-home, .site-app) .mw-select-menu:not([hidden]) .mw-select-option:nth-child(2) {
  animation-delay: 0.025s;
}

:where(.site-home, .site-app) .profile-menu:not(.hidden) button:nth-child(3),
:where(.site-home, .site-app) .notification-panel:not(.hidden) .notification-item:nth-child(3),
:where(.site-home, .site-app) .mw-select-menu:not([hidden]) .mw-select-option:nth-child(3) {
  animation-delay: 0.050s;
}

:where(.site-home, .site-app) .profile-menu:not(.hidden) button:nth-child(4),
:where(.site-home, .site-app) .notification-panel:not(.hidden) .notification-item:nth-child(4),
:where(.site-home, .site-app) .mw-select-menu:not([hidden]) .mw-select-option:nth-child(4) {
  animation-delay: 0.075s;
}

:where(.site-home, .site-app) .profile-menu:not(.hidden) button:nth-child(5),
:where(.site-home, .site-app) .notification-panel:not(.hidden) .notification-item:nth-child(5),
:where(.site-home, .site-app) .mw-select-menu:not([hidden]) .mw-select-option:nth-child(5) {
  animation-delay: 0.100s;
}

:where(.site-home, .site-app) .profile-menu:not(.hidden) button:nth-child(6),
:where(.site-home, .site-app) .notification-panel:not(.hidden) .notification-item:nth-child(6),
:where(.site-home, .site-app) .mw-select-menu:not([hidden]) .mw-select-option:nth-child(6) {
  animation-delay: 0.125s;
}

:where(.site-home, .site-app) .profile-menu:not(.hidden) button:nth-child(7),
:where(.site-home, .site-app) .notification-panel:not(.hidden) .notification-item:nth-child(7),
:where(.site-home, .site-app) .mw-select-menu:not([hidden]) .mw-select-option:nth-child(7) {
  animation-delay: 0.150s;
}

@media (max-width: 760px) {
  :where(.site-home, .site-app) .user-name-mini {
    max-width: 96px;
  }
}

@media (prefers-reduced-motion: reduce) {
  :where(.site-home, .site-app) .profile-menu:not(.hidden),
  :where(.site-home, .site-app) .notification-panel:not(.hidden),
  :where(.site-home, .site-app) .mw-select-menu:not([hidden]),
  :where(.site-home, .site-app) .profile-menu:not(.hidden) button,
  :where(.site-home, .site-app) .notification-panel:not(.hidden) .notification-item,
  :where(.site-home, .site-app) .mw-select-menu:not([hidden]) .mw-select-option {
    animation: none !important;
    transform: none !important;
  }
}

/* Shared checkbox reset and skin */
:where(.site-home, .site-app) input[type="checkbox"] {
  --checkbox-size: 20px;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  display: inline-grid;
  position: relative;
  z-index: 2;
  place-content: center;
  width: var(--checkbox-size);
  height: var(--checkbox-size);
  min-width: var(--checkbox-size);
  flex: 0 0 var(--checkbox-size);
  margin: 0;
  border: 1px solid rgba(198, 233, 221, 0.28);
  border-radius: 5px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.10), rgba(255, 255, 255, 0.025)),
    rgba(8, 18, 17, 0.78);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 1px 0 rgba(0, 0, 0, 0.22);
  color: var(--text-strong);
  cursor: pointer;
  pointer-events: auto;
  touch-action: manipulation;
  transition:
    border-color var(--motion-fast) var(--ease),
    background-color var(--motion-fast) var(--ease),
    box-shadow var(--motion-fast) var(--ease),
    filter var(--motion-fast) var(--ease);
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

:where(.site-home, .site-app) input[type="checkbox"]::before {
  content: "";
  width: 11px;
  height: 6px;
  border-bottom: 2.4px solid #07120d;
  border-left: 2.4px solid #07120d;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-1px) rotate(-45deg) scale(0.62);
  transition:
    opacity var(--motion-fast) var(--ease),
    transform var(--motion) var(--ease-spring);
}

:where(.site-home, .site-app) input[type="checkbox"]:hover {
  border-color: rgba(143, 240, 170, 0.62);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    0 0 0 3px color-mix(in srgb, var(--accent) 10%, transparent);
}

:where(.site-home, .site-app) input[type="checkbox"]:focus-visible {
  outline: none;
  border-color: var(--accent-strong);
  box-shadow:
    0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

:where(.site-home, .site-app) input[type="checkbox"]:active:not(:disabled) {
  filter: brightness(0.92);
}

:where(.site-home, .site-app) input[type="checkbox"]:checked {
  border-color: rgba(143, 240, 170, 0.78);
  background:
    linear-gradient(180deg, var(--accent-strong), var(--accent));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.38),
    0 0 0 3px color-mix(in srgb, var(--accent) 12%, transparent);
}

:where(.site-home, .site-app) input[type="checkbox"]:checked::before {
  opacity: 1;
  transform: translateY(-1px) rotate(-45deg) scale(1);
}

:where(.site-home, .site-app) input[type="checkbox"]:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

:where(.site-home, .site-app) input[type="checkbox"]:disabled + span {
  cursor: not-allowed;
  opacity: 0.7;
}

:where(.site-home, .site-app) .check-row,
:where(.site-home, .site-app) .setting-row,
:where(.site-home, .site-app) .follow-notify-toggle {
  position: relative;
  cursor: pointer;
  pointer-events: auto;
}

:where(.site-home, .site-app) .check-row span,
:where(.site-home, .site-app) .setting-row span,
:where(.site-home, .site-app) .follow-notify-toggle span {
  pointer-events: auto;
}

:where(.site-home, .site-app) .check-row input[type="checkbox"] {
  margin-top: 2px;
}

:where(.site-home, .site-app) .setting-row input[type="checkbox"],
:where(.site-home, .site-app) .follow-notify-toggle input[type="checkbox"] {
  flex: 0 0 var(--checkbox-size);
}

html[data-theme="light"] :where(.site-home, .site-app) input[type="checkbox"] {
  border-color: rgba(35, 62, 52, 0.22);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.90), rgba(244, 248, 245, 0.92)),
    #f7faf8;
}

html[data-theme="light"] :where(.site-home, .site-app) input[type="checkbox"]:hover {
  border-color: rgba(15, 111, 61, 0.48);
}

:where(.site-home, .site-app) .turnstile-background {
  pointer-events: none !important;
}

@media (prefers-reduced-motion: reduce) {
  :where(.site-home, .site-app) input[type="checkbox"],
  :where(.site-home, .site-app) input[type="checkbox"]::before {
    transition: none;
  }
}

/* Auth control icon alignment */
.auth-close {
  display: grid !important;
  place-items: center;
  padding: 0 !important;
  font-size: 0 !important;
  line-height: 0 !important;
  text-align: center;
}

.auth-close::before {
  content: "\00d7";
  display: block;
  color: currentColor;
  font-size: 21px;
  font-weight: 650;
  line-height: 1;
  transform: translateY(-1px);
}

.password-field {
  position: relative;
}

.password-field input[type="text"],
.password-field input[type="password"] {
  padding-right: 54px !important;
}

.password-toggle {
  position: absolute;
  top: 50%;
  right: 9px;
  display: grid !important;
  place-items: center;
  width: 34px;
  min-width: 34px;
  height: 34px;
  min-height: 34px;
  padding: 0 !important;
  line-height: 0;
  transform: translateY(-50%);
}

.password-toggle svg {
  display: block;
  width: 20px;
  height: 20px;
  overflow: visible;
  pointer-events: none;
}

.password-toggle path {
  vector-effect: non-scaling-stroke;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.password-toggle .eye-pupil {
  transform-box: fill-box;
  transform-origin: center;
}

/* Register credential rule reveal motion */
#register-credentials-form .credential-rules {
  display: grid;
  max-height: 0;
  margin-top: 0;
  overflow: hidden;
  opacity: 0;
  transform: translateY(-8px) scaleY(0.98);
  transform-origin: top;
  pointer-events: none;
  transition:
    max-height var(--motion-slow) var(--ease),
    margin-top var(--motion-slow) var(--ease),
    opacity var(--motion) var(--ease),
    transform var(--motion-slow) var(--ease);
  will-change: max-height, opacity, transform;
}

#register-credentials-form .credential-rules.is-active,
#register-credentials-form .field-group:focus-within > .credential-rules {
  max-height: 260px;
  margin-top: 4px;
  opacity: 1;
  transform: translateY(0) scaleY(1);
  pointer-events: auto;
}

#register-credentials-form .credential-rules li {
  opacity: 0;
  transform: translateY(-5px);
  transition:
    opacity var(--motion) var(--ease),
    transform var(--motion) var(--ease);
}

#register-credentials-form .credential-rules.is-active li,
#register-credentials-form .field-group:focus-within > .credential-rules li {
  opacity: 1;
  transform: translateY(0);
}

#register-credentials-form .credential-rules.is-active li:nth-child(2),
#register-credentials-form .field-group:focus-within > .credential-rules li:nth-child(2) {
  transition-delay: 0.025s;
}

#register-credentials-form .credential-rules.is-active li:nth-child(3),
#register-credentials-form .field-group:focus-within > .credential-rules li:nth-child(3) {
  transition-delay: 0.050s;
}

#register-credentials-form .credential-rules.is-active li:nth-child(4),
#register-credentials-form .field-group:focus-within > .credential-rules li:nth-child(4) {
  transition-delay: 0.075s;
}

#register-credentials-form .credential-rules.is-active li:nth-child(5),
#register-credentials-form .field-group:focus-within > .credential-rules li:nth-child(5) {
  transition-delay: 0.100s;
}

#register-credentials-form .credential-rules.is-active li:nth-child(6),
#register-credentials-form .field-group:focus-within > .credential-rules li:nth-child(6) {
  transition-delay: 0.125s;
}

#register-credentials-form .credential-rules:not(.is-active) li {
  transition-delay: 0s;
}

@media (prefers-reduced-motion: reduce) {
  #register-credentials-form .credential-rules,
  #register-credentials-form .credential-rules li {
    transition: none;
    transform: none;
  }
}

/* betA1.3 authoritative server address card */
body.site-home:not(.auth-page) .hero {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: calc(var(--nav-height) + 38px) var(--page-pad) 92px;
  perspective: 1100px;
}

body.site-home:not(.auth-page) .hero-glass,
html[data-theme="light"] body.site-home:not(.auth-page) .hero-glass {
  --glass-shift-x: 0px;
  --glass-shift-y: 0px;
  --glass-tilt-x: 0deg;
  --glass-tilt-y: 0deg;
  width: min(100%, 1180px);
  min-height: 610px;
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(198, 233, 221, 0.20);
  border-radius: 32px;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--accent) 7.5%, transparent), rgba(104, 199, 238, 0.055) 46%, rgba(241, 186, 99, 0.035)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.044) 44%, rgba(255, 255, 255, 0.028)),
    rgba(6, 17, 20, 0.74);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.38),
    inset 0 -1px 0 rgba(255, 255, 255, 0.07),
    inset 0 -28px 76px rgba(0, 0, 0, 0.22),
    0 22px 58px rgba(0, 0, 0, 0.28);
  padding: 104px clamp(28px, 5vw, 52px) 76px;
  contain: paint;
  backface-visibility: hidden;
  -webkit-backdrop-filter: blur(12px) saturate(128%);
  backdrop-filter: blur(12px) saturate(128%);
  transform:
    translate3d(var(--glass-shift-x), var(--glass-shift-y), 0)
    rotateX(var(--glass-tilt-y))
    rotateY(var(--glass-tilt-x));
  transform-origin: center;
  transform-style: flat;
  transition: border-color var(--motion-fast) var(--ease), box-shadow var(--motion) var(--ease);
  will-change: auto;
}

body.site-home.glass-pointer-enabled:not(.auth-page) .hero-glass,
html.glass-pointer-enabled body.site-home:not(.auth-page) .hero-glass {
  will-change: transform;
}

body.site-home:not(.auth-page) .hero-glass::before,
body.site-home:not(.auth-page) .hero-glass::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: none;
  box-shadow: none;
  opacity: 0;
  pointer-events: none;
}

body.site-home:not(.auth-page) .hero-content {
  position: relative;
  z-index: 1;
  display: flex;
  width: 100%;
  max-width: 980px;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transform: translateZ(32px);
}

body.site-home:not(.auth-page) .server-status-fixed {
  position: absolute;
  top: 30px;
  left: 50%;
  right: auto;
  z-index: 2;
  transform: translateX(-50%);
}

body.site-home:not(.auth-page) .server-status-line,
html[data-theme="light"] body.site-home:not(.auth-page) .server-status-line {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 40px;
  border: 1px solid rgba(198, 233, 221, 0.16);
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.04)),
    rgba(5, 17, 20, 0.46);
  box-shadow: none;
  padding: 0 16px;
  color: rgba(225, 241, 236, 0.82);
  font-size: 0.88rem;
  font-weight: 700;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

body.site-home:not(.auth-page) .server-status-line.is-online .status-dot,
body.site-home:not(.auth-page) .server-status-line.is-offline .status-dot {
  box-shadow: none;
}

body.site-home:not(.auth-page) .server-name,
html[data-theme="light"] body.site-home:not(.auth-page) .server-name {
  margin: 0 0 16px;
  color: rgba(230, 246, 240, 0.80);
  font-size: clamp(2.4rem, 5.2vw, 3rem);
  font-weight: 780;
  line-height: 0.98;
  letter-spacing: 0;
  text-shadow: 0 18px 46px rgba(0, 0, 0, 0.28);
}

body.site-home:not(.auth-page) .big-server-ip,
html[data-theme="light"] body.site-home:not(.auth-page) .big-server-ip {
  display: block;
  width: auto;
  max-width: 100%;
  margin: 0 0 30px;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
  padding: 0;
  color: rgba(247, 255, 251, 0.98);
  font-family: "Space Grotesk", Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: clamp(3.2rem, 8.4vw, 6rem);
  font-weight: 760;
  line-height: 1;
  letter-spacing: 0;
  overflow-wrap: anywhere;
  text-shadow:
    0 1px 0 rgba(255, 255, 255, 0.10),
    0 18px 52px color-mix(in srgb, var(--accent) 18%, transparent),
    0 26px 82px rgba(104, 199, 238, 0.13),
    0 28px 86px rgba(0, 0, 0, 0.34);
}

body.site-home:not(.auth-page) .big-server-ip::before,
body.site-home:not(.auth-page) .big-server-ip::after {
  content: none;
}

body.site-home:not(.auth-page) .copy-btn,
html[data-theme="light"] body.site-home:not(.auth-page) .copy-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: auto;
  min-width: 158px;
  min-height: 56px;
  gap: 10px;
  border: 1px solid rgba(143, 240, 170, 0.38);
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.055)),
    linear-gradient(135deg, color-mix(in srgb, var(--accent) 30%, transparent), rgba(104, 199, 238, 0.20)),
    rgba(6, 17, 20, 0.32);
  box-shadow: none;
  padding: 0 26px;
  color: rgba(248, 255, 251, 0.96);
  font-size: 1rem;
  font-weight: 800;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  transition: border-color var(--motion-fast) var(--ease), background var(--motion-fast) var(--ease), color var(--motion-fast) var(--ease);
}

body.site-home:not(.auth-page) .copy-btn:hover,
html[data-theme="light"] body.site-home:not(.auth-page) .copy-btn:hover {
  border-color: rgba(202, 244, 229, 0.48);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0.065)),
    linear-gradient(135deg, rgba(116, 227, 151, 0.34), rgba(104, 199, 238, 0.24)),
    rgba(6, 17, 20, 0.36);
}

body.site-home:not(.auth-page) .copy-btn svg {
  width: 19px;
  height: 19px;
}

body.site-home:not(.auth-page) .copy-btn span {
  position: static;
  width: auto;
  height: auto;
  overflow: visible;
  clip: auto;
  white-space: normal;
}

body.site-home:not(.auth-page) .copy-btn.copied {
  border-color: color-mix(in srgb, var(--accent) 58%, transparent);
}

body.site-home:not(.auth-page) .server-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  max-width: 690px;
  margin-top: 32px;
  font-size: 0.94rem;
  font-weight: 650;
}

body.site-home:not(.auth-page) .server-meta span,
body.site-home:not(.auth-page) .server-meta a,
html[data-theme="light"] body.site-home:not(.auth-page) .server-meta span,
html[data-theme="light"] body.site-home:not(.auth-page) .server-meta a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  border: 1px solid rgba(198, 233, 221, 0.13);
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.105), rgba(255, 255, 255, 0.035)),
    rgba(6, 19, 22, 0.42);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18);
  padding: 0 12px;
  color: rgba(220, 238, 232, 0.76);
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

body.site-home:not(.auth-page) .server-meta strong,
html[data-theme="light"] body.site-home:not(.auth-page) .server-meta strong {
  color: rgba(218, 255, 229, 0.94);
}

body.site-home:not(.auth-page) .server-meta a,
body.site-home:not(.auth-page) .server-meta span > a,
html[data-theme="light"] body.site-home:not(.auth-page) .server-meta a,
html[data-theme="light"] body.site-home:not(.auth-page) .server-meta span > a {
  color: rgba(149, 221, 242, 0.96);
}

body.site-home:not(.auth-page) .server-meta span > a,
html[data-theme="light"] body.site-home:not(.auth-page) .server-meta span > a {
  display: inline;
  width: auto;
  min-height: auto;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  padding: 0;
}

body.site-home:not(.auth-page) .server-meta span > a:hover {
  color: #ffffff;
  text-decoration: underline;
  text-underline-offset: 4px;
}

@media (max-width: 1080px) {
  body.site-home:not(.auth-page) .hero-glass {
    min-height: 570px;
    padding-top: 98px;
    padding-bottom: 68px;
  }
}

@media (max-width: 760px) {
  body.site-home:not(.auth-page) .hero {
    align-items: start;
    padding-top: 150px;
    padding-bottom: 92px;
  }

  body.site-home:not(.auth-page) .hero-glass {
    width: 100%;
    min-height: 480px;
    padding: 82px 22px 42px;
  }

  body.site-home:not(.auth-page) .server-status-fixed {
    position: absolute;
    top: 18px;
    left: 50%;
    right: auto;
    margin-bottom: 0;
    transform: translateX(-50%);
  }

  body.site-home:not(.auth-page) .server-name {
    font-size: clamp(2rem, 10vw, 2.55rem);
  }

  body.site-home:not(.auth-page) .big-server-ip {
    font-size: clamp(2.7rem, 14vw, 4.6rem);
  }

  body.site-home:not(.auth-page) .copy-btn {
    width: 100%;
    max-width: 280px;
  }

  body.site-home:not(.auth-page) .server-meta {
    margin-top: 24px;
  }

  body.site-home:not(.auth-page) .server-meta span,
  body.site-home:not(.auth-page) .server-meta a {
    width: 100%;
  }
}

@media (max-width: 860px), (prefers-reduced-motion: reduce) {
  body.site-home:not(.auth-page) .hero-glass {
    transform: none !important;
    will-change: auto;
  }
}

/* Site-wide list terminal override */
:where(.site-home, .site-app) {
  --mw-list-gap: 8px;
  --mw-list-row-gap: 10px;
  --mw-list-control-gap: 12px;
}

:where(.site-home, .site-app) :is(
  .profile-menu,
  .notification-panel,
  .mw-select-menu,
  .editor-size-menu,
  .editor-color-popover
) {
  pointer-events: auto;
}

:where(.site-home, .site-app) .profile-menu {
  z-index: 8500;
  width: max-content;
  min-width: 222px;
  max-width: min(280px, calc(100vw - 24px));
}

:where(.site-home, .site-app) .notification-panel {
  z-index: 8400;
  max-width: calc(100vw - 24px);
}

:where(.site-home, .site-app) .mw-select-menu {
  z-index: 9000;
  width: var(--mw-select-menu-width, auto);
  min-width: var(--mw-select-menu-min-width, 160px);
  max-width: calc(100vw - 16px);
}

body.site-community-write :is(.editor-size-menu, .editor-color-popover) {
  z-index: 9100;
  max-width: calc(100vw - 16px);
}

:where(.site-home, .site-app) :is(
  .profile-menu,
  .notification-list,
  .forum-list,
  .side-link-list,
  .friend-list,
  .follow-list,
  .settings-list,
  .device-list,
  .account-activity-list,
  .notice-list,
  .post-list,
  .admin-inquiry-list,
  .console-command-list,
  .minecraft-achievement-recent
) {
  display: grid;
  gap: var(--mw-list-gap);
  min-width: 0;
}

:where(.site-home, .site-app) :is(
  .comment-list,
  .minecraft-advancement-tabs,
  .privacy-activity-tabs,
  .post-list-head,
  .board-toolbar,
  .console-board-toolbar,
  .admin-inquiry-toolbar,
  .friend-add-form,
  .follow-add-form,
  .notice-form-grid,
  .console-form,
  .write-actions,
  .post-detail-actions,
  .comment-actions,
  .comment-edit-actions,
  .community-head-actions,
  .account-action-row
) {
  min-width: 0;
}

:where(.site-home, .site-app) :is(
  .friend-add-form,
  .follow-add-form,
  .notice-form-grid,
  .admin-inquiry-toolbar,
  .admin-inquiry-actions,
  .console-form,
  .console-toolbar,
  .write-actions,
  .post-detail-actions,
  .comment-actions,
  .comment-edit-actions,
  .community-head-actions,
  .account-action-row,
  .follow-actions
) {
  gap: var(--mw-list-control-gap);
}

:where(.site-home, .site-app) :is(
  .profile-menu button,
  .notification-item,
  .mw-select-option,
  .side-link-row,
  .forum-row,
  .post-item,
  .post-feed-item,
  .friend-row,
  .follow-item,
  .device-item,
  .account-activity-item,
  .setting-row,
  .admin-inquiry-row,
  .console-command-list button,
  .theme-options label,
  .theme-options span,
  .minecraft-achievement-recent article,
  .minecraft-advancement-tab,
  .privacy-activity-tabs button
) {
  position: relative;
  min-width: 0;
  max-width: 100%;
  pointer-events: auto;
}

:where(.site-home, .site-app) :is(
  .profile-menu button,
  .notification-item,
  .mw-select-option,
  .side-link-row:not(.side-link-status),
  .forum-row:not(.notice-status-row),
  .post-item:not(.post-item-status),
  .post-feed-item,
  .friend-row button,
  .follow-item button,
  .device-item button,
  .setting-row,
  .admin-inquiry-row,
  .console-command-list button,
  .theme-options label,
  .theme-options span,
  .minecraft-advancement-tab,
  .privacy-activity-tabs button
) {
  cursor: pointer;
}

:where(.site-home, .site-app) :is(
  .side-link-status,
  .post-item-status,
  .notice-status-row,
  .friend-status-row,
  .account-activity-item.is-empty,
  .follow-item.is-empty,
  .admin-inquiry-empty,
  .notification-empty
) {
  cursor: default;
}

:where(.site-home, .site-app) :is(
  .profile-menu button,
  .notification-item,
  .mw-select-option,
  .side-link-row,
  .console-command-list button,
  .admin-inquiry-row
) {
  min-height: 40px;
  border-radius: var(--radius-sm);
  padding-inline: 12px;
}

:where(.site-home, .site-app) :is(
  .profile-menu button,
  .notification-item,
  .mw-select-option,
  .side-link-row,
  .friend-row,
  .follow-item,
  .account-activity-item,
  .admin-inquiry-row
) :is(strong, span, em, p, a, small) {
  min-width: 0;
  max-width: 100%;
}

:where(.site-home, .site-app) .mw-select-option {
  justify-content: flex-start;
  white-space: normal;
  overflow-wrap: anywhere;
}

:where(.site-home, .site-app) .notification-list {
  padding: 8px;
}

:where(.site-home, .site-app) .notification-item {
  border: 1px solid transparent;
}

:where(.site-home, .site-app) .notification-item:hover,
:where(.site-home, .site-app) .notification-item:focus-visible {
  border-color: var(--line);
}

:where(.site-home, .site-app) .profile-menu button {
  width: 100%;
  text-align: left;
}

:where(.site-home, .site-app) :is(
  .friend-row,
  .follow-item,
  .device-item,
  .setting-row,
  .admin-inquiry-row-head,
  .panel-head,
  .side-title,
  .board-toolbar,
  .console-board-toolbar,
  .post-title-row
) {
  gap: var(--mw-list-row-gap);
}

:where(.site-home, .site-app) :is(
  .friend-row,
  .follow-actions,
  .admin-inquiry-actions,
  .console-toolbar,
  .post-detail-actions,
  .comment-actions
) :is(button, .forum-action-btn) {
  flex: 0 0 auto;
  margin: 0;
}

body.site-community-write :is(.editor-size-menu, .editor-color-popover) {
  display: grid;
  gap: 6px;
}

body.site-community-write :is(.editor-size-menu.hidden, .editor-color-popover.hidden) {
  display: none !important;
}

body.site-community-write :is(.editor-size-menu button, .editor-color-popover button) {
  min-width: 0;
  cursor: pointer;
  pointer-events: auto;
}

/* Home address card tone and click target repair */
body.site-home:not(.auth-page) .hero-glass {
  border-color: rgba(222, 238, 229, 0.28);
  background:
    linear-gradient(135deg, rgba(179, 216, 189, 0.13), rgba(148, 182, 191, 0.09) 48%, rgba(215, 170, 100, 0.045)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.064) 48%, rgba(255, 255, 255, 0.04)),
    rgba(18, 29, 26, 0.82);
}

body.site-home:not(.auth-page) .server-status-line {
  border-color: rgba(222, 238, 229, 0.20);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.055)),
    rgba(18, 29, 26, 0.58);
  color: rgba(235, 245, 239, 0.86);
}

body.site-home:not(.auth-page) .big-server-ip {
  display: block;
  width: min(100%, 720px);
  border: 1px solid rgba(222, 238, 229, 0.24);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.045)),
    linear-gradient(135deg, rgba(179, 216, 189, 0.18), rgba(148, 182, 191, 0.12)),
    rgba(19, 35, 31, 0.70);
  padding: clamp(20px, 3vw, 30px) clamp(20px, 4vw, 38px);
  color: rgba(250, 255, 252, 0.98);
  text-align: center;
}

body.site-home:not(.auth-page) .copy-btn {
  border-color: rgba(222, 238, 229, 0.34);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0.07)),
    linear-gradient(135deg, rgba(179, 216, 189, 0.30), rgba(148, 182, 191, 0.20)),
    rgba(18, 29, 26, 0.44);
}

body.site-home:not(.auth-page) .copy-btn:hover,
body.site-home:not(.auth-page) .copy-btn.copied {
  border-color: rgba(237, 248, 241, 0.50);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.27), rgba(255, 255, 255, 0.085)),
    linear-gradient(135deg, rgba(193, 229, 203, 0.36), rgba(164, 199, 208, 0.24)),
    rgba(18, 29, 26, 0.50);
}

body.site-home:not(.auth-page) .server-meta span,
body.site-home:not(.auth-page) .server-meta a {
  border-color: rgba(222, 238, 229, 0.18);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0.045)),
    rgba(18, 29, 26, 0.48);
}

html[data-theme="light"] body.site-home:not(.auth-page) .hero-glass {
  border-color: rgba(86, 116, 95, 0.20);
  background:
    linear-gradient(135deg, rgba(238, 246, 240, 0.96), rgba(233, 241, 243, 0.88) 52%, rgba(246, 239, 226, 0.80)),
    rgba(255, 255, 255, 0.94);
}

html[data-theme="light"] body.site-home:not(.auth-page) .server-status-line {
  border-color: rgba(86, 116, 95, 0.18);
  background: rgba(255, 255, 255, 0.78);
  color: #5d6960;
}

html[data-theme="light"] body.site-home:not(.auth-page) .server-name {
  color: #2e3d34;
  text-shadow: none;
}

html[data-theme="light"] body.site-home:not(.auth-page) .big-server-ip {
  border-color: rgba(86, 116, 95, 0.24);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(250, 253, 250, 0.78)),
    rgba(232, 241, 234, 0.88);
  color: #213629;
  text-shadow: none;
}

html[data-theme="light"] body.site-home:not(.auth-page) .copy-btn {
  border-color: rgba(82, 124, 94, 0.28);
  background: rgba(255, 255, 255, 0.82);
  color: #213629;
}

html[data-theme="light"] body.site-home:not(.auth-page) .copy-btn:hover,
html[data-theme="light"] body.site-home:not(.auth-page) .copy-btn.copied {
  border-color: rgba(82, 124, 94, 0.38);
  background: rgba(246, 250, 247, 0.96);
}

html[data-theme="light"] body.site-home:not(.auth-page) .server-meta span,
html[data-theme="light"] body.site-home:not(.auth-page) .server-meta a {
  border-color: rgba(86, 116, 95, 0.16);
  background: rgba(255, 255, 255, 0.72);
  color: #5d6960;
}

html[data-theme="light"] body.site-home:not(.auth-page) .server-meta strong {
  color: #365d43;
}

:where(.site-home, .site-app) :is(
  button,
  a,
  input,
  select,
  textarea,
  label,
  summary,
  [role="button"],
  [role="menuitem"],
  [tabindex],
  .mw-select,
  .mw-select-trigger,
  .mw-select-option,
  .nav-btn,
  .app-top-link,
  .icon-btn,
  .user-trigger,
  .copy-btn,
  .forum-action-btn,
  .auth-main-btn,
  .auth-sub-btn
) {
  pointer-events: auto;
}

body.site-home .field-label,
body.site-app .field-label {
  pointer-events: auto;
}

/* Home address width and logo cleanup */
:where(.site-home, .site-app) .logo-mark {
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none !important;
  padding: 0;
}

body.site-home:not(.auth-page) .hero-glass {
  width: min(calc(100vw - 96px), 1180px);
}

body.site-home:not(.auth-page) .big-server-ip {
  width: auto;
  max-width: 100%;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none !important;
  padding: 0;
  white-space: nowrap;
  word-break: keep-all;
  overflow-wrap: normal;
  font-size: clamp(2.5rem, 5.2vw, 4.85rem);
  line-height: 1;
}

html[data-theme="light"] body.site-home:not(.auth-page) .big-server-ip {
  width: auto;
  max-width: 100%;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none !important;
  padding: 0;
}

body.site-home:not(.auth-page) .big-server-ip::before,
body.site-home:not(.auth-page) .big-server-ip::after {
  content: none;
}

@media (max-width: 760px) {
  body.site-home:not(.auth-page) .hero-glass {
    width: 100%;
  }

  body.site-home:not(.auth-page) .big-server-ip {
    width: 100%;
    max-width: 100%;
    padding-right: 0;
    padding-left: 0;
    font-size: clamp(1.82rem, 10.5vw, 3rem);
  }
}

/* Site-wide layout alignment pass */
body.site-app {
  --mw-shell-width: 1180px;
  --mw-row-gap: 12px;
  --mw-control-height: 40px;
}

body.site-account {
  --mw-shell-width: 1220px;
}

body.site-community-hub {
  --mw-shell-width: 1260px;
}

body.site-community-post,
body.site-community-write {
  --mw-shell-width: 1360px;
}

body.site-console,
body.site-admin-inquiries {
  --mw-shell-width: 1180px;
}

body.site-app :is(.app-shell, .forum-shell, .console-shell, .admin-inquiry-shell) {
  box-sizing: border-box;
  width: min(100%, var(--mw-shell-width));
  margin-right: auto;
  margin-left: auto;
  padding-right: var(--page-pad);
  padding-left: var(--page-pad);
}

body.site-app :is(
  .app-shell,
  .forum-layout,
  .community-page-layout,
  .console-layout,
  .admin-inquiry-layout
) {
  justify-content: center;
  align-items: start;
  min-width: 0;
}

body.site-app :is(
  .app-content,
  .app-panel,
  .forum-board,
  .forum-side-section,
  .console-board,
  .console-sidebar,
  .admin-inquiry-panel,
  .community-board,
  .post-detail,
  .write-layout,
  .editor-board
) {
  min-width: 0;
  max-width: 100%;
}

body.site-app :is(
  .forum-head,
  .app-page-head,
  .admin-inquiry-head,
  .console-shell .forum-head,
  .board-toolbar,
  .console-board-toolbar,
  .hub-board-head,
  .side-title,
  .panel-head,
  .post-title-row,
  .post-list-head,
  .community-hero
) {
  align-items: center;
  gap: var(--mw-row-gap);
  min-width: 0;
}

body.site-app :is(
  .forum-head,
  .app-page-head,
  .admin-inquiry-head,
  .console-shell .forum-head,
  .board-toolbar,
  .console-board-toolbar,
  .hub-board-head,
  .post-list-head
) {
  flex-wrap: wrap;
}

body.site-app :is(
  .forum-head > *,
  .app-page-head > *,
  .admin-inquiry-head > *,
  .board-toolbar > *,
  .console-board-toolbar > *,
  .hub-board-head > *,
  .post-title-row > *,
  .community-hero > *
) {
  min-width: 0;
}

body.site-app :is(
  .forum-action-btn,
  .auth-main-btn,
  .auth-sub-btn,
  .nav-btn,
  .admin-link,
  .app-side-btn,
  .icon-btn,
  .user-trigger,
  .post-back-btn,
  .post-tool-btn,
  .reaction-btn,
  .mw-select-trigger,
  .profile-menu button,
  .admin-status-tabs button
) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--mw-control-height);
  line-height: 1.1;
  text-align: center;
  vertical-align: middle;
}

body.site-app :is(.app-side-btn, .profile-menu button, .side-link-row) {
  justify-content: flex-start;
}

body.site-app :is(
  .forum-row,
  .post-feed-item,
  .side-link-row,
  .friend-row,
  .follow-item,
  .device-item,
  .setting-row,
  .account-activity-item,
  .admin-inquiry-row,
  .notification-item,
  .mw-select-option
) {
  align-items: center;
}

body.site-app :is(
  .friend-add-form,
  .follow-add-form,
  .notice-form-grid,
  .admin-inquiry-toolbar,
  .admin-inquiry-actions,
  .console-form,
  .console-toolbar,
  .write-actions,
  .post-detail-actions,
  .comment-actions,
  .comment-edit-actions,
  .community-head-actions,
  .account-action-row
) {
  align-items: center;
}

body.site-app :is(input, select, textarea, .mw-select-trigger) {
  min-width: 0;
}

body.site-app :is(input:not([type="checkbox"]):not([type="radio"]), select, .mw-select-trigger) {
  min-height: var(--mw-control-height);
}

@media (max-width: 1040px) {
  body.site-app :is(.app-shell, .forum-layout, .community-page-layout, .console-layout, .admin-inquiry-layout) {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 760px) {
  body.site-app {
    --mw-row-gap: 10px;
    --mw-control-height: 38px;
  }

  body.site-app :is(.app-shell, .forum-shell, .console-shell, .admin-inquiry-shell) {
    padding-right: max(14px, env(safe-area-inset-right));
    padding-left: max(14px, env(safe-area-inset-left));
  }

  body.site-app :is(.forum-head, .app-page-head, .admin-inquiry-head, .board-toolbar, .console-board-toolbar) {
    align-items: flex-start;
  }
}

@media (max-width: 760px) {
  :where(.site-home, .site-app) {
    --mw-list-gap: 7px;
    --mw-list-row-gap: 8px;
    --mw-list-control-gap: 10px;
  }

  :where(.site-home, .site-app) :is(
    .follow-actions,
    .admin-inquiry-actions,
    .console-toolbar,
    .post-detail-actions,
    .comment-actions
  ) {
    align-items: stretch;
  }
}

/* Final header menu polish */
:where(.site-home, .site-app) .profile-menu {
  display: grid !important;
  gap: 10px !important;
  min-width: 232px;
  padding: 12px !important;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-md);
  background: var(--surface-solid) !important;
  box-shadow: var(--shadow-panel);
}

:where(.site-home, .site-app) .profile-menu.hidden {
  display: none !important;
}

:where(.site-home, .site-app) .profile-menu button {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  min-height: 46px;
  margin: 0;
  padding: 0 16px;
  border-radius: var(--radius-sm);
  white-space: nowrap;
}

:where(.site-home, .site-app) .notification-panel {
  z-index: 80;
}

:where(.site-home, .site-app) .notification-list {
  display: grid;
  gap: 8px;
}

:where(.site-home, .site-app) .notification-item {
  width: 100%;
  min-height: 58px;
}

/* Final editor control menu alignment */
body.site-community-write .editor-font-family-control .mw-select-trigger,
body.site-community-write .editor-size-trigger,
body.site-community-write .editor-line-height-trigger {
  min-height: 34px !important;
  height: 34px !important;
  border: 1px solid var(--editor-toolbar-divider) !important;
  border-radius: 8px !important;
  background: rgba(255, 255, 255, 0.052) !important;
  color: var(--editor-toolbar-text) !important;
  box-shadow: none !important;
}

body.site-community-write .editor-font-family-control .mw-select-trigger:hover,
body.site-community-write .editor-font-family-control .mw-select.is-open .mw-select-trigger,
body.site-community-write .editor-size-trigger:hover,
body.site-community-write .editor-size-trigger:focus-within,
body.site-community-write .editor-line-height-trigger:hover,
body.site-community-write .editor-line-height-trigger[aria-expanded="true"] {
  border-color: var(--editor-toolbar-active-border) !important;
  background: var(--editor-toolbar-hover-bg) !important;
  color: var(--editor-toolbar-accent) !important;
}

body.site-community-write .editor-font-family-control .mw-select-menu,
body.site-community-write .editor-size-menu,
body.site-community-write .editor-line-height-menu {
  border: 1px solid var(--editor-toolbar-divider) !important;
  border-radius: 8px !important;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.022)),
    var(--editor-popover-bg) !important;
  color: var(--editor-toolbar-text) !important;
  padding: 6px !important;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.30) !important;
  animation: editorControlMenuIn 0.16s ease-out;
}

body.site-community-write .editor-size-menu {
  min-width: 88px !important;
}

body.site-community-write .editor-line-height-menu {
  min-width: 156px !important;
  gap: 3px !important;
}

body.site-community-write .editor-size-menu.hidden,
body.site-community-write .editor-line-height-menu.hidden {
  display: none !important;
}

body.site-community-write .editor-size-option,
body.site-community-write .editor-line-height-menu button {
  justify-content: flex-start !important;
  width: 100% !important;
  min-height: 34px !important;
  height: 34px !important;
  border: 1px solid transparent !important;
  border-radius: 6px !important;
  background: transparent !important;
  color: var(--editor-toolbar-text) !important;
  padding: 0 12px !important;
  font-size: 0.86rem !important;
  font-weight: 850 !important;
  text-align: left !important;
}

body.site-community-write .editor-size-option:hover,
body.site-community-write .editor-size-option:focus-visible,
body.site-community-write .editor-size-option.is-active,
body.site-community-write .editor-line-height-menu button:hover,
body.site-community-write .editor-line-height-menu button:focus-visible,
body.site-community-write .editor-line-height-menu button.is-active {
  border-color: rgba(104, 199, 238, 0.34) !important;
  background: rgba(104, 199, 238, 0.14) !important;
  color: var(--editor-toolbar-accent) !important;
}

body.site-community-write .editor-line-height-menu button.is-active::before,
body.site-community-write .editor-size-custom {
  display: none !important;
  content: none !important;
}

body.site-community-write .editor-line-height-custom input {
  min-height: 34px !important;
  border-radius: 6px !important;
}

/* Community hub ad rail symmetry */
body.site-community-hub .community-shell {
  width: min(100%, 1580px) !important;
}

body.site-community-hub:not(.is-community-post-detail) .community-page-layout,
html[data-nav-align="center"] body.site-community-hub:not(.is-community-post-detail) .community-page-layout {
  grid-template-columns: 320px minmax(0, 1fr) 320px !important;
  justify-content: stretch;
}

body.site-community-hub:not(.is-community-post-detail) .community-left-rail {
  grid-column: 1;
  position: -webkit-sticky;
  position: sticky;
  top: calc(var(--nav-height) + 18px);
  display: grid !important;
  gap: 12px;
  width: 100%;
}

body.site-community-hub:not(.is-community-post-detail) .community-main-column {
  grid-column: 2;
}

body.site-community-hub:not(.is-community-post-detail) .community-right-rail {
  grid-column: 3;
}

body.site-community-hub .community-ad-card {
  display: grid;
  min-height: 260px;
  place-items: center;
  color: var(--muted);
  text-align: center;
}

body.site-community-hub .community-ad-card strong {
  color: var(--text-strong);
  font-size: 1rem;
  font-weight: 900;
}

@media (max-width: 1380px) {
  body.site-community-hub:not(.is-community-post-detail) .community-page-layout,
  html[data-nav-align="center"] body.site-community-hub:not(.is-community-post-detail) .community-page-layout {
    grid-template-columns: minmax(0, 1fr) minmax(260px, 300px) !important;
  }

  body.site-community-hub:not(.is-community-post-detail) .community-left-rail {
    display: none !important;
  }

  body.site-community-hub:not(.is-community-post-detail) .community-main-column {
    grid-column: 1;
  }

  body.site-community-hub:not(.is-community-post-detail) .community-right-rail {
    grid-column: 2;
  }
}

@media (max-width: 1020px) {
  body.site-community-hub:not(.is-community-post-detail) .community-page-layout,
  html[data-nav-align="center"] body.site-community-hub:not(.is-community-post-detail) .community-page-layout {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  body.site-community-hub:not(.is-community-post-detail) .community-main-column,
  body.site-community-hub:not(.is-community-post-detail) .community-right-rail {
    grid-column: 1;
  }
}

/* Final synchronized list reveal motion */
@keyframes mw-synced-list-panel-in {
  from {
    opacity: 0;
    transform: translateY(-6px);
    -webkit-clip-path: inset(0 0 100% 0 round 8px);
    clip-path: inset(0 0 100% 0 round 8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
    -webkit-clip-path: inset(0 0 0 0 round 8px);
    clip-path: inset(0 0 0 0 round 8px);
  }
}

@keyframes mw-synced-list-item-in {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

:where(.site-home, .site-app) :is(
  .profile-menu:not(.hidden),
  .notification-panel:not(.hidden),
  .mw-select-menu:not([hidden])
),
body.site-community-write :is(
  .editor-size-menu:not(.hidden),
  .editor-line-height-menu:not(.hidden),
  .editor-color-popover:not(.hidden)
) {
  transform-origin: top center;
  animation: mw-synced-list-panel-in 0.18s cubic-bezier(0.22, 1, 0.36, 1) both !important;
}

:where(.site-home, .site-app) :is(
  .profile-menu:not(.hidden) button,
  .notification-panel:not(.hidden) .notification-item,
  .mw-select-menu:not([hidden]) .mw-select-option
),
body.site-community-write :is(
  .editor-size-menu:not(.hidden) .editor-size-option,
  .editor-line-height-menu:not(.hidden) button,
  .editor-color-popover:not(.hidden) button
) {
  animation: mw-synced-list-item-in 0.18s cubic-bezier(0.22, 1, 0.36, 1) both !important;
  animation-delay: 0s !important;
}

@media (prefers-reduced-motion: reduce) {
  :where(.site-home, .site-app) :is(
    .profile-menu:not(.hidden),
    .notification-panel:not(.hidden),
    .mw-select-menu:not([hidden]),
    .profile-menu:not(.hidden) button,
    .notification-panel:not(.hidden) .notification-item,
    .mw-select-menu:not([hidden]) .mw-select-option
  ),
  body.site-community-write :is(
    .editor-size-menu:not(.hidden),
    .editor-line-height-menu:not(.hidden),
    .editor-color-popover:not(.hidden),
    .editor-size-menu:not(.hidden) .editor-size-option,
    .editor-line-height-menu:not(.hidden) button,
    .editor-color-popover:not(.hidden) button
  ) {
    animation: none !important;
    -webkit-clip-path: none !important;
    clip-path: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}

/* Keep write and read surfaces on the same text measure. */
body.site-community-write,
body.site-community-post,
body.site-community-hub.is-community-post-detail {
  --community-article-inline: 14px;
}

body.site-community-write .editor-board,
body.site-community-post .post-detail,
body.site-community-hub.is-community-post-detail .post-detail {
  width: 100%;
}

body.site-community-hub.is-community-post-detail .community-shell {
  width: min(100%, 1360px) !important;
}

body.site-community-post .post-detail .post-detail-body,
body.site-community-hub.is-community-post-detail .post-detail .post-detail-body {
  padding-right: var(--community-article-inline) !important;
  padding-left: var(--community-article-inline) !important;
}

body.site-community-write .rich-editor {
  box-sizing: border-box;
  width: calc(100% - (var(--community-article-inline) * 2)) !important;
  max-width: none !important;
  margin-right: var(--community-article-inline) !important;
  margin-left: var(--community-article-inline) !important;
}

body.site-community-post .post-detail .post-body-content,
body.site-community-hub.is-community-post-detail .post-detail .post-body-content {
  box-sizing: border-box;
  width: 100% !important;
  max-width: none !important;
  margin-right: 0 !important;
  margin-left: 0 !important;
  padding-right: 0 !important;
  padding-left: 0 !important;
  font-size: 1.02rem;
}

@media (max-width: 760px) {
  body.site-community-write,
  body.site-community-post,
  body.site-community-hub.is-community-post-detail {
    --community-article-inline: 10px;
  }
}

/* Compact write/read layout with a thin left ad rail. */
body.site-community-write,
body.site-community-post,
body.site-community-hub.is-community-post-detail {
  --mw-shell-width: 1240px;
  --community-ad-rail-width: 108px;
  --community-ad-rail-gap: 16px;
  --community-article-inline: 14px;
}

body.site-community-write :is(#app-view-write, #app-view-edit),
body.site-community-post #app-view-post {
  display: grid;
  grid-template-columns: var(--community-ad-rail-width) minmax(0, 1fr);
  gap: var(--community-ad-rail-gap);
  align-items: start;
}

body.site-community-write .write-layout,
body.site-community-post .post-detail-layout {
  grid-column: 2;
  width: 100%;
}

.community-thin-ad {
  position: -webkit-sticky;
  position: sticky;
  top: calc(var(--nav-height) + 16px);
  display: grid;
  min-height: min(520px, calc(100svh - var(--nav-height) - 48px));
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.010)),
    rgba(255, 255, 255, 0.026);
  color: var(--muted);
  text-align: center;
}

.community-thin-ad strong {
  display: block;
  max-width: 58px;
  color: var(--text-strong);
  font-size: 0.92rem;
  font-weight: 900;
  line-height: 1.35;
}

body.site-community-hub.is-community-post-detail .community-shell {
  width: min(100%, 1240px) !important;
}

body.site-community-hub.is-community-post-detail .community-page-layout {
  grid-template-columns: var(--community-ad-rail-width) minmax(0, 1fr) !important;
  gap: var(--community-ad-rail-gap) !important;
}

body.site-community-hub.is-community-post-detail .community-left-rail {
  grid-column: 1;
  position: -webkit-sticky;
  position: sticky;
  top: calc(var(--nav-height) + 16px);
  display: grid !important;
  width: 100%;
}

body.site-community-hub.is-community-post-detail .community-left-rail .community-ad-card {
  min-height: min(520px, calc(100svh - var(--nav-height) - 48px));
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.010)),
    rgba(255, 255, 255, 0.026);
}

body.site-community-hub.is-community-post-detail .community-left-rail .community-ad-card strong {
  max-width: 58px;
  line-height: 1.35;
}

body.site-community-hub.is-community-post-detail .community-main-column {
  grid-column: 2 !important;
}

body.site-community-hub.is-community-post-detail .community-right-rail {
  display: none !important;
}

@media (max-width: 1040px) {
  body.site-community-write :is(#app-view-write, #app-view-edit),
  body.site-community-post #app-view-post,
  body.site-community-hub.is-community-post-detail .community-page-layout {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  body.site-community-write .write-layout,
  body.site-community-post .post-detail-layout,
  body.site-community-hub.is-community-post-detail .community-main-column {
    grid-column: 1 !important;
  }

  .community-thin-ad,
  body.site-community-hub.is-community-post-detail .community-left-rail {
    display: none !important;
  }
}

/* Loaded last on home as well: keep profile menu closed until toggled. */
:where(.site-home, .site-app) .profile-menu.hidden {
  display: none !important;
}

/* Absolute final write editor control fixes. */
body.site-community-write .write-meta-grid {
  grid-template-columns: minmax(116px, 138px) minmax(142px, 168px) minmax(0, 1fr) !important;
  gap: 10px !important;
}

body.site-community-write .write-category-field,
body.site-community-write .write-tags-field {
  padding-right: 10px !important;
  padding-left: 10px !important;
}

body.site-community-write .write-category-field .mw-select-trigger,
body.site-community-write select#post-category + .mw-select .mw-select-trigger,
body.site-community-write select#post-visibility + .mw-select .mw-select-trigger,
body.site-community-write .editor-font-family-control .mw-select-trigger {
  position: relative;
  justify-content: flex-start !important;
  padding-right: 28px !important;
}

body.site-community-write .write-category-field .mw-select-trigger::after,
body.site-community-write select#post-category + .mw-select .mw-select-trigger::after,
body.site-community-write select#post-visibility + .mw-select .mw-select-trigger::after,
body.site-community-write .editor-font-family-control .mw-select-trigger::after {
  position: absolute !important;
  right: 10px !important;
  flex: 0 0 auto;
  margin-left: 0 !important;
}

body.site-community-write .write-category-field .mw-select-label,
body.site-community-write .editor-font-family-control .mw-select-label {
  overflow: hidden;
  padding-right: 2px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.site-community-write .editor-size-menu {
  width: 66px !important;
  min-width: 66px !important;
  max-width: 66px !important;
  overflow-y: visible !important;
  padding: 4px !important;
  scrollbar-width: none !important;
}

body.site-community-write .editor-size-menu::-webkit-scrollbar {
  display: none;
}

body.site-community-write .editor-size-option {
  justify-content: center !important;
  height: 30px !important;
  min-height: 30px !important;
  padding: 0 !important;
  text-align: center !important;
}

body.site-community-write .editor-color-popover.has-custom-picker .editor-custom-picker {
  position: fixed !important;
  top: 50% !important;
  right: auto !important;
  bottom: auto !important;
  left: 50% !important;
  z-index: 9400 !important;
  width: min(490px, calc(100vw - 28px));
  max-height: min(720px, calc(100dvh - 28px));
  overflow: auto;
  border-color: rgba(203, 226, 218, 0.28);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.060), rgba(255, 255, 255, 0.022)),
    var(--editor-popover-bg);
  padding: 18px;
  margin: 0 !important;
  transform: translate(-50%, -50%) !important;
}

body.site-community-write .editor-color-popover.has-custom-picker {
  overflow: visible !important;
  animation: none !important;
  -webkit-clip-path: none !important;
  clip-path: none !important;
  transform: none !important;
}

body.site-community-write .editor-color-popover.has-custom-picker .editor-custom-color-field {
  height: 224px;
  touch-action: none;
}

html[data-theme="light"] body.site-community-write .editor-color-popover.has-custom-picker .editor-custom-picker {
  border-color: rgba(35, 62, 52, 0.16);
  background: #ffffff;
}

body.site-community-write .editor-color-popover.has-custom-picker .editor-custom-picker.hidden {
  display: none !important;
}

body.site-community-hub.is-community-post-detail #app-view-post > .community-thin-ad {
  display: none !important;
}

body.site-community-hub.is-community-post-detail #app-view-post,
body.site-community-hub.is-community-post-detail .post-detail-layout {
  display: block !important;
  width: 100% !important;
}

body.site-community-hub.is-community-post-detail .community-left-rail .community-ad-card {
  width: var(--community-ad-rail-width) !important;
  max-width: var(--community-ad-rail-width) !important;
  padding: 0 !important;
}

@media (max-width: 820px) {
  body.site-community-write .write-meta-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
  }
}

@media (max-width: 480px) {
  body.site-community-write .editor-color-popover.has-custom-picker .editor-custom-color-field {
    height: 176px;
  }
}

/* Home server address card: keep light and dark in the same format. */
body.site-home:not(.auth-page) .hero-glass,
html[data-theme="light"] body.site-home:not(.auth-page) .hero-glass {
  width: min(calc(100vw - 96px), 1180px);
  border: 1px solid var(--line);
  border-radius: 30px;
  box-shadow: var(--shadow) !important;
}

body.site-home:not(.auth-page) .hero-glass {
  background:
    linear-gradient(135deg, rgba(31, 47, 39, 0.96), rgba(23, 36, 38, 0.88) 52%, rgba(42, 35, 25, 0.80)),
    rgba(10, 16, 14, 0.94);
}

body.site-home:not(.auth-page) .hero-glass::before,
body.site-home:not(.auth-page) .hero-glass::after {
  content: none !important;
}

html[data-theme="light"] body.site-home:not(.auth-page) .hero-glass {
  border-color: rgba(86, 116, 95, 0.20);
  background:
    linear-gradient(135deg, rgba(238, 246, 240, 0.96), rgba(233, 241, 243, 0.88) 52%, rgba(246, 239, 226, 0.80)),
    rgba(255, 255, 255, 0.94);
}

body.site-home:not(.auth-page) .server-status-line,
html[data-theme="light"] body.site-home:not(.auth-page) .server-status-line {
  border-radius: 999px;
  box-shadow: none !important;
}

body.site-home:not(.auth-page) .server-status-line {
  border-color: rgba(222, 238, 229, 0.20);
  background: rgba(255, 255, 255, 0.075);
  color: rgba(235, 245, 239, 0.86);
}

html[data-theme="light"] body.site-home:not(.auth-page) .server-status-line {
  border-color: rgba(86, 116, 95, 0.18);
  background: rgba(255, 255, 255, 0.78);
  color: #5d6960;
}

body.site-home:not(.auth-page) .big-server-ip,
html[data-theme="light"] body.site-home:not(.auth-page) .big-server-ip {
  width: auto;
  max-width: 100%;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none !important;
  padding: 0;
  white-space: nowrap;
  word-break: keep-all;
  overflow-wrap: normal;
  font-size: clamp(2.5rem, 5.2vw, 4.85rem);
  line-height: 1;
  text-shadow: none !important;
}

body.site-home:not(.auth-page) .big-server-ip {
  color: rgba(250, 255, 252, 0.98);
}

html[data-theme="light"] body.site-home:not(.auth-page) .big-server-ip {
  color: #213629;
}

body.site-home:not(.auth-page) .copy-btn,
html[data-theme="light"] body.site-home:not(.auth-page) .copy-btn,
body.site-home:not(.auth-page) .server-meta span,
body.site-home:not(.auth-page) .server-meta a,
html[data-theme="light"] body.site-home:not(.auth-page) .server-meta span,
html[data-theme="light"] body.site-home:not(.auth-page) .server-meta a {
  box-shadow: none !important;
}

body.site-home:not(.auth-page) .copy-btn,
body.site-home:not(.auth-page) .server-meta span,
body.site-home:not(.auth-page) .server-meta a {
  border-color: rgba(222, 238, 229, 0.18);
  background: rgba(255, 255, 255, 0.075);
}

html[data-theme="light"] body.site-home:not(.auth-page) .copy-btn,
html[data-theme="light"] body.site-home:not(.auth-page) .server-meta span,
html[data-theme="light"] body.site-home:not(.auth-page) .server-meta a {
  border-color: rgba(86, 116, 95, 0.16);
  background: rgba(255, 255, 255, 0.72);
}

@media (max-width: 760px) {
  body.site-home:not(.auth-page) .hero-glass,
  html[data-theme="light"] body.site-home:not(.auth-page) .hero-glass {
    width: 100%;
  }

  body.site-home:not(.auth-page) .big-server-ip,
  html[data-theme="light"] body.site-home:not(.auth-page) .big-server-ip {
    width: 100%;
    max-width: 100%;
    font-size: clamp(1.82rem, 10.5vw, 3rem);
  }
}

/* 2026-06-03: brighter dark home card, aligned auth close, smoother edition toggle */
body.site-home:not(.auth-page) .hero-glass {
  border-color: rgba(222, 238, 229, 0.34);
  background:
    linear-gradient(135deg, rgba(47, 68, 58, 0.98), rgba(38, 57, 59, 0.92) 52%, rgba(63, 54, 39, 0.84)),
    rgba(18, 27, 24, 0.96);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    0 24px 58px rgba(0, 0, 0, 0.24) !important;
}

body.site-home:not(.auth-page) .server-name {
  color: rgba(238, 248, 243, 0.86);
}

body.site-home:not(.auth-page) .big-server-ip {
  color: rgba(255, 255, 255, 0.99);
}

/* Home server address card tone lift */
body.site-home:not(.auth-page) .hero-glass {
  border-color: rgba(232, 245, 237, 0.42);
  background:
    linear-gradient(135deg, rgba(60, 84, 72, 0.99), rgba(50, 72, 75, 0.94) 52%, rgba(78, 67, 48, 0.88)),
    rgba(24, 35, 31, 0.98);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.20),
    0 24px 58px rgba(0, 0, 0, 0.20) !important;
}

body.site-home:not(.auth-page) .server-name {
  color: rgba(246, 252, 248, 0.90);
}

body.site-home:not(.auth-page) .big-server-ip {
  color: #ffffff;
}

/* Global theme tone balance */
:root {
  --bg: #111817;
  --bg-soft: #18201d;
  --surface: rgba(25, 33, 29, 0.90);
  --surface-solid: #19211d;
  --surface-raised: #202a25;
  --line: rgba(225, 233, 227, 0.16);
  --line-strong: rgba(190, 213, 198, 0.38);
  --text: #eef4f0;
  --text-strong: #ffffff;
  --muted: #b8c3bc;
  --muted-2: #92a099;
}

html[data-theme="light"] {
  --bg: #e9ece6;
  --bg-soft: #eef1eb;
  --surface: rgba(242, 245, 239, 0.90);
  --surface-solid: #f3f5ef;
  --surface-raised: #e5eae2;
  --line: rgba(24, 35, 30, 0.18);
  --line-strong: rgba(55, 78, 64, 0.34);
  --text: #202820;
  --text-strong: #0d130f;
  --muted: #59645d;
  --muted-2: #727c75;
}

body {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.026), transparent 34%),
    linear-gradient(135deg, rgba(139, 191, 152, 0.030), transparent 32%),
    linear-gradient(225deg, rgba(148, 182, 191, 0.030), transparent 34%),
    var(--bg);
}

html[data-theme="light"] body {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.32), transparent 38%),
    linear-gradient(135deg, rgba(82, 124, 94, 0.035), transparent 32%),
    linear-gradient(225deg, rgba(93, 127, 137, 0.032), transparent 34%),
    var(--bg);
}

body.site-home:not(.auth-page) .hero-glass {
  border-color: rgba(232, 245, 237, 0.46);
  background:
    linear-gradient(135deg, rgba(64, 90, 77, 0.99), rgba(54, 78, 81, 0.95) 52%, rgba(82, 71, 52, 0.90)),
    rgba(27, 39, 35, 0.99);
}

html[data-theme="light"] body.site-home:not(.auth-page) .hero-glass {
  border-color: rgba(68, 94, 76, 0.26);
  background:
    linear-gradient(135deg, rgba(222, 232, 224, 0.96), rgba(218, 229, 231, 0.90) 52%, rgba(232, 224, 207, 0.84)),
    rgba(239, 243, 237, 0.96);
}

html[data-theme="light"] body.site-home:not(.auth-page) .big-server-ip {
  color: #1a2a20;
}

/* Final write-page list sizing pass */
@keyframes mw-panel-drop-in {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes mw-synced-list-panel-in {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

:where(.site-home, .site-app) .profile-menu {
  width: max-content !important;
  min-width: 168px !important;
  max-width: min(212px, calc(100vw - 24px)) !important;
  gap: 6px !important;
  padding: 8px !important;
}

:where(.site-home, .site-app) .profile-menu button {
  min-height: 40px !important;
  padding: 0 12px !important;
  font-size: 0.92rem !important;
  white-space: nowrap;
}

:where(.site-home, .site-app) :is(
  .profile-menu:not(.hidden),
  .notification-panel:not(.hidden),
  .mw-select-menu:not([hidden])
),
body.site-community-write :is(
  .editor-size-menu:not(.hidden),
  .editor-line-height-menu:not(.hidden),
  .editor-color-popover:not(.hidden)
) {
  -webkit-clip-path: none !important;
  clip-path: none !important;
}

body.site-community-write .editor-size-menu {
  display: block !important;
  width: 96px !important;
  min-width: 96px !important;
  max-width: 96px !important;
  max-height: min(356px, calc(100dvh - 132px)) !important;
  overflow-x: hidden !important;
  overflow-y: scroll !important;
  padding: 4px !important;
  scrollbar-gutter: stable !important;
  scrollbar-width: thin !important;
  scrollbar-color: rgba(232, 241, 238, 0.56) rgba(255, 255, 255, 0.08) !important;
}

body.site-community-write .editor-size-menu::-webkit-scrollbar {
  display: block !important;
  width: 8px !important;
}

body.site-community-write .editor-size-menu::-webkit-scrollbar-track {
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
}

body.site-community-write .editor-size-menu::-webkit-scrollbar-thumb {
  border: 2px solid transparent;
  border-radius: 999px;
  background: rgba(232, 241, 238, 0.52);
  -webkit-background-clip: content-box;
  background-clip: content-box;
}

html[data-theme="light"] body.site-community-write .editor-size-menu {
  scrollbar-color: rgba(42, 66, 58, 0.44) rgba(0, 0, 0, 0.06) !important;
}

html[data-theme="light"] body.site-community-write .editor-size-menu::-webkit-scrollbar-track {
  background: rgba(20, 31, 26, 0.06);
}

html[data-theme="light"] body.site-community-write .editor-size-menu::-webkit-scrollbar-thumb {
  background: rgba(42, 66, 58, 0.42);
  -webkit-background-clip: content-box;
  background-clip: content-box;
}

body.site-community-write .editor-size-list {
  display: grid !important;
  gap: 2px !important;
  min-width: 0 !important;
}

body.site-community-write .editor-size-option {
  justify-content: flex-start !important;
  width: 100% !important;
  height: 31px !important;
  min-height: 31px !important;
  padding: 0 10px !important;
}

body.site-community-write .editor-line-height-menu {
  width: 76px !important;
  min-width: 76px !important;
  max-width: 76px !important;
  padding: 4px !important;
  overflow: visible !important;
}

body.site-community-write .editor-line-height-menu button {
  width: 100% !important;
  height: 30px !important;
  min-height: 30px !important;
  padding: 0 !important;
  justify-content: center !important;
}

body.site-community-write .editor-line-height-custom {
  display: flex !important;
  justify-content: center !important;
  margin-top: 3px !important;
  padding: 5px 0 2px !important;
}

body.site-community-write .editor-line-height-custom input {
  width: 52px !important;
  min-height: 30px !important;
  padding: 0 5px !important;
}

.auth-close {
  display: inline-grid !important;
  place-items: center !important;
  align-items: center !important;
  justify-items: center !important;
  padding: 0 !important;
  font-size: 0 !important;
  line-height: 1 !important;
  text-align: center;
}

.auth-close::before {
  content: "\00d7";
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
  color: currentColor;
  font-size: 21px;
  font-weight: 700;
  line-height: 1;
  transform: none !important;
}

.edition-toggle {
  --toggle-pad: 4px;
  --toggle-gap: 4px;
  --toggle-offset: 0px;
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--toggle-gap);
  min-height: 46px;
  overflow: hidden;
  isolation: isolate;
  border: 1px solid rgba(222, 238, 229, 0.18);
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.105), rgba(255, 255, 255, 0.032)),
    rgba(7, 17, 20, 0.34);
  padding: var(--toggle-pad);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 8px 20px rgba(0, 0, 0, 0.12);
  transition:
    border-color var(--motion) var(--ease),
    background var(--motion) var(--ease),
    box-shadow var(--motion) var(--ease);
}

.edition-toggle::before {
  content: "";
  position: absolute;
  top: var(--toggle-pad);
  left: var(--toggle-pad);
  z-index: 0;
  width: calc((100% - (var(--toggle-pad) * 2) - var(--toggle-gap)) / 2);
  height: calc(100% - (var(--toggle-pad) * 2));
  border-radius: 11px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0.07)),
    linear-gradient(135deg, color-mix(in srgb, var(--accent) 30%, transparent), rgba(104, 199, 238, 0.24)),
    rgba(33, 53, 48, 0.90);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    0 8px 18px rgba(0, 0, 0, 0.16);
  transform: translate3d(var(--toggle-offset), 0, 0);
  transition:
    transform var(--motion-slow) var(--ease),
    background var(--motion) var(--ease),
    box-shadow var(--motion) var(--ease);
}

.edition-toggle[data-selected="bedrock"],
.edition-toggle:has(input[value="bedrock"]:checked) {
  --toggle-offset: calc(100% + var(--toggle-gap));
}

.edition-toggle label {
  position: relative;
  z-index: 1;
  min-width: 0;
  cursor: pointer;
}

.edition-toggle span {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  border-radius: 11px;
  color: rgba(226, 238, 233, 0.68);
  font-size: 0.86rem;
  font-weight: 850;
  line-height: 1;
  transition:
    color var(--motion) var(--ease),
    transform var(--motion) var(--ease),
    opacity var(--motion) var(--ease);
}

.edition-toggle input:checked + span {
  background: transparent !important;
  box-shadow: none !important;
  color: #ffffff;
  transform: translateY(-1px);
}

.edition-toggle input:focus-visible + span {
  outline: 2px solid rgba(104, 199, 238, 0.42);
  outline-offset: -2px;
}

html[data-theme="light"] .edition-toggle {
  border-color: rgba(40, 64, 54, 0.14);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.78), rgba(255, 255, 255, 0.52)),
    rgba(235, 242, 237, 0.82);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.82),
    0 8px 18px rgba(30, 54, 44, 0.08);
}

html[data-theme="light"] .edition-toggle::before {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.70)),
    linear-gradient(135deg, rgba(98, 170, 118, 0.24), rgba(87, 151, 171, 0.18));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.94),
    0 8px 16px rgba(30, 54, 44, 0.10);
}

html[data-theme="light"] .edition-toggle span {
  color: rgba(31, 42, 36, 0.62);
}

html[data-theme="light"] .edition-toggle input:checked + span {
  color: #13231a;
}
/* Final shared header, friend panel, and floating theme placement */
:where(.site-home, .site-app) .profile-menu-wrap {
  position: relative;
}

:where(.site-home, .site-app) .profile-menu {
  top: calc(100% + 10px) !important;
  right: 0 !important;
  gap: 8px !important;
  padding: 10px !important;
}

:where(.site-home, .site-app) .profile-menu button {
  min-height: 43px !important;
}

:where(.site-home, .site-app) #notification-panel {
  position: fixed !important;
  top: var(--notification-panel-top, calc(var(--nav-height, 74px) + 10px)) !important;
  right: auto !important;
  left: var(--notification-panel-left, auto) !important;
  z-index: 8600 !important;
  width: min(360px, calc(100vw - 24px));
}

:where(.site-home, .site-app) .notification-panel.hidden {
  display: none !important;
}

:where(.site-home, .site-app) .notification-head,
:where(.site-home, .site-app) .notification-list {
  background: var(--surface-solid);
}

body.site-community-hub .friend-add-form {
  grid-template-columns: minmax(88px, 96px) minmax(0, 1fr) 62px !important;
  align-items: center;
  gap: 8px !important;
}

body.site-community-hub .friend-add-form input {
  width: 100%;
  min-width: 0;
}

body.site-community-hub .friend-add-form .forum-action-btn {
  width: 100%;
  min-width: 0;
  padding-right: 8px;
  padding-left: 8px;
}

body.site-community-hub select#friend-edition-input + .mw-select {
  width: 100% !important;
  min-width: 0 !important;
}

body.site-community-hub select#friend-edition-input + .mw-select .mw-select-trigger {
  min-width: 0;
  padding-right: 10px !important;
  padding-left: 11px !important;
}

.floating-theme-toggle {
  bottom: calc(24px + env(safe-area-inset-bottom)) !important;
}

body.site-home:not(.auth-page) .floating-theme-toggle {
  bottom: calc(52px + env(safe-area-inset-bottom)) !important;
}

@media (max-width: 480px) {
  body.site-community-hub .friend-add-form {
    grid-template-columns: minmax(82px, 92px) minmax(0, 1fr) !important;
  }

  body.site-community-hub .friend-add-form .forum-action-btn {
    grid-column: 1 / -1;
  }
}

/* 2026-06-05: restore profile menu scale and community list rail spacing */
:where(.site-home, .site-app) .profile-menu {
  box-sizing: border-box !important;
  width: min(232px, calc(100vw - 24px)) !important;
  min-width: min(232px, calc(100vw - 24px)) !important;
  max-width: min(232px, calc(100vw - 24px)) !important;
  gap: 0 !important;
  overflow: hidden;
  padding: 0 !important;
}

:where(.site-home, .site-app) .profile-menu button {
  justify-content: center !important;
  min-height: 48px !important;
  padding-right: 10px !important;
  padding-left: 10px !important;
  text-align: center !important;
  white-space: nowrap;
}

/* 2026-06-08: hard restore the account dropdown to a full-width centered list. */
:where(.site-home, .site-app) .profile-menu {
  position: absolute !important;
  top: calc(100% + 10px) !important;
  right: 0 !important;
  display: block !important;
  box-sizing: border-box !important;
  width: min(244px, calc(100vw - 24px)) !important;
  min-width: min(244px, calc(100vw - 24px)) !important;
  max-width: min(244px, calc(100vw - 24px)) !important;
  margin: 0 !important;
  padding: 0 !important;
  gap: 0 !important;
  overflow: hidden !important;
  border: 1px solid var(--line-strong) !important;
  border-radius: var(--radius) !important;
  background: var(--surface-solid) !important;
}

:where(.site-home, .site-app) .profile-menu.hidden {
  display: none !important;
}

:where(.site-home, .site-app) .profile-menu button {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  min-height: 50px !important;
  margin: 0 !important;
  padding: 0 12px !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: var(--text) !important;
  font-size: 0.96rem !important;
  font-weight: 820 !important;
  line-height: 1.1 !important;
  text-align: center !important;
  white-space: nowrap !important;
}

:where(.site-home, .site-app) .profile-menu button + button {
  border-top: 1px solid var(--line) !important;
}

:where(.site-home, .site-app) .profile-menu button:hover,
:where(.site-home, .site-app) .profile-menu button:focus-visible {
  background: rgba(139, 191, 152, 0.12) !important;
  color: var(--text-strong) !important;
}

body.site-community-hub:not(.is-community-post-detail) {
  --community-left-ad-width: 320px;
}

:where(.site-home, .site-app) .minecraft-unverified-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 18px;
  margin-left: 5px;
  border: 1px solid rgba(232, 184, 94, 0.36);
  border-radius: 999px;
  background: rgba(232, 184, 94, 0.11);
  padding: 0 6px;
  color: #f1c778;
  font-size: 0.68rem;
  font-style: normal;
  font-weight: 950;
  line-height: 1;
  vertical-align: middle;
  white-space: nowrap;
}

:where(.site-home, .site-app) .user-name-mini.has-unverified-author {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  max-width: 188px;
}

:where(.site-home, .site-app) .user-name-mini .minecraft-unverified-badge {
  margin-left: 0;
  padding-inline: 5px;
  font-size: 0.6rem;
}

html[data-theme="light"] :where(.site-home, .site-app) .minecraft-unverified-badge {
  border-color: rgba(171, 104, 16, 0.30);
  background: rgba(242, 179, 67, 0.18);
  color: #8a5208;
}

body.site-community-hub:not(.is-community-post-detail) .community-page-layout,
html[data-nav-align="center"] body.site-community-hub:not(.is-community-post-detail) .community-page-layout {
  grid-template-columns: 320px minmax(0, 1fr) 320px !important;
  gap: 18px !important;
}

body.site-community-hub:not(.is-community-post-detail) .community-left-rail {
  justify-items: stretch;
  width: 100%;
  max-width: none;
}

body.site-community-hub:not(.is-community-post-detail) .community-left-rail .community-ad-card {
  justify-self: stretch;
  width: var(--community-left-ad-width) !important;
  max-width: var(--community-left-ad-width) !important;
  min-height: min(520px, calc(100svh - var(--nav-height) - 48px)) !important;
  padding: 12px !important;
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.010)),
    rgba(255, 255, 255, 0.026);
}

body.site-community-hub:not(.is-community-post-detail) .community-left-rail .community-ad-card strong {
  max-width: 58px;
  line-height: 1.35;
}

body.site-community-hub .hub-write-start {
  gap: 0 !important;
}

body.site-community-hub .community-compose-entry {
  flex-basis: 100%;
  width: 100%;
}

body.site-community.community-guest-readonly #comment-root-composer-slot,
body.site-community.community-guest-readonly .comment-inline-composer-slot {
  display: none !important;
}

body.site-community.community-guest-readonly .comment-actions {
  display: none !important;
}

/* Final checkbox hit-target alignment. */
:where(.site-home, .site-app) :is(.check-row, .setting-row, .follow-notify-toggle) {
  cursor: pointer;
}

:where(.site-home, .site-app) :is(.check-row, .setting-row, .follow-notify-toggle) input[type="checkbox"] {
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  appearance: none !important;
  position: relative !important;
  inset: auto !important;
  z-index: 3 !important;
  display: inline-grid !important;
  box-sizing: border-box !important;
  inline-size: var(--checkbox-size, 20px) !important;
  block-size: var(--checkbox-size, 20px) !important;
  width: var(--checkbox-size, 20px) !important;
  height: var(--checkbox-size, 20px) !important;
  min-inline-size: var(--checkbox-size, 20px) !important;
  min-block-size: var(--checkbox-size, 20px) !important;
  min-width: var(--checkbox-size, 20px) !important;
  min-height: var(--checkbox-size, 20px) !important;
  max-inline-size: var(--checkbox-size, 20px) !important;
  max-block-size: var(--checkbox-size, 20px) !important;
  max-width: var(--checkbox-size, 20px) !important;
  max-height: var(--checkbox-size, 20px) !important;
  flex: 0 0 var(--checkbox-size, 20px) !important;
  align-self: center !important;
  margin: 0 !important;
  padding: 0 !important;
  opacity: 1 !important;
  pointer-events: auto !important;
  transform: none !important;
  vertical-align: middle !important;
}

:where(.site-home, .site-app) .check-row {
  align-items: center;
}

:where(.site-home, .site-app) :is(.check-row, .setting-row, .follow-notify-toggle) > span {
  pointer-events: none;
}

:where(.site-home, .site-app) :is(.check-row, .setting-row, .follow-notify-toggle) > span :is(a, button) {
  pointer-events: auto;
}

@media (max-width: 1380px) {
  body.site-community-hub:not(.is-community-post-detail) .community-page-layout,
  html[data-nav-align="center"] body.site-community-hub:not(.is-community-post-detail) .community-page-layout {
    grid-template-columns: minmax(0, 1fr) minmax(260px, 300px) !important;
  }

  body.site-community-hub:not(.is-community-post-detail) .community-main-column {
    grid-column: 1;
  }

  body.site-community-hub:not(.is-community-post-detail) .community-right-rail {
    grid-column: 2;
  }
}

@media (max-width: 1020px) {
  body.site-community-hub:not(.is-community-post-detail) .community-page-layout,
  html[data-nav-align="center"] body.site-community-hub:not(.is-community-post-detail) .community-page-layout {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  body.site-community-hub:not(.is-community-post-detail) .community-main-column,
  body.site-community-hub:not(.is-community-post-detail) .community-right-rail {
    grid-column: 1;
  }
}

/* Global notice surfaces */
.global-special-notice {
  position: -webkit-sticky;
  position: sticky;
  top: var(--nav-height, 74px);
  z-index: 7800;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  width: 100%;
  border-bottom: 1px solid rgba(104, 199, 238, 0.30);
  background: color-mix(in srgb, var(--surface-solid) 88%, var(--accent-blue) 12%);
  color: var(--text);
  padding: 11px max(var(--page-pad, 20px), calc((100vw - 1320px) / 2));
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18);
}

.global-special-notice > div {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.global-special-notice strong {
  color: var(--text-strong);
  font-size: 0.92rem;
  font-weight: 950;
  white-space: nowrap;
}

.global-special-notice span {
  min-width: 0;
  overflow: hidden;
  color: var(--text);
  font-size: 0.88rem;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.global-special-notice button {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-strong);
  font-size: 1.2rem;
  line-height: 1;
}

.global-forced-notice {
  position: fixed;
  inset: 0;
  z-index: 9200;
  display: grid;
  place-items: center;
  background: rgba(0, 0, 0, 0.48);
  padding: 20px;
}

.global-forced-card {
  width: min(100%, 430px);
  border: 1px solid rgba(215, 170, 100, 0.42);
  border-radius: 8px;
  background: var(--surface-solid);
  color: var(--text);
  padding: 22px;
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.36);
}

.global-forced-card > span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  border: 1px solid rgba(215, 170, 100, 0.38);
  border-radius: 999px;
  background: rgba(215, 170, 100, 0.10);
  color: var(--warning);
  padding: 0 10px;
  font-size: 0.78rem;
  font-weight: 950;
}

.global-forced-card h2 {
  margin: 14px 0 8px;
  color: var(--text-strong);
  font-size: 1.25rem;
  line-height: 1.25;
}

.global-forced-card p {
  margin: 0;
  color: var(--text);
  line-height: 1.55;
  white-space: pre-wrap;
}

.global-forced-card button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 96px;
  min-height: 40px;
  margin-top: 18px;
  border: 1px solid rgba(139, 191, 152, 0.34);
  border-radius: 8px;
  background: rgba(139, 191, 152, 0.16);
  color: var(--text-strong);
  font-weight: 950;
}

.global-forced-card button:disabled {
  cursor: wait;
  opacity: 0.62;
}

@media (max-width: 640px) {
  .global-special-notice > div {
    display: grid;
    gap: 2px;
  }

  .global-special-notice span {
    white-space: normal;
  }
}

/* Absolute post detail width guard. */
body.site-community-post {
  --mw-shell-width: 920px !important;
  --post-shell-max: 920px;
}

body.site-community-post .forum-shell {
  width: min(calc(100% - 16px), 920px) !important;
  max-width: 920px !important;
  padding-right: 8px !important;
  padding-left: 8px !important;
}

body.site-community-post #app-view-post,
body.site-community-post .post-detail-layout,
body.site-community-post .post-detail {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
}

body.site-community-post .community-thin-ad {
  display: none !important;
}

body.site-community-hub.is-community-post-detail .community-shell {
  --mw-shell-width: 920px !important;
  width: min(calc(100% - 16px), 920px) !important;
  max-width: 920px !important;
}

body.site-community-hub.is-community-post-detail .community-page-layout,
body.site-community-hub.is-community-post-detail #app-view-post,
body.site-community-hub.is-community-post-detail .post-detail-layout,
body.site-community-hub.is-community-post-detail .post-detail {
  width: 100% !important;
  max-width: 100% !important;
}

body.site-community-hub.is-community-post-detail .community-page-layout {
  grid-template-columns: minmax(0, 1fr) !important;
}

/* Community rail gap guard: remove the old left grid column when the rail is fixed. */
@media (min-width: 1181px) {
  body.site-community-hub {
    --community-integrated-rail-width: 334px;
  }

  body.site-community-hub:not(.is-community-post-detail) .community-shell,
  html[data-nav-align="center"] body.site-community-hub:not(.is-community-post-detail) .community-shell {
    width: calc(100vw - var(--community-integrated-rail-width)) !important;
    max-width: none !important;
    margin-right: 0 !important;
    margin-left: var(--community-integrated-rail-width) !important;
    padding-right: 0 !important;
    padding-left: 0 !important;
  }

  body.site-community-hub:not(.is-community-post-detail) .community-page-layout,
  html[data-nav-align="center"] body.site-community-hub:not(.is-community-post-detail) .community-page-layout {
    grid-template-columns: minmax(0, 1fr) minmax(300px, 344px) !important;
    gap: 18px !important;
    width: 100% !important;
    margin: 0 !important;
  }

  body.site-community-hub:not(.is-community-post-detail) .community-main-column,
  body.site-community-hub:not(.is-community-post-detail) .hub-channel,
  body.site-community-hub:not(.is-community-post-detail) .hub-board-head,
  body.site-community-hub:not(.is-community-post-detail) .community-board.hub-board-card,
  html[data-nav-align="center"] body.site-community-hub:not(.is-community-post-detail) .community-main-column,
  html[data-nav-align="center"] body.site-community-hub:not(.is-community-post-detail) .hub-channel,
  html[data-nav-align="center"] body.site-community-hub:not(.is-community-post-detail) .hub-board-head,
  html[data-nav-align="center"] body.site-community-hub:not(.is-community-post-detail) .community-board.hub-board-card {
    grid-column: 1 !important;
    justify-self: stretch !important;
    width: 100% !important;
    max-width: none !important;
    margin-left: 0 !important;
    transform: none !important;
  }

  body.site-community-hub:not(.is-community-post-detail) .community-right-rail,
  html[data-nav-align="center"] body.site-community-hub:not(.is-community-post-detail) .community-right-rail {
    grid-column: 2 !important;
  }
}

/* Community rail final guard: sidebar occupies the first grid column, not a fixed overlay. */
@media (min-width: 1181px) {
  body.site-community-hub:not(.is-community-post-detail) .community-shell,
  html[data-nav-align="center"] body.site-community-hub:not(.is-community-post-detail) .community-shell {
    box-sizing: border-box !important;
    width: 100vw !important;
    max-width: none !important;
    margin-right: 0 !important;
    margin-left: 0 !important;
    padding-right: 18px !important;
    padding-left: 0 !important;
  }

  body.site-community-hub:not(.is-community-post-detail) .community-page-layout,
  html[data-nav-align="center"] body.site-community-hub:not(.is-community-post-detail) .community-page-layout {
    display: grid !important;
    grid-template-columns: var(--community-integrated-rail-width) minmax(0, 1fr) minmax(300px, 344px) !important;
    gap: 18px !important;
    align-items: start !important;
    width: 100% !important;
    margin: 0 !important;
  }

  body.site-community-hub:not(.is-community-post-detail) .community-left-rail,
  html[data-nav-align="center"] body.site-community-hub:not(.is-community-post-detail) .community-left-rail {
    position: -webkit-sticky !important;
    position: sticky !important;
    inset: auto !important;
    top: var(--nav-height, 74px) !important;
    z-index: 64 !important;
    grid-column: 1 !important;
    grid-row: 1 !important;
    display: block !important;
    align-self: start !important;
    box-sizing: border-box !important;
    width: var(--community-integrated-rail-width) !important;
    max-width: var(--community-integrated-rail-width) !important;
    height: calc(100svh - var(--nav-height, 74px)) !important;
    padding: 26px 16px 36px !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
  }

  body.site-community-hub:not(.is-community-post-detail) .community-main-column,
  html[data-nav-align="center"] body.site-community-hub:not(.is-community-post-detail) .community-main-column {
    grid-column: 2 !important;
    grid-row: 1 !important;
    justify-self: stretch !important;
    width: 100% !important;
    max-width: none !important;
    margin-left: 0 !important;
    transform: none !important;
  }

  body.site-community-hub:not(.is-community-post-detail) .community-right-rail,
  html[data-nav-align="center"] body.site-community-hub:not(.is-community-post-detail) .community-right-rail {
    grid-column: 3 !important;
    grid-row: 1 !important;
    display: grid !important;
    width: 100% !important;
  }
}

/* 2026-06-15: guest header alignment, stable avatars, and compact account menu. */
.navbar .guest-nav,
html[data-nav-align="center"] .navbar .guest-nav,
html[data-nav-align="right"] .navbar .guest-nav {
  flex: 1 1 auto !important;
  justify-content: flex-start !important;
  margin-right: auto !important;
}

.navbar .guest-nav .public-nav-link {
  flex: 0 0 auto !important;
}

@media (min-width: 761px) {
  html[data-nav-align="center"] .navbar .guest-nav,
  html[data-nav-align="right"] .navbar .guest-nav {
    position: relative !important;
    left: auto !important;
    width: auto !important;
    max-width: none !important;
    transform: none !important;
  }
}

:where(.site-home, .site-app) :is(.user-avatar-mini, .app-avatar) {
  overflow: hidden !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  image-rendering: pixelated !important;
}

:where(.site-home, .site-app) :is(.user-avatar-mini, .app-avatar).has-skin-avatar {
  background-position: center !important;
  background-repeat: no-repeat !important;
  background-size: cover !important;
  color: transparent !important;
  text-shadow: none !important;
}

:where(.site-home, .site-app) .profile-menu {
  display: grid !important;
  box-sizing: border-box !important;
  width: min(178px, calc(100vw - 24px)) !important;
  min-width: min(178px, calc(100vw - 24px)) !important;
  max-width: min(178px, calc(100vw - 24px)) !important;
  gap: 4px !important;
  overflow: hidden !important;
  padding: 6px !important;
  border: 1px solid var(--line) !important;
  border-radius: var(--radius) !important;
  background: var(--surface-solid) !important;
}

:where(.site-home, .site-app) .profile-menu.hidden {
  display: none !important;
}

:where(.site-home, .site-app) .profile-menu button {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  width: 100% !important;
  margin: 0 !important;
  border: 1px solid var(--line) !important;
  border-radius: var(--radius-sm) !important;
  background: rgba(255, 255, 255, 0.035) !important;
  padding-right: 10px !important;
  padding-left: 10px !important;
  text-align: left !important;
}

:where(.site-home, .site-app) .profile-menu button + button {
  border-top: 1px solid var(--line) !important;
}

:where(.site-home, .site-app) .profile-menu button:hover,
:where(.site-home, .site-app) .profile-menu button:focus-visible {
  border-color: var(--line-strong) !important;
  background: rgba(139, 191, 152, 0.12) !important;
  color: var(--text-strong) !important;
}

/* === Shared app icon-nav component (moved from community.css 2026-06-18) =======
   Scoped to body.has-app-rail so every page with the SPA sidebar shares one source. === */
/* === Shared community icon-nav component =================================
   Moved here from community-hub.css and broadened from `.site-community-hub`
   to `.site-community` so the community-hub SPA AND the standalone post page
   share one source. Rail positioning stays page-specific (community-hub.css /
   community-post.css); only the nav buttons/lists are shared here. === */
body.has-app-rail .side-nav {
  display: grid;
  gap: 2px;
}

body.has-app-rail .side-nav-btn {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  min-height: 46px;
  padding: 0 14px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 1.02rem;
  font-weight: 700;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  transition:
    background var(--motion-fast) var(--ease),
    color var(--motion-fast) var(--ease);
}

body.has-app-rail .side-nav-btn svg {
  flex: 0 0 auto;
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0.9;
}

body.has-app-rail .side-nav-btn:hover,
body.has-app-rail .side-nav-btn:focus-visible {
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  color: var(--text-strong);
}

body.has-app-rail .side-nav-btn.is-active {
  background: color-mix(in srgb, var(--accent) 16%, transparent);
  color: var(--text-strong);
  font-weight: 900;
}

body.has-app-rail .side-nav-btn.is-active svg {
  opacity: 1;
}

body.has-app-rail .side-nav-divider {
  display: block;
  height: 1px;
  margin: 8px 14px;
  background: var(--line);
}

body.has-app-rail .side-communities {
  display: grid;
  gap: 8px;
  margin-top: 6px;
  border-top: 1px solid var(--line);
  padding-top: 14px;
}

body.has-app-rail .side-communities-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 0 8px;
}

body.has-app-rail .side-communities-head strong {
  color: var(--text-strong);
  font-size: 0.98rem;
}

body.has-app-rail .side-create-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  transition:
    background var(--motion-fast) var(--ease),
    border-color var(--motion-fast) var(--ease),
    color var(--motion-fast) var(--ease);
}

body.has-app-rail .side-create-btn svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

body.has-app-rail .side-create-btn:hover,
body.has-app-rail .side-create-btn:focus-visible {
  border-color: var(--line-strong);
  background: color-mix(in srgb, var(--accent) 14%, transparent);
  color: var(--text-strong);
}

body.has-app-rail .side-communities-sub {
  margin-top: 4px;
  padding: 0 8px;
  color: var(--muted-2);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* Mobile (rail stacks above content): nav becomes a scrollable icon row. */
@media (max-width: 1020px) {
  body.has-app-rail .side-nav {
    grid-auto-flow: column;
    grid-auto-columns: max-content;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  body.has-app-rail .side-nav-divider {
    display: none;
  }

  body.has-app-rail .side-communities {
    border-top: 0;
    padding-top: 4px;
  }
}

/* === App-rail page layout (2026-06-18) ====================================
   For non-SPA pages (account/console/admin/home) that adopt the SPA sidebar.
   Nav-button styling comes from body.has-app-rail above; this adds the fixed
   left rail + content offset. The SPA hub/post keep their own rail layout. === */
@media (min-width: 1181px) {
  body.app-rail-layout {
    padding-left: 334px;
  }
  body.app-rail-layout > .community-left-rail.app-rail {
    position: fixed;
    inset: var(--nav-height, 74px) auto 0 0;
    z-index: 40;
    box-sizing: border-box;
    width: 334px;
    display: grid;
    align-content: start;
    gap: 10px;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    border-right: 1px solid var(--line);
    background: var(--surface-solid, #121714);
    padding: 22px 18px 34px;
  }
}
@media (max-width: 1180px) {
  body.app-rail-layout > .community-left-rail.app-rail {
    position: static;
    width: 100%;
    margin: calc(var(--nav-height, 74px) + 8px) 0 14px;
    border-bottom: 1px solid var(--line);
    padding: 0 clamp(14px, 4vw, 32px) 14px;
  }
}

/* On app-rail pages the SPA left rail already fills the left edge, so drop the
   redundant thin ad rail and let the editor span the full width. */
body.app-rail-layout :is(#app-view-write, #app-view-edit) {
  grid-template-columns: minmax(0, 1fr) !important;
}
body.app-rail-layout .write-layout {
  grid-column: 1 !important;
}
body.app-rail-layout .community-thin-ad {
  display: none !important;
}

/* Home is the public landing hero. The SPA rail belongs to the logged-in app
   experience, so guests keep the clean hero (no rail, no offset). The rail
   appears once home.js confirms the session and adds body.user-active. */
body.site-home:not(.user-active) {
  padding-left: 0 !important;
}
body.site-home:not(.user-active) .app-rail {
  display: none !important;
}

/* === Mobile bottom tab bar (Instagram-style, 2026-06-19) ==================
   On phones the SPA icon rail leaves the content flow and becomes a fixed
   bottom navigation bar with the 5 primary channels (광장/채팅/친구/공지/문의).
   Secondary links (after the divider) + the community list are hidden there;
   the logo/profile in the top bar still cover home/account. Uses !important to
   win over community-hub.css's high-specificity mobile rail rules. */
@media (max-width: 768px) {
  body.has-app-rail .community-left-rail {
    position: fixed !important;
    inset: auto 0 0 0 !important;
    z-index: 60 !important;
    width: 100% !important;
    max-width: none !important;
    height: calc(56px + env(safe-area-inset-bottom, 0px)) !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 0 env(safe-area-inset-bottom, 0px) 0 !important;
    display: flex !important;
    align-items: stretch !important;
    gap: 0 !important;
    overflow: visible !important;
    border: 0 !important;
    border-top: 1px solid var(--line) !important;
    border-radius: 0 !important;
    background: var(--surface-solid, #121714) !important;
    box-shadow: 0 -8px 22px rgba(0, 0, 0, 0.32) !important;
  }
  body.has-app-rail .community-left-rail > .side-nav {
    display: flex !important;
    flex-direction: row !important;
    justify-content: space-around !important;
    align-items: stretch !important;
    width: 100% !important;
    gap: 0 !important;
    overflow: visible !important;
    padding: 0 !important;
  }
  body.has-app-rail .side-nav-divider,
  body.has-app-rail .side-nav-divider ~ .side-nav-btn,
  body.has-app-rail .side-communities {
    display: none !important;
  }
  body.has-app-rail .community-left-rail .side-nav-btn {
    flex: 1 1 0 !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 3px !important;
    min-height: 0 !important;
    height: 56px !important;
    padding: 0 !important;
    border-radius: 0 !important;
    font-size: 0.6rem !important;
    font-weight: 700 !important;
    letter-spacing: -0.01em !important;
    background: transparent !important;
    color: var(--muted) !important;
  }
  body.has-app-rail .community-left-rail .side-nav-btn svg {
    width: 24px !important;
    height: 24px !important;
  }
  body.has-app-rail .community-left-rail .side-nav-btn {
    color: var(--muted-2, var(--muted)) !important;
  }
  body.has-app-rail .community-left-rail .side-nav-btn.is-active {
    background: transparent !important;
    color: var(--text-strong) !important;
    font-weight: 800 !important;
  }
  body.has-app-rail .community-left-rail .side-nav-btn.is-active svg {
    stroke: var(--text-strong) !important;
    opacity: 1 !important;
  }
  /* keep page content clear of the fixed bar */
  body.has-app-rail {
    padding-bottom: calc(56px + env(safe-area-inset-bottom, 0px)) !important;
  }
}

/* Lift the floating theme toggle above the mobile bottom tab bar. */
@media (max-width: 768px) {
  body.has-app-rail:not(.site-home) .floating-theme-toggle,
  body.site-home.user-active .floating-theme-toggle {
    bottom: calc(64px + env(safe-area-inset-bottom, 0px)) !important;
  }
}
