/* UI polish informed by unslop by @heydamir, CC BY 4.0. */
@font-face {
  font-family: "Xanka Inter";
  src: url("/status-assets/fonts/inter-variable.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Xanka Inter";
  src: url("/status-assets/fonts/inter-cyrillic.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
:root {
  color-scheme: dark;
  font-family: -apple-system, BlinkMacSystemFont, "Xanka Inter", "Segoe UI", sans-serif;
  color: #f4f3f6;
  background: #000;
  --muted: #b0aeb6;
  --card: #18181a;
  --line: #343337;
  --green: #b9e8d8;
  --red: #ffadb9;
  --amber: #f4c891;
  --purple: #ccb4f3;
  --ease: cubic-bezier(.2, 0, 0, 1);
}
* { box-sizing: border-box; }
html { overflow-anchor: none; scrollbar-gutter: stable; }
body { margin: 0; font-size: 15px; line-height: 1.45; -webkit-font-smoothing: antialiased; }
.wrap { width: min(760px, calc(100% - 48px)); margin-inline: auto; }
.top { border-bottom: 1px solid #222124; }
.top-inner { min-height: 62px; display: flex; justify-content: space-between; align-items: center; }
a { color: inherit; text-underline-offset: .22em; }
.brand { font-weight: 750; letter-spacing: -.025em; font-size: 1.15rem; text-decoration: none; overflow-wrap: anywhere; }
.back { background: #17171a; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; padding: 9px 14px; font-weight: 650; }
.back span { margin-left: 3px; color: var(--purple); }
.intro { padding-top: clamp(30px, 6vw, 50px); }
h1 { margin: 0; font-size: clamp(1.75rem, 5vw, 2.5rem); font-weight: 700; letter-spacing: -.026em; line-height: 1.16; }
.network-overview { display: flex; flex-wrap: wrap; align-items: center; gap: 9px 14px; margin-top: 18px; }
.network-count, .notice { margin: 0; color: var(--muted); font-size: .83rem; font-variant-numeric: tabular-nums; }
.network-count { background: #1b1b20; border: 1px solid #3e3b43; border-radius: 999px; padding: 7px 11px; font-weight: 650; }
.network-count.online { background: #1d2e29; border-color: #38594f; }
.network-count.online::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 999px; background: currentColor; margin: 0 7px .11em 0; }
.locations { margin: 34px 0; }
.tools { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 13px; }
h2 { margin: 0; font-size: 1.2rem; font-weight: 700; letter-spacing: -.015em; }
input { font: inherit; color: inherit; border: 1px solid var(--line); border-radius: 13px; background: #141416; width: min(100%, 255px); padding: 10px 13px; }
input::placeholder { color: var(--muted); font-size: .88em; }
:focus-visible { outline: 2px solid var(--purple); outline-offset: 3px; }
#groups { display: grid; grid-template-columns: minmax(0, 1fr); gap: 9px; }
.group { min-width: 0; border: 1px solid var(--line); border-radius: 19px; background: var(--card); box-shadow: inset 0 1px 0 #ffffff0d; }
.group-heading { margin: 0; font-size: inherit; }
.group-title {
  display: grid;
  grid-template-columns: 45px minmax(0, 1fr) auto 8px;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 12px 15px;
  text-align: start;
  font: inherit;
  color: inherit;
  background: transparent;
  border: 0;
  border-radius: 18px;
  cursor: pointer;
  transition: background-color .18s var(--ease);
}
.group-title:focus-visible { outline-offset: -3px; }
.group-title::after { content: ""; width: 7px; height: 7px; border: solid var(--muted); border-width: 0 1.5px 1.5px 0; transform: rotate(45deg); transition: transform .32s var(--ease); }
.group.expanded .group-title::after { transform: rotate(225deg); }
.disclosure { display: grid; grid-template-rows: 0fr; opacity: 0; transition: grid-template-rows .32s var(--ease), opacity .24s var(--ease); }
.group.expanded .disclosure { grid-template-rows: 1fr; opacity: 1; }
.disclosure-clip { min-height: 0; overflow: hidden; }
.icon-tile { width: 45px; height: 45px; display: grid; place-items: center; background: #262629; border: 1px solid #3a393d; border-radius: 13px; }
.flag { width: 35px; height: 35px; object-fit: contain; display: block; }
.group-label { min-width: 0; display: grid; gap: 3px; }
.group-name { font-weight: 700; overflow-wrap: anywhere; font-size: 1rem; letter-spacing: -.012em; }
.group-meta { color: var(--muted); font-size: .78rem; }
.group-count { color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; font-size: .72rem; font-weight: 630; padding: 5px 7px; border-radius: 999px; background: #29282b; }
.group-count.online { background: #253a32; }
.group-count.partial { background: #392f25; }
.group-count.offline { background: #3e272d; }
.servers { margin: 0 13px 13px; padding: 10px 14px 0; border: 1px solid #353438; border-radius: 13px; background: #121214; }
.servers-title { margin: 0 0 5px; color: var(--muted); font-size: .76rem; }
.profiles { list-style: none; padding: 0; margin: 0; }
.profile { display: flex; align-items: center; justify-content: space-between; gap: 7px 10px; padding: 10px 0; }
[hidden] { display: none !important; }
.profile + .profile { border-top: 1px solid #29282c; }
.profile-name { font-weight: 650; font-size: .86rem; min-width: 72px; }
.server-states { display: flex; align-items: baseline; justify-content: flex-end; flex-wrap: wrap; gap: 4px 9px; }
.state { font-size: .79rem; color: var(--muted); white-space: nowrap; }
.availability::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; margin-right: 6px; background: currentColor; vertical-align: .12em; }
.online, .clear { color: var(--green); }
.offline, .full { color: var(--red); }
.partial { color: var(--amber); }
.details-note { color: var(--muted); font-size: .78rem; line-height: 1.45; margin-top: 17px; max-width: 64ch; }
@media (hover: hover) { .back:hover, .group-title:hover { background: #202024; } }
@media (prefers-reduced-motion: reduce) { .group-title, .group-title::after, .disclosure { transition: none; } }
@media (max-width: 760px) {
  .wrap { width: calc(100% - 28px); }
}
@media (max-width: 460px) {
  .tools { align-items: stretch; flex-direction: column; gap: 10px; }
  input { width: 100%; }
  .locations { margin-top: 28px; }
  .server-states { column-gap: 7px; }
  .state { font-size: .75rem; }
}

