.topbar.has-discord-community { grid-template-columns: minmax(0, 1fr) auto auto; }
.has-discord-community .live-pill { grid-column: 2; }
.has-discord-community .language-select-wrap { grid-column: 3; grid-row: 1; }
.topbar.has-discord-community .service-links { grid-row: 2 !important; }

.topbar #notmeter-discord {
  grid-column: 1 / -1;
  grid-row: 3;
  display: flex;
  align-items: center;
  gap: 18px;
  width: 100%;
  min-width: 0;
  min-height: 86px;
  box-sizing: border-box;
  padding: 16px 22px;
  margin-top: 1px;
  border: 1px solid #384655;
  border-radius: 10px;
  background: #101e2b;
  color: #eef2f8;
  font-family: var(--font);
  letter-spacing: -.025em;
  text-decoration: none;
}
#notmeter-discord * { box-sizing: border-box; }
#notmeter-discord [hidden] { display: none; }
.topbar #notmeter-discord:hover { border-color: #738296; }
.topbar #notmeter-discord:focus-visible { outline: 2px solid #dce5ff; outline-offset: 3px; }
#notmeter-discord .discord-community-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 46px;
  height: 46px;
  color: #c5cedf;
  border: 1px solid #465668;
  border-radius: 13px;
  background: #1b2c3b;
}
#notmeter-discord .discord-community-icon svg { width: 28px; height: 28px; fill: currentColor; }
.discord-community-intro { display: flex; flex-direction: column; gap: 5px; flex: 1; min-width: 0; }
#notmeter-discord .discord-community-intro strong { font-size: 16px; font-weight: 650; letter-spacing: -.025em; }
#notmeter-discord .discord-community-intro > span { font-size: 11px; color: #9bafc1; font-weight: 450; line-height: 1.5; }
.discord-community-stats { display: flex; flex-direction: column; gap: 7px; min-width: 146px; margin-right: 16px; }
.discord-community-members { display: flex; align-items: baseline; gap: 6px; }
#notmeter-discord [data-discord-count] { font-size: 29px; font-weight: 650; font-variant-numeric: tabular-nums; letter-spacing: -.04em; line-height: 1; }
#notmeter-discord [data-discord-label] { font-size: 11px; font-weight: 500; color: #b4c2d2; }
.discord-community-presence { display: flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 450; color: #b1bece; letter-spacing: -.01em; }
.discord-community-presence::before { content: ""; flex-shrink: 0; width: 5px; height: 5px; border-radius: 50%; background: #74d4ad; }
#notmeter-discord .discord-community-join { display: flex; align-items: center; gap: 15px; font-size: 12px; font-weight: 600; padding: 12px 16px; border: 1px solid #738296; background: #dce5ed; color: #213547; border-radius: 6px; }
.discord-community-arrow { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }

@media (max-width: 720px) {
  .topbar #notmeter-discord { display: grid; grid-template-columns: 38px minmax(0, 1fr); gap: 12px; padding: 16px; }
  #notmeter-discord .discord-community-icon { width: 38px; height: 38px; }
  #notmeter-discord .discord-community-intro > span { font-size: 10px; }
  .discord-community-stats { grid-column: 1 / -1; margin: 0; min-width: 0; }
  #notmeter-discord .discord-community-join { grid-column: 1 / -1; justify-content: space-between; }
}
