/* Generated from styles.css: shared shell, sidebar, topbar and layout rules. */

@view-transition {
  navigation: auto;
}

::view-transition-old(root) {
  animation: 150ms ease both meltarion-page-out;
}

::view-transition-new(root) {
  animation: 220ms ease both meltarion-page-in;
}

@keyframes meltarion-page-out {
  to { opacity: .88; }
}

@keyframes meltarion-page-in {
  from { opacity: .88; }
}

.sidebar { view-transition-name: meltarion-sidebar; }
.topbar { view-transition-name: meltarion-topbar; }


.layout,
.app-shell {
  display: grid;
  grid-template-columns: var(--sidebar-width) minmax(0, 1fr);
  min-height: 100vh;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.layout::-webkit-scrollbar,
.app-shell::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none;
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  max-height: 100vh;
  padding: 20px 16px;
  background: rgba(10, 10, 11, 0.92);
  border-right: 1px solid var(--border);
  backdrop-filter: blur(12px);
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-gutter: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  z-index: 30;
}

.sidebar-inner,
.sidebar-scroll {
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-gutter: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.sidebar::-webkit-scrollbar,
.sidebar-inner::-webkit-scrollbar,
.sidebar-scroll::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none;
}

.sidebar-backdrop {
  position: fixed;
  inset: 0;
  z-index: 70;
  pointer-events: none;
  opacity: 0;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(2px);
  transition: opacity 180ms ease;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 8px 22px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 16px;
}

.sidebar-brand {
  width: 100%;
  border-radius: 10px;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
  transition:
    background 180ms ease,
    box-shadow 180ms ease,
    filter 180ms ease,
    border-color 180ms ease;
}

.sidebar-brand:hover,
.sidebar-brand:focus-visible {
  color: inherit;
  text-decoration: none;
  background: rgba(106, 58, 58, 0.10);
  box-shadow: 0 0 24px rgba(226, 126, 126, 0.08);
  filter: brightness(1.06);
  outline: none;
}

.brand-logo {
  width: 50px;
  height: 50px;
  object-fit: contain;
  border-radius: 8px;
  background: #0a0a0a;
  border: 1px solid rgba(255,255,255,0.05);
  box-shadow: 
    inset 0 1px 2px rgba(255,255,255,0.02),
    inset 0 -1px 2px rgba(0,0,0,0.6);
}

.brand-title {
  font-size: 20px;
  line-height: 1.05;
  font-weight: 900;
  letter-spacing: -0.055em;
}

.brand-subtitle {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

.nav-section { margin: 18px 0 22px; }

.sidebar-nav-group {
  margin: 14px 0 16px;
}

.sidebar-nav-group + .sidebar-nav-group {
  margin-top: 18px;
}

.nav-label {
  margin: 0 0 8px;
  padding: 0 10px;
  color: var(--muted-2);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.nav-link {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 10px 11px;
  border: 0;
  border-radius: 7px;
  color: #c0c0c0;
  background: transparent;
  cursor: pointer;
  text-align: left;
  font-size: 14px;
  font-weight: 700;
  transition: 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: #e8e8e8;
  background: rgba(106, 58, 58, 0.15);
}

.nav-link.active {
  box-shadow: 
    inset 3px 0 0 var(--brand),
    inset 0 1px 2px rgba(0,0,0,0.3),
    inset 0 -1px 1px rgba(255,255,255,0.03);
}

.nav-item {
  display: grid;
  gap: 2px;
  margin: 1px 0;
}

.nav-item > .nav-link {
  min-width: 0;
}

.nav-section-outline {
  display: none;
  gap: 2px;
  margin: 4px 0 6px 40px;
  padding-left: 10px;
  border-left: 1px solid rgba(170, 111, 105, 0.18);
  opacity: 0;
  transform: translateY(4px);
}

.nav-item.is-current .nav-section-outline {
  display: grid;
  animation: navOutlineIn 180ms cubic-bezier(.2, .8, .2, 1) both;
}

.nav-section-outline[hidden] {
  display: none !important;
}

.nav-section-link {
  min-height: 26px;
  display: flex;
  align-items: center;
  padding: 5px 8px;
  border-radius: 7px;
  color: var(--muted-2);
  font-size: 12px;
  font-weight: 750;
  line-height: 1.25;
  text-decoration: none;
  transition:
    color 160ms ease,
    background 160ms ease,
    box-shadow 160ms ease;
}

.nav-section-link:hover,
.nav-section-link:focus-visible,
.nav-section-link.active {
  color: #f0dede;
  background: rgba(106, 58, 58, 0.10);
  outline: none;
}

.nav-section-link.active {
  box-shadow: inset 2px 0 0 rgba(207, 122, 122, 0.58);
}

@media (prefers-reduced-motion: reduce) {
  .nav-item.is-current .nav-section-outline {
    animation: none !important;
    opacity: 1;
    transform: none;
  }
}

.nav-icon {
  width: 29px;
  height: 29px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  color: #a85858;
  background: rgba(106, 58, 58, 0.15);
  border: 1px solid rgba(106, 58, 58, 0.2);
  flex: 0 0 auto;
  box-shadow: 
    inset 0 1px 2px rgba(255,255,255,0.03),
    inset 0 -1px 2px rgba(0,0,0,0.4);
}

.server-note {
  display: block;
  color: var(--muted-2);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}

.main,
.main-content {
  min-width: 0;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  height: var(--topbar-height);
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: var(--topbar-gap, 16px);
  padding: 0 34px;
  border-bottom: 1px solid var(--border);
  background: rgba(10, 10, 11, 0.88);
  backdrop-filter: blur(12px);
  overflow: visible;
}

.topbar-breadcrumb {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  overflow: visible;
}

.crumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

.crumbs strong { color: var(--text); }

.topbar-server-group {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  overflow: visible;
}

.topbar-server-label {
  color: var(--muted-2);
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
}

.topbar-server-copy {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 38px;
  margin-block: 3px;
  padding: 0 13px;
  border: 1px solid rgba(170, 111, 105, 0.18);
  border-radius: 10px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.018)),
    rgba(29, 21, 24, 0.62);
  color: #f0dede;
  font: inherit;
  font-size: 13px;
  font-weight: 850;
  line-height: 1;
  letter-spacing: 0;
  cursor: pointer;
  box-shadow:
    0 10px 26px rgba(0, 0, 0, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
  transition:
    border-color 160ms ease,
    background 160ms ease,
    transform 160ms ease,
    color 160ms ease;
}

.topbar-server-copy:hover,
.topbar-server-copy:focus-visible {
  border-color: rgba(207, 122, 122, 0.44);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.065), rgba(255, 255, 255, 0.025)),
    rgba(52, 31, 34, 0.76);
  color: #fff4f4;
  outline: none;
  transform: translateY(-1px);
}

.topbar-server-copy.copied {
  border-color: rgba(123, 208, 155, 0.58);
}

.server-status-dot {
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  border-radius: 999px;
  background: #7bd09b;
  box-shadow: 0 0 0 4px rgba(123, 208, 155, 0.12);
}

.topbar-actions {
  justify-self: end;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  min-width: 0;
  flex-wrap: nowrap;
}

.top-socials,
.topbar-socials {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}

.topbar-notifications {
  position: relative;
  flex: 0 0 auto;
}

.topbar-notifications[hidden] {
  display: none !important;
}

.topbar-notifications-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(106, 58, 58, 0.18);
  border-radius: 10px;
  color: #e3d7d5;
  background: rgba(20, 20, 20, 0.6);
  box-shadow: inset 0 1px 2px rgba(255,255,255,0.03), inset 0 -1px 3px rgba(0,0,0,0.5);
  cursor: pointer;
  transition: 0.2s ease;
}

.topbar-notifications-button:hover,
.topbar-notifications-button:focus-visible,
.topbar-notifications.has-unread .topbar-notifications-button {
  border-color: rgba(199, 125, 116, 0.42);
  background: rgba(106, 58, 58, 0.22);
  box-shadow: 0 0 0 1px rgba(255, 126, 98, 0.1), 0 14px 34px rgba(255, 71, 54, 0.1);
}

.topbar-notifications-badge {
  position: absolute;
  top: -6px;
  right: -5px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: linear-gradient(145deg, #ff5c47, #b92925);
  border: 1px solid rgba(255, 215, 182, 0.4);
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
}

.topbar-notifications-dropdown {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  z-index: 120;
  width: min(380px, calc(100vw - 24px));
  max-height: min(520px, calc(100vh - var(--topbar-height, 72px) - 28px));
  overflow: hidden;
  border: 1px solid rgba(106, 58, 58, 0.24);
  border-radius: 16px;
  background: linear-gradient(160deg, rgba(25, 17, 17, 0.98), rgba(11, 11, 13, 0.98));
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.54), 0 0 0 1px rgba(255, 255, 255, 0.035);
}

.topbar-notifications-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 14px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.topbar-notifications-head strong {
  font-size: 15px;
}

.topbar-notifications-head button {
  border: 0;
  color: rgba(255, 200, 168, 0.9);
  background: transparent;
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.topbar-notifications-head button:disabled {
  opacity: 0.45;
  cursor: default;
}

.topbar-notifications-body {
  max-height: calc(min(520px, calc(100vh - var(--topbar-height, 72px) - 28px)) - 48px);
  overflow: auto;
  padding: 8px;
}

.topbar-notification-item {
  width: 100%;
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 10px;
  padding: 11px 10px;
  border: 1px solid transparent;
  border-radius: 14px;
  color: inherit;
  text-align: left;
  background: transparent;
  cursor: pointer;
  transition: 0.16s ease;
}

.topbar-notification-item:hover,
.topbar-notification-item:focus-visible {
  border-color: rgba(199, 125, 116, 0.24);
  background: rgba(106, 58, 58, 0.14);
}

.topbar-notification-item.is-unread {
  background: rgba(106, 58, 58, 0.11);
}

.topbar-notification-icon {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 11px;
  color: #ffb991;
  background: rgba(255, 126, 98, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.topbar-notification-icon-svg {
  width: 18px;
  height: 18px;
}

.topbar-notification-item.is-unread .topbar-notification-icon {
  border-color: color-mix(in srgb, currentColor 38%, transparent);
  box-shadow: 0 0 18px color-mix(in srgb, currentColor 22%, transparent), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.notification-category-town .topbar-notification-icon {
  color: #ffb36f;
  background: rgba(255, 151, 74, 0.1);
}

.notification-category-nation .topbar-notification-icon {
  color: #93b8ff;
  background: rgba(75, 125, 255, 0.11);
}

.notification-category-diplomacy .topbar-notification-icon {
  color: #d8bdff;
  background: rgba(165, 107, 255, 0.12);
}

.notification-category-account .topbar-notification-icon {
  color: #7bd09b;
  background: rgba(91, 206, 126, 0.1);
}

.notification-category-economy .topbar-notification-icon {
  color: #f4d35e;
  background: rgba(244, 211, 94, 0.11);
}

.notification-category-system .topbar-notification-icon {
  color: #d6c9c5;
  background: rgba(255, 255, 255, 0.07);
}

.topbar-notification-content {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.topbar-notification-content strong,
.topbar-notification-content span {
  overflow-wrap: anywhere;
}

.topbar-notification-content strong {
  font-size: 13px;
}

.topbar-notification-content span {
  color: var(--text-secondary);
  font-size: 12px;
  line-height: 1.45;
}

.topbar-notification-content time {
  color: var(--text-muted);
  font-size: 11px;
}

.topbar-notifications-state {
  padding: 28px 16px;
  color: var(--text-secondary);
  text-align: center;
  font-size: 13px;
}

.topbar-search {
  flex: 1 1 300px;
  min-width: 0;
  width: auto;
  max-width: 560px;
}

.topbar-auth {
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.content,
.page-container {
  width: min(var(--content-max-width), calc(100% - (var(--page-gutter) * 2)));
  margin: 0 auto;
  padding: 42px 0 80px;
}

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

.server-copy {
  width: 100%;
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) 46px;
  align-items: center;
  gap: 14px;
  padding: 16px;
  border-radius: 8px;
  border: 1px solid rgba(106, 58, 58, 0.15);
  background: rgba(20, 20, 20, 0.6);
  color: inherit;
  text-align: left;
  cursor: pointer;
  transition: 0.2s ease;
  position: relative;
  box-shadow: 
    inset 0 1px 2px rgba(255,255,255,0.03),
    inset 0 -1px 3px rgba(0,0,0,0.5);
}

.server-copy:hover {
  border-color: rgba(106, 58, 58, 0.25);
  background: rgba(30, 20, 20, 0.7);
  box-shadow: 
    inset 0 1px 2px rgba(255,255,255,0.05),
    inset 0 -1px 3px rgba(0,0,0,0.6);
}

.server-copy-icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 15px;
  color: #a85858;
  background: rgba(106, 58, 58, 0.12);
  border: 1px solid rgba(106, 58, 58, 0.16);
  box-shadow: 
    inset 0 1px 2px rgba(255,255,255,0.03),
    inset 0 -1px 2px rgba(0,0,0,0.4);
}

.server-copy-text strong {
  display: block;
  font-size: 18px;
  letter-spacing: -0.045em;
}

.server-copy-text small {
  display: block;
  margin-top: 4px;
  transition: 0.2s ease;
}

.server-copy:hover .copy-icon-btn {
  background: rgba(180, 80, 80, 0.12);
}

.server-online {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 7px;
  color: #b9adac;
  font-size: 12px;
  font-weight: 900;
  line-height: 1.2;
}

.cookies-layout {
  display: grid;
  gap: 22px;
}

.cookies-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-rows: 1fr;
  gap: 22px;
  align-items: stretch;
}

.cookies-info-card {
  min-height: 100%;
}

.cookies-choice-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.cookies-choice-card h2,
.cookies-choice-card p {
  margin-right: 0;
}

.cookies-choice-card .button {
  flex: 0 0 auto;
}

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

.store-layout .store-product-grid {
  grid-auto-rows: 1fr;
  margin-top: 0;
}

.store-layout .store-category-list {
  margin-top: 0;
}

@media (max-width: 860px) {

  .store-layout {
    display: block;
  }
}

.sidebar-privacy {
  margin-top: 12px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 238, 235, 0.07);
}

.sidebar-privacy-button {
  width: 100%;
  color: var(--muted);
}

.cookie-consent {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 10px;
  z-index: 80;
  display: flex;
  justify-content: center;
  padding: 0 clamp(10px, 1.4vw, 24px);
  pointer-events: none;
}

.cookie-consent-card {
  width: min(1760px, 100%);
  display: grid;
  grid-template-columns: minmax(300px, 0.95fr) minmax(460px, 1.45fr) minmax(245px, 0.72fr);
  gap: 14px;
  align-items: center;
  min-height: 128px;
  padding: 14px clamp(16px, 2vw, 28px);
  border: 1px solid rgba(196, 92, 72, 0.54);
  border-radius: 8px;
  background:
    radial-gradient(circle at 7% 42%, rgba(164, 85, 56, 0.16), transparent 22%),
    linear-gradient(105deg, rgba(24, 24, 27, 0.98), rgba(18, 17, 18, 0.96) 56%, rgba(25, 22, 21, 0.97));
  box-shadow: 0 -18px 70px rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(18px);
  pointer-events: auto;
}

.cookie-consent-settings .cookie-consent-card {
  max-width: none;
}

.cookie-consent-copy {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  min-width: 0;
}

.cookie-consent-icon {
  position: relative;
  width: 54px;
  height: 54px;
  border: 1px solid rgba(210, 113, 77, 0.22);
  border-radius: 50%;
  background:
    radial-gradient(circle at 38% 36%, transparent 0 16%, rgba(216, 111, 62, 0.92) 17% 20%, transparent 21%),
    radial-gradient(circle at 64% 58%, transparent 0 12%, rgba(216, 111, 62, 0.84) 13% 17%, transparent 18%),
    radial-gradient(circle at 44% 70%, transparent 0 9%, rgba(216, 111, 62, 0.76) 10% 14%, transparent 15%),
    rgba(170, 86, 50, 0.12);
  box-shadow: inset 0 0 0 13px rgba(0, 0, 0, 0.22), 0 0 26px rgba(175, 80, 50, 0.18);
}

.cookie-consent-icon::before {
  content: "";
  position: absolute;
  inset: 12px;
  border: 2px solid rgba(226, 122, 67, 0.9);
  border-top-color: transparent;
  border-right-color: transparent;
  border-radius: 50%;
  transform: rotate(-18deg);
}

.cookie-consent-icon span {
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(226, 122, 67, 0.9);
}

.cookie-consent-icon span:nth-child(1) { left: 19px; top: 19px; }

.cookie-consent-icon span:nth-child(2) { left: 32px; top: 26px; }

.cookie-consent-icon span:nth-child(3) { left: 23px; top: 36px; }

.cookie-consent-icon span:nth-child(4) { left: 37px; top: 38px; }

.cookie-consent-text {
  min-width: 0;
}

.cookie-consent-kicker {
  display: none;
}

.cookie-consent h2 {
  margin: 0 0 6px;
  color: var(--text);
  font-size: clamp(18px, 1.25vw, 22px);
  line-height: 1.2;
}

.cookie-consent p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.cookie-consent-more,
.cookie-consent-link {
  appearance: none;
  border: 0;
  background: none;
  color: #d48763;
  font: inherit;
  font-size: 13px;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.cookie-consent-more {
  margin-top: 8px;
  padding: 0;
}

.cookie-consent-link {
  padding: 0;
  text-decoration: none;
}

.cookie-consent-more:hover,
.cookie-consent-more:focus-visible,
.cookie-consent-link:hover,
.cookie-consent-link:focus-visible {
  color: #f0a27c;
}

.cookie-consent-actions {
  display: flex;
  min-height: 94px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border-left: 1px solid rgba(255, 238, 235, 0.04);
  background: rgba(255, 255, 255, 0.018);
}

.cookie-consent-action-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  width: 100%;
}

.cookie-consent-action-buttons .button {
  min-width: 0;
  justify-content: center;
  white-space: nowrap;
  min-height: 44px;
  padding: 10px 14px;
}

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

.cookie-consent-toggle {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  min-height: 94px;
  padding: 12px;
  border: 1px solid rgba(206, 94, 72, 0.24);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.012)),
    rgba(12, 12, 13, 0.32);
}

.cookie-consent-toggle strong {
  display: block;
  color: var(--text);
  font-size: 14px;
}

.cookie-consent-toggle small {
  display: block;
  margin-top: 7px;
  color: var(--muted-2);
  font-size: 12px;
  line-height: 1.38;
}

.cookie-consent-toggle input {
  width: 18px;
  height: 18px;
  margin: 0;
  flex: 0 0 auto;
  accent-color: var(--accent);
}

@media (max-width: 1180px) {
  .cookie-consent-card {
    grid-template-columns: minmax(0, 1fr) minmax(220px, 280px);
    gap: 8px;
    min-height: 0;
    padding: 8px clamp(12px, 1.6vw, 16px);
  }

  .cookie-consent-settings {
    grid-column: 1 / -1;
    order: 3;
  }

  .cookie-consent-actions {
    min-height: 0;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 8px;
    padding: 8px;
    border-left: 0;
    border-top: 1px solid rgba(255, 238, 235, 0.05);
  }

  .cookie-consent-action-buttons {
    width: 100%;
  }

  .cookie-consent-action-buttons .button {
    min-height: 36px;
    padding: 7px 10px;
  }

  .cookie-consent-copy {
    grid-template-columns: minmax(0, 1fr);
  }

  .cookie-consent-icon {
    display: none;
  }

  .cookie-consent-toggle {
    min-height: 44px;
    align-items: center;
    padding: 10px 12px;
  }

  .cookie-consent-toggle small {
    display: none;
  }
}

@media (max-width: 820px) and (min-width: 601px) {
  .cookie-consent-copy {
    grid-template-columns: minmax(0, 1fr);
  }

  .cookie-consent-icon {
    display: none;
  }

  .cookie-consent h2 {
    font-size: 18px;
  }

  .cookie-consent p {
    font-size: 13px;
    line-height: 1.32;
  }

  .cookie-consent-more {
    margin-top: 5px;
  }
}

@media (max-width: 600px) {
  .cookie-consent {
    bottom: 8px;
    padding: 0 10px;
  }

  .cookie-consent-card {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
    max-height: calc(100vh - 22px);
    padding: 12px;
    border-radius: 12px 12px 0 0;
  }

  .cookie-consent-copy {
    grid-template-columns: minmax(0, 1fr);
  }

  .cookie-consent-icon {
    width: 42px;
    height: 42px;
  }

  .cookie-consent-icon::before { inset: 10px; }
  .cookie-consent-icon span:nth-child(1) { left: 15px; top: 15px; }
  .cookie-consent-icon span:nth-child(2) { left: 25px; top: 20px; }
  .cookie-consent-icon span:nth-child(3) { left: 18px; top: 28px; }
  .cookie-consent-icon span:nth-child(4) { left: 29px; top: 30px; }

  .cookie-consent-settings {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 7px;
  }

  .cookie-consent-toggle {
    min-height: 0;
    padding: 9px 8px;
    gap: 7px;
  }

  .cookie-consent-toggle strong {
    font-size: 12px;
  }

  .cookie-consent-actions {
    padding: 0;
    background: none;
    flex-direction: column;
    align-items: stretch;
  }

  .cookie-consent-action-buttons {
    grid-template-columns: minmax(0, 1fr);
  }

  .cookie-consent h2 {
    font-size: 17px;
  }

  .cookie-consent p {
    font-size: 12px;
    line-height: 1.34;
  }

  .cookie-consent-more,
  .cookie-consent-link {
    font-size: 12px;
  }

  .cookie-consent-action-buttons .button {
    min-height: 38px;
    padding: 8px 10px;
  }
}

.reveal {
  opacity: 1;
  transform: none;
  transition:
    opacity 420ms ease,
    transform 520ms cubic-bezier(.2, .8, .2, 1);
  transition-delay: var(--reveal-delay, 0ms);
}

body.page-loading .reveal {
  opacity: 0;
  transform: translateY(18px);
  animation: revealFailOpen 1ms linear 300ms forwards;
}

body.page-ready .reveal {
  opacity: 1;
  transform: translateY(0);
}

/* The application shell persists during soft navigation and must never replay. */
body.page-loading .sidebar .reveal,
body.page-ready .sidebar .reveal,
.sidebar .reveal {
  opacity: 1;
  transform: none;
  animation: none;
  transition: none;
}

/* Shared entrance motion for content rendered after the initial page shell. */
.auto-reveal {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 420ms ease,
    transform 520ms cubic-bezier(.2, .8, .2, 1);
  transition-delay: var(--reveal-delay, 0ms);
}

.auto-reveal.is-revealed {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal,
  body.page-loading .reveal,
  body.page-ready .reveal {
    opacity: 1;
    transform: none;
    animation: none !important;
    transition: none !important;
  }

  .auto-reveal,
  .auto-reveal.is-revealed {
    opacity: 1;
    transform: none;
    transition: none !important;
  }
}

@media (max-width: 1023px) {
  .layout,
  .app-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    width: min(326px, 86vw);
    transform: translateX(-105%);
    transition: 0.22s ease;
  }

  body.menu-open .sidebar { transform: translateX(0); }
  .topbar {
    grid-template-columns: minmax(0, 1fr) auto;
    padding: 0 18px;
  }
  .topbar-actions {
    grid-template-columns: auto auto auto;
  }
  .content,
  .page-container {
    width: min(100% - var(--page-gutter), var(--content-max-width));
    padding-top: 28px;
  }
  .server-list { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .grid,
  .server-list { grid-template-columns: 1fr; }

  .crumbs {
    overflow: hidden;
    text-overflow: ellipsis;
  }
}

.sidebar,
.topbar,
.panel,
.side-card,
.shop-card,
.card,
.page-title,
.doc-card,
.toc,
.map-frame,
.notice {
  background:
    linear-gradient(180deg, rgba(22, 18, 17, 0.96) 0%, rgba(14, 12, 12, 0.97) 100%);
  border-color: rgba(255, 255, 255, 0.04);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.025),
    inset 0 -1px 0 rgba(0, 0, 0, 0.62),
    0 10px 24px rgba(0, 0, 0, 0.42);
}

.button,
.mini-copy,
.server-copy,
.copy-icon-btn,
.search input,
.shop-card .tag,
.badge,
.nav-link.active,
.nav-link:hover,
.server-copy-icon,
.card-icon,
.nav-icon,
.keycap {
  border: 1px solid var(--cocoa-border);
  background:
    radial-gradient(circle at 50% 45%, rgba(120, 73, 67, 0.10), transparent 62%),
    linear-gradient(180deg, rgba(44, 33, 31, 0.96) 0%, rgba(25, 20, 19, 0.98) 100%);
  box-shadow:
    inset 0 1px 0 var(--cocoa-highlight),
    inset 0 -1px 0 rgba(0, 0, 0, 0.88),
    inset 3px 3px 8px rgba(0, 0, 0, 0.66),
    inset -2px -2px 5px rgba(98, 68, 64, 0.08),
    0 1px 1px rgba(0, 0, 0, 0.28);
}

.button:hover,
.button.primary:hover,
.button.secondary:hover,
.copy-icon-btn:hover,
.server-copy:hover,
.mini-copy:hover {
  color: #f0e7e7;
  border-color: var(--cocoa-border-strong);
  background:
    radial-gradient(circle at 50% 42%, rgba(138, 84, 79, 0.14), transparent 64%),
    linear-gradient(180deg, rgba(45, 34, 32, 0.98) 0%, rgba(24, 19, 18, 1) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 227, 227, 0.05),
    inset 0 -1px 0 rgba(0, 0, 0, 0.94),
    inset 4px 4px 10px rgba(0, 0, 0, 0.76),
    inset -2px -2px 6px rgba(121, 85, 80, 0.09),
    0 0 0 1px rgba(10, 8, 8, 0.52),
    0 2px 5px rgba(0, 0, 0, 0.24);
}

.button:active,
.button.primary:active,
.button.secondary:active,
.copy-icon-btn:active,
.server-copy:active,
.mini-copy:active {
  color: #ebe1e1;
  background:
    radial-gradient(circle at 50% 44%, rgba(98, 61, 58, 0.08), transparent 64%),
    linear-gradient(180deg, rgba(31, 24, 23, 0.98) 0%, rgba(18, 15, 14, 1) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 220, 220, 0.025),
    inset 0 -1px 0 rgba(0, 0, 0, 0.96),
    inset 5px 5px 12px rgba(0, 0, 0, 0.82),
    inset -1px -1px 3px rgba(105, 74, 69, 0.05),
    0 0 0 1px rgba(9, 7, 7, 0.6);
}

.button,
.button span,
.button strong,
.button .label,
.copy-icon-btn,
.mini-copy,
.server-copy,
.server-copy-text strong,
.server-copy-text small,
.shop-card .button,
.nav-link.active,
.nav-link:hover {
  text-shadow:
    0 -1px 0 rgba(255, 232, 232, 0.05),
    0 1px 1px rgba(0, 0, 0, 0.88),
    0 2px 2px rgba(0, 0, 0, 0.38);
}

.button .icon,
.copy-icon-btn .copy-icon,
.server-copy .copy-icon,
.server-copy-icon .icon,
.nav-link .icon,
.nav-icon .icon,
.mini-copy-icon {
  color: var(--cocoa-accent);
}

.nav-link {
  position: relative;
  border: 1px solid transparent;
  border-radius: 14px;
  color: #bfb6b6;
}

.nav-link.active,
.nav-link:hover {
  color: #ece2e2;
}

.nav-link.active {
  background:
    radial-gradient(circle at 50% 45%, rgba(125, 76, 70, 0.10), transparent 62%),
    linear-gradient(180deg, rgba(42, 31, 29, 0.98) 0%, rgba(22, 18, 17, 1) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 224, 224, 0.035),
    inset 0 -1px 0 rgba(0, 0, 0, 0.92),
    inset 3px 3px 8px rgba(0, 0, 0, 0.7),
    inset -2px -2px 4px rgba(105, 76, 71, 0.06),
    0 0 0 1px rgba(8, 6, 6, 0.44);
}

.nav-icon,
.server-copy-icon,
.card-icon {
  background:
    linear-gradient(180deg, rgba(31, 24, 23, 0.98) 0%, rgba(19, 15, 15, 1) 100%);
  border-color: rgba(116, 79, 74, 0.32);
}

.mini-copy,
.server-copy {
  background:
    radial-gradient(circle at 50% 46%, rgba(111, 66, 61, 0.08), transparent 62%),
    linear-gradient(180deg, rgba(34, 27, 26, 0.98) 0%, rgba(19, 16, 15, 1) 100%);
  border-color: rgba(115, 79, 74, 0.4);
  color: #ded2d2;
}

.server-copy {
  border-radius: 8px;
}

.server-copy-text strong {
  color: #e5d9d9;
}

.server-copy-text small {
  display: block;
  margin-top: 3px;
  color: #978a89;
  font-size: 12px;
  line-height: 1.35;
}

.brand-title,
.shop-title h2,
h2,
.doc-card h3,
.card h3,
.shop-card h3 {
  text-shadow:
    0 -1px 0 rgba(255, 232, 232, 0.025),
    0 1px 1px rgba(0, 0, 0, 0.8);
}

.button:hover,
.button:focus-visible,
.mini-copy:hover,
.server-copy:hover,
.copy-icon-btn:hover,
.nav-link:hover,
.nav-link.active {
  transform: none !important;
}

.button:focus-visible,
.copy-icon-btn:focus-visible,
.mini-copy:focus-visible,
.server-copy:focus-visible,
.nav-link:focus-visible {
  outline: none;
  box-shadow:
    inset 0 1px 0 rgba(255, 224, 224, 0.05),
    inset 0 -1px 0 rgba(0, 0, 0, 0.92),
    inset 4px 4px 10px rgba(0, 0, 0, 0.72),
    inset -2px -2px 6px rgba(111, 78, 74, 0.08),
    0 0 0 1px rgba(10, 8, 8, 0.52),
    0 0 0 3px rgba(183, 107, 104, 0.10);
}

.button,
.mini-copy,
.server-copy,
.copy-icon-btn,
.top-social-link,
.auth-login-button,
.auth-logout-button,
.auth-map-link,
.nav-link,
.card {
  -webkit-tap-highlight-color: transparent;
}

.button,
.mini-copy,
.server-copy,
.copy-icon-btn,
.top-social-link,
.auth-login-button,
.auth-logout-button,
.auth-map-link {
  position: relative;
  overflow: hidden;
  border-radius: 9px;
  border-color: var(--deboss-border);
  background: var(--deboss-bg);
  box-shadow:
    inset 0 1px 0 var(--deboss-inner-light),
    inset 0 -1px 0 rgba(0, 0, 0, 0.82),
    inset 5px 5px 7px var(--deboss-inner-dark),
    inset -2px -2px 4px rgba(255, 226, 220, 0.052),
    0 0 0 1px rgba(10, 7, 7, 0.54),
    0 9px 18px rgba(0, 0, 0, 0.24);
  color: #f0e7e5;
  letter-spacing: 0;
  transition:
    background 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease,
    color 180ms ease,
    filter 180ms ease,
    transform 180ms ease;
}

.button::before,
.mini-copy::before,
.server-copy::before,
.copy-icon-btn::before,
.top-social-link::before,
.auth-login-button::before,
.auth-logout-button::before,
.auth-map-link::before {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: inherit;
  pointer-events: none;
  box-shadow:
    inset 0 1px 0 rgba(255, 238, 235, 0.07),
    inset 0 -1px 0 rgba(0, 0, 0, 0.68),
    inset 1px 0 0 rgba(255, 230, 226, 0.032),
    inset -1px 0 0 rgba(0, 0, 0, 0.48);
}

.button > *,
.mini-copy > *,
.server-copy > *,
.copy-icon-btn > *,
.top-social-link > *,
.auth-login-button > *,
.auth-logout-button > *,
.auth-map-link > * {
  position: relative;
  z-index: 1;
}

.button,
.button span,
.button strong,
.button .label,
.mini-copy,
.mini-copy span,
.server-copy,
.server-copy-text strong,
.server-copy-text small,
.copy-icon-btn,
.top-social-link,
.auth-login-button,
.auth-logout-button,
.auth-map-link,
.server-online {
  text-shadow:
    0 -1px 0 rgba(0, 0, 0, 0.68),
    0 1px 0 rgba(255, 238, 235, 0.10),
    0 2px 2px rgba(0, 0, 0, 0.34);
}

.button .icon,
.mini-copy-icon,
.server-copy-icon .icon,
.nav-icon .icon,
.card-icon .icon,
.shop-card .tag .icon,
.copy-icon {
  filter: none;
}

.button:hover,
.button:focus-visible,
.mini-copy:hover,
.server-copy:hover,
.copy-icon-btn:hover,
.top-social-link:hover,
.auth-login-button:hover,
.auth-logout-button:hover,
.auth-map-link:hover {
  border-color: var(--deboss-border-hover);
  color: #fff2ef;
  background: var(--deboss-bg-hover);
  box-shadow:
    inset 0 1px 0 rgba(255, 238, 235, 0.10),
    inset 0 -1px 0 rgba(0, 0, 0, 0.82),
    inset 5px 5px 7px rgba(0, 0, 0, 0.74),
    inset -2px -2px 4px rgba(255, 226, 220, 0.065),
    0 0 0 1px rgba(10, 7, 7, 0.58),
    0 0 0 3px var(--deboss-glow),
    0 11px 21px rgba(0, 0, 0, 0.27);
  transform: translateY(-1px) !important;
}

.button:active,
.mini-copy:active,
.server-copy:active,
.copy-icon-btn:active,
.top-social-link:active,
.auth-login-button:active,
.auth-logout-button:active,
.auth-map-link:active {
  border-color: rgba(125, 78, 73, 0.46);
  background: var(--deboss-bg-active);
  box-shadow:
    inset 0 1px 0 rgba(255, 232, 228, 0.035),
    inset 0 -1px 0 rgba(0, 0, 0, 0.9),
    inset 7px 7px 9px rgba(0, 0, 0, 0.84),
    inset -1px -1px 3px rgba(255, 226, 220, 0.032),
    0 0 0 1px rgba(5, 4, 4, 0.72),
    0 5px 10px rgba(0, 0, 0, 0.22);
  transform: translateY(1px) !important;
}

.server-copy {
  border-radius: 10px;
}

.server-copy-icon,
.nav-icon,
.card-icon {
  border-radius: 13px;
  box-shadow:
    inset 0 1px 0 rgba(255, 226, 226, 0.055),
    inset 0 -1px 0 rgba(0, 0, 0, 0.88),
    inset 4px 4px 7px rgba(0, 0, 0, 0.72),
    inset -2px -2px 4px rgba(255, 226, 220, 0.045);
}

.mini-copy.copied::before,
.mini-copy.copied::after,
.server-copy.copied::before,
.server-copy.copied::after {
  display: none !important;
  content: none !important;
}

body.compact-ui .sidebar {
  padding: 18px 14px;
}

body.compact-ui .brand {
  gap: 11px;
  padding: 9px 7px 20px;
  margin-bottom: 14px;
}

body.compact-ui .brand-logo {
  width: 46px;
  height: 46px;
}

body.compact-ui .brand-title {
  font-size: 19px;
}

body.compact-ui .nav-section {
  margin: 16px 0 20px;
}

body.compact-ui .sidebar-nav-group {
  margin: 11px 0 13px;
}

body.compact-ui .sidebar-nav-group + .sidebar-nav-group {
  margin-top: 14px;
}

body.compact-ui .nav-label {
  margin-bottom: 7px;
  padding: 0 9px;
  font-size: 10px;
}

body.compact-ui .nav-link {
  gap: 10px;
  padding: 9px 10px;
  font-size: 13px;
}

body.compact-ui .nav-icon {
  width: 26px;
  height: 26px;
  border-radius: 9px;
}

body.compact-ui .topbar {
  --topbar-gap: 10px;
  padding: 0 30px;
}

body.compact-ui .topbar-actions,
body.compact-ui .topbar-breadcrumb,
body.compact-ui .topbar-auth {
  gap: 10px;
}

body.compact-ui .content,
body.compact-ui .page-container {
  padding: 38px 0 72px;
}

body.compact-ui .server-list {
  gap: 13px;
}

body.compact-ui .server-copy {
  grid-template-columns: 42px minmax(0, 1fr) 42px;
  gap: 13px;
  padding: 14px;
}

@media (max-width: 1023px) {

  .layout,
  .app-shell {
    display: block;
    min-width: 0;
  }

  .sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    width: min(320px, 88vw);
    height: 100dvh;
    max-height: 100dvh;
    padding: 18px 14px;
    transform: translateX(-105%);
    transition: transform 220ms cubic-bezier(.2, .8, .2, 1);
    z-index: 80;
    background: rgba(10, 10, 11, 0.97);
    border-right: 1px solid var(--border);
    box-shadow: none;
  }

  body.sidebar-open,
  body.menu-open {
    overflow: hidden;
  }

  body.sidebar-open .sidebar,
  body.menu-open .sidebar {
    transform: translateX(0);
    box-shadow: 18px 0 42px rgba(0, 0, 0, 0.42);
  }

  body.sidebar-open .sidebar-backdrop,
  body.menu-open .sidebar-backdrop {
    opacity: 1;
    pointer-events: auto;
  }

  .main,
  .main-content {
    width: 100%;
    min-width: 0;
  }

  .topbar,
  body.compact-ui .topbar {
    position: sticky;
    min-height: var(--topbar-height);
    height: auto;
    grid-template-columns: minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 10px;
    padding: 8px var(--page-gutter);
  }

  .mobile-toggle,
  .mobile-menu-button {
    display: inline-flex;
    min-height: 42px;
    padding: 0 12px;
  }

  .topbar-breadcrumb {
    min-width: 0;
  }

  .crumbs {
    overflow: hidden;
    min-width: 0;
    text-overflow: ellipsis;
  }

  .topbar-actions,
  body.compact-ui .topbar-actions {
    display: contents;
  }

  .top-socials,
  .topbar-socials {
    display: none;
  }

  .topbar-search,
  body.compact-ui .topbar-search,
  .search.topbar-search {
    grid-column: 1 / -1;
    grid-row: 2;
    width: min(100%, calc(100vw - (var(--page-gutter) * 2)));
    min-width: 0;
    max-width: none;
    justify-self: stretch;
    display: block;
  }

  .topbar-auth {
    grid-column: 3;
    grid-row: 1;
  }

  .content,
  .page-container,
  body.compact-ui .content,
  body.compact-ui .page-container {
    width: 100%;
    max-width: 100%;
    padding: 22px var(--page-gutter) 58px;
  }

	  .cookies-card-grid {
	    grid-template-columns: 1fr;
	  }

	  .cookies-choice-card {
	    align-items: flex-start;
	    flex-direction: column;
	  }
}

@media (max-width: 640px) {

  .topbar,
  body.compact-ui .topbar {
    grid-template-columns: auto minmax(0, 1fr) auto auto;
  }

  .topbar-breadcrumb .crumbs {
    display: none;
  }
}

.hero-main h1,
.hero-main .lead,
.shop-card h3,
.shop-card p,
.server-copy-text,
.server-copy-text strong,
.server-copy-text small,
.card h3,
.card p {
  overflow-wrap: anywhere;
}

.server-copy-text strong {
  word-break: break-word;
}

@media (max-width: 767px) {
  .hero,
  body.compact-ui .hero,
  .server-list,
  body.compact-ui .server-list,
  .grid,
  body.compact-ui .grid,
  .doc-grid,
  body.compact-ui .doc-grid {
    grid-template-columns: 1fr;
  }

  .server-list,
  .grid {
    gap: 12px;
  }

  .server-copy {
    grid-template-columns: 40px minmax(0, 1fr) 40px;
    gap: 10px;
    padding: 14px;
  }

  .server-copy-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
  }

  .server-copy-text strong {
    font-size: 16px;
    line-height: 1.22;
  }

  .server-copy-text small,
  .server-online {
    font-size: 12px;
  }
}

@media (max-width: 430px) {

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

  .server-copy-icon {
    display: none;
  }
}

.sidebar-socials {
  display: none;
}

.sidebar-social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 8px;
}

.sidebar-social-links .top-social-link {
  width: 40px;
  height: 40px;
}

@media (max-width: 1023px) {
  .sidebar-socials {
    display: block;
  }
}

@media (max-width: 640px) {
  .topbar,
  body.compact-ui .topbar {
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 8px;
  }

  .topbar-breadcrumb {
    gap: 8px;
    min-width: 0;
  }

  .topbar-breadcrumb .crumbs {
    display: flex;
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
  }

  .topbar-breadcrumb .crumbs span {
    display: none;
  }

  .topbar-breadcrumb .crumbs strong {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .topbar-search,
  body.compact-ui .topbar-search,
  .search.topbar-search {
    grid-column: 1 / -1;
    grid-row: 2;
    width: 100%;
    max-width: none;
  }

  .topbar-auth {
    min-width: 0;
  }
}

@media (max-width: 480px) {

  .topbar-auth {
    grid-column: 2;
  }
}

@media (max-width: 380px) {
  .topbar,
  body.compact-ui .topbar {
    gap: 6px;
  }

  .mobile-toggle,
  .mobile-menu-button {
    padding-inline: 10px;
  }
}

@media (max-width: 1023px) {
  .sidebar {
    width: min(336px, 90vw);
    padding: 16px 14px 20px;
  }

  .nav-list {
    gap: 4px;
  }

  .nav-link {
    min-height: 46px;
    padding: 10px 12px;
    border-radius: var(--ui-radius-md);
  }

  .nav-section-outline {
    margin: 6px 0 8px 42px;
    gap: 4px;
  }

  .nav-section-outline a,
  .nav-section-outline button {
    min-height: 36px;
    padding-block: 8px;
  }

  .sidebar-social-links {
    gap: 10px;
    padding: 0 4px;
  }

  .sidebar-social-links .top-social-link {
    width: 44px;
    height: 44px;
  }

  .topbar,
  body.compact-ui .topbar {
    row-gap: 8px;
  }

  .topbar-search input {
    min-height: 44px;
  }
}

@media (max-width: 767px) {
  .content,
  .page-container,
  body.compact-ui .content,
  body.compact-ui .page-container {
    padding-top: 20px;
  }
}

@media (max-width: 430px) {
  .content,
  .page-container,
  body.compact-ui .content,
  body.compact-ui .page-container {
    padding-inline: 12px;
  }
}

@media (max-width: 380px) {
  .topbar-breadcrumb .crumbs {
    display: none;
  }

  .topbar,
  body.compact-ui .topbar {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .topbar-auth {
    grid-column: 2;
  }

  .mobile-toggle,
  .mobile-menu-button {
    min-height: 46px;
  }
}

.topbar {
  grid-template-columns: auto minmax(0, 1fr);
}

.topbar-actions,
body.compact-ui .topbar-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: nowrap;
  gap: 10px;
  width: 100%;
  min-width: 0;
}

.topbar-actions > *,
body.compact-ui .topbar-actions > * {
  min-width: 0;
}

.topbar-search,
body.compact-ui .topbar-search,
.search.topbar-search {
  flex: 1 1 260px;
  width: auto;
  min-width: 140px;
  max-width: 560px;
}

.topbar-notifications-dropdown {
  position: absolute;
}

@media (max-width: 1400px) {
  .topbar {
    --topbar-gap: 10px;
    padding-inline: 20px;
  }

  .topbar-actions,
  body.compact-ui .topbar-actions {
    gap: 8px;
  }

  .topbar-search,
  body.compact-ui .topbar-search,
  .search.topbar-search {
    flex-basis: 180px;
    min-width: 120px;
  }

  .topbar-server-label {
    display: none;
  }
}

@media (max-width: 1180px) {
  .top-socials,
  .topbar-socials {
    display: none;
  }
}

@media (max-width: 1023px) {
  .topbar,
  body.compact-ui .topbar {
    grid-template-columns: minmax(0, 1fr) auto;
    height: var(--topbar-height);
    min-height: var(--topbar-height);
    padding: 0 var(--page-gutter);
  }

  .topbar-actions,
  body.compact-ui .topbar-actions {
    grid-column: 2;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: nowrap;
  }

  .topbar-search,
  body.compact-ui .topbar-search,
  .search.topbar-search {
    display: none;
  }
}

@media (max-width: 640px) {
  .topbar,
  body.compact-ui .topbar {
    gap: 8px;
  }

  .topbar-server-copy span:not(.server-status-dot) {
    max-width: 126px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .topbar-notifications-dropdown {
    position: fixed;
    top: calc(var(--topbar-height, 56px) + 8px);
    right: 12px;
    left: 12px;
    width: auto;
    max-height: calc(100vh - var(--topbar-height, 56px) - 20px);
  }
}

@media (max-width: 640px) {
  .topbar,
  body.compact-ui .topbar {
    position: sticky;
    z-index: 220;
    grid-template-columns: minmax(0, auto) minmax(0, 1fr);
    column-gap: 8px;
    height: var(--topbar-height, 56px);
    min-height: var(--topbar-height, 56px);
    padding-inline: 12px;
    overflow: visible;
  }

  .topbar-breadcrumb {
    grid-column: 1;
    min-width: 0;
    max-width: 100%;
    overflow: visible;
  }

  .topbar-actions,
  body.compact-ui .topbar-actions {
    grid-column: 2;
    width: auto;
    max-width: 100%;
    gap: 6px;
    justify-content: flex-end;
    flex-wrap: nowrap;
    overflow: visible;
  }

  .topbar-server-group {
    gap: 0;
    max-width: clamp(124px, 39vw, 160px);
  }

  .topbar-server-label {
    display: none !important;
  }

  .topbar-server-copy {
    min-height: 40px;
    max-width: 100%;
    padding-inline: 10px;
    gap: 7px;
  }

  .topbar-server-copy span:not(.server-status-dot) {
    max-width: clamp(82px, 28vw, 118px);
  }

  .topbar-notifications {
    position: static;
    z-index: 230;
  }

  .topbar-notifications-badge {
    top: -5px;
    right: -5px;
    min-width: 17px;
    height: 17px;
    padding: 0 4px;
    font-size: 10px;
    transform: none;
  }

  .topbar-auth,
  .auth-controls {
    flex: 0 0 auto;
    min-width: 0;
  }

  .topbar-auth .auth-login-button span {
    display: none;
  }

  .topbar-notifications-dropdown {
    position: fixed;
    top: calc(var(--topbar-height, 56px) + 8px);
    right: 12px;
    left: 12px;
    z-index: 260;
    width: calc(100vw - 24px);
    max-width: none;
    max-height: calc(100vh - var(--topbar-height, 56px) - 24px);
    overflow: hidden;
    border-radius: 14px;
  }

  .topbar-notifications-body {
    max-height: calc(100vh - var(--topbar-height, 56px) - 82px);
    overflow-y: auto;
    overscroll-behavior: contain;
  }
}
