.home-header-tools,
.room-header-tools {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.site-menu-trigger {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  padding: 9px;
  flex-shrink: 0;
  border: 1px solid #35534f;
  border-radius: 12px;
  background: #172c30;
  color: #d6ede5;
  cursor: pointer;
}
.site-menu-trigger svg,
.server-menu-close svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
}
.server-menu {
  position: fixed;
  inset: 0 0 0 auto;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  width: min(480px, 100vw);
  max-width: 100vw;
  height: 100dvh;
  max-height: 100dvh;
  overflow: hidden;
  border: 1px solid #35514f;
  border-radius: 24px 0 0 24px;
  background: #13262b;
  color: #edf5f2;
  box-shadow: -20px 0 70px #0006;
  font:
    14px 'Segoe UI',
    Arial,
    sans-serif;
}
.server-menu::backdrop {
  background: #030c0f80;
}
.server-menu[open] {
  display: flex;
  flex-direction: column;
}
.server-menu-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
  padding: 20px 22px 12px;
  height: auto;
  gap: 12px;
  border: 0;
}
.server-menu-head h2 {
  margin: 0;
  font-size: 21px;
  letter-spacing: 0;
}
.server-menu-close {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 12px;
  background: #213b40;
  color: #d6ede5;
  cursor: pointer;
}
.server-menu-nav {
  padding: 0 22px 14px;
  border-bottom: 1px solid #31504e;
  flex-shrink: 0;
}
.server-menu-tab {
  width: 100%;
  border: 1px solid #70bba3;
  border-radius: 10px;
  background: #2a5046;
  color: #d2f4e8;
  padding: 11px;
  text-align: left;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}
.server-menu-body {
  padding: 18px 22px 24px;
  overflow: auto;
  min-height: 0;
  overscroll-behavior: contain;
}
.server-menu-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 16px;
  color: #9fc5bb;
  font-size: 12px;
}
.server-menu-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #96ddc5;
}
.server-menu-status::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}
.server-menu-status[data-stale='true'] {
  color: #e0b486;
}
.server-stat-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0 0 18px;
}
.server-stat {
  background: #1c353b;
  border: 1px solid #365357;
  border-radius: 14px;
  padding: 14px;
  min-width: 0;
}
.server-stat dt {
  font-size: 12px;
  color: #b9d2cc;
  margin: 0 0 8px;
}
.server-stat dd {
  margin: 0;
  font-size: 25px;
  font-weight: 650;
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}
.server-stat small {
  display: block;
  min-height: 16px;
  margin-top: 8px;
  font-size: 11px;
  line-height: 1.45;
  color: #91b5ac;
  overflow-wrap: anywhere;
}
.server-menu-note {
  font-size: 12px;
  line-height: 1.65;
  color: #a8c5be;
  margin: 10px 0;
}
.server-menu button:focus-visible,
.site-menu-trigger:focus-visible {
  outline: 2px solid #8cebd2;
  outline-offset: 3px;
}
html:has(.server-menu[open]) {
  overflow: hidden;
}
.cookie-notice {
  position: fixed;
  z-index: 80;
  left: 18px;
  bottom: 18px;
  width: min(540px, calc(100vw - 36px));
  box-sizing: border-box;
  padding: 18px 20px;
  border: 1px solid #42645f;
  border-radius: 16px;
  background: #172c31;
  color: #e0eee8;
  box-shadow: 0 8px 40px #0005;
  font:
    13px/1.65 'Segoe UI',
    Arial,
    sans-serif;
  overflow: auto;
  overscroll-behavior: contain;
}
.cookie-notice p {
  margin: 0 0 12px;
  color: inherit;
  font: inherit;
  overflow-wrap: anywhere;
}
.cookie-notice--in-call {
  display: none;
}
.cookie-notice button {
  display: block;
  width: auto;
  padding: 6px 16px;
  min-height: 36px;
  border: 1px solid #7ec6af;
  border-radius: 22px;
  background: #294b43;
  color: #e1f7ef;
  font:
    600 13px 'Segoe UI',
    Arial,
    sans-serif;
  cursor: pointer;
}
.cookie-notice button:focus-visible {
  outline: 2px solid #8cebd2;
  outline-offset: 3px;
}
@media (max-width: 620px) {
  .home-header-tools .release {
    display: none;
  }
  .room-header .room-header-tools {
    grid-column: 2;
    grid-row: 1;
    gap: 6px;
  }
  .room-header-tools #room-status {
    max-width: clamp(80px, calc(100vw - 270px), 130px);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .room-header-tools .site-menu-trigger {
    width: 32px;
    height: 32px;
    padding: 6px;
    border-radius: 10px;
  }
  .server-menu-head {
    padding: 16px 16px 10px;
  }
  .server-menu-nav {
    padding: 0 16px 12px;
  }
  .server-menu-body {
    padding: 16px;
  }
  .server-stat {
    padding: 12px;
  }
}
