/* ServerHub admin preview pages ------------------------------------------------
   Purposefully open, dense, and restrained: hairline divisions instead of
   nested dashboard cards, with the established Assetto Servers type and color. */

.serverhub-page {
  --hub-red: var(--accent, #ff2d37);
  --hub-red-soft: #ff6b70;
  --hub-cyan: var(--cyan, #33d6ff);
  --hub-green: #57e39b;
  --hub-amber: #f2b84b;
  --hub-ink: var(--bg-1, #050506);
  --hub-panel: var(--panel, #14161d);
  --hub-panel-soft: var(--panel-soft, #1a1d27);
  --hub-line: var(--line, rgba(255, 255, 255, 0.12));
  --hub-text: var(--text, #f4f5f7);
  --hub-muted: var(--muted, #a2a6b1);
  min-height: 100vh;
  color: var(--hub-text);
}

.serverhub-page [hidden] {
  display: none !important;
}

.serverhub-page .sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
}

.serverhub-page .site-header {
  z-index: 80;
}

.serverhub-page .site-nav a.active,
.serverhub-page .site-nav a[aria-current="page"] {
  color: #fff;
}

.serverhub-page .site-nav a.active::after,
.serverhub-page .site-nav a[aria-current="page"]::after {
  transform: scaleX(1);
}

.serverhub-page .button:focus-visible,
.serverhub-row-button:focus-visible,
.serverhub-back-link:focus-visible,
.serverhub-discord-link:focus-visible {
  outline: 2px solid var(--hub-cyan);
  outline-offset: 3px;
}

.serverhub-page svg {
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.serverhub-shell,
.serverhub-preview-shell {
  position: relative;
  z-index: 1;
  width: min(1240px, calc(100% - 48px));
  margin: 0 auto;
}

.serverhub-shell {
  padding: 72px 0 84px;
}

.serverhub-console-hero {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 48px;
  padding: 26px 0 40px;
  border-bottom: 1px solid var(--hub-line);
}

.serverhub-console-hero .eyebrow,
.serverhub-directory .eyebrow,
.serverhub-content-section .eyebrow,
.serverhub-aside-section .eyebrow,
.serverhub-preview-error .eyebrow,
.serverhub-settings-head .eyebrow {
  margin: 0 0 4px;
  color: var(--hub-red-soft);
  letter-spacing: 0.14em;
}

.serverhub-console-hero h1 {
  margin: 0;
  font-family: "Teko", sans-serif;
  font-size: clamp(4.4rem, 9vw, 7.6rem);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 0.76;
}

.serverhub-console-hero h1 span {
  color: var(--hub-red);
}

.serverhub-intro {
  max-width: 610px;
  margin: 24px 0 0;
  color: var(--hub-muted);
  font-size: 1.1rem;
  line-height: 1.55;
}

.serverhub-phase {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 12px;
  min-width: 235px;
  padding: 13px 0 13px 18px;
  border-left: 1px solid var(--hub-line);
  color: var(--hub-muted);
  font-size: 0.76rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
}

.serverhub-phase:hover,
.serverhub-phase:focus-visible {
  color: #fff;
}

.serverhub-phase strong {
  display: block;
  margin-bottom: 2px;
  color: var(--hub-text);
  font-size: 0.86rem;
  letter-spacing: 0.09em;
}

.serverhub-phase-dot {
  position: relative;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--hub-amber);
  box-shadow: 0 0 0 5px rgba(242, 184, 75, 0.1);
}

.serverhub-overview {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-bottom: 1px solid var(--hub-line);
}

.serverhub-metric {
  position: relative;
  padding: 26px 24px 23px;
}

.serverhub-metric:first-child {
  padding-left: 0;
}

.serverhub-metric + .serverhub-metric {
  border-left: 1px solid var(--hub-line);
}

.serverhub-metric span {
  display: block;
  font-family: "Teko", sans-serif;
  font-size: 2.9rem;
  font-weight: 600;
  line-height: 0.9;
}

.serverhub-metric small {
  display: block;
  margin-top: 7px;
  color: var(--hub-muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.serverhub-directory {
  padding-top: 50px;
}

.serverhub-directory-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 20px;
}

.serverhub-directory-head h2,
.serverhub-content-section h2,
.serverhub-aside-section h2,
.serverhub-settings-head h2 {
  margin: 0;
  font-family: "Teko", sans-serif;
  font-size: 2.2rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1;
}

.serverhub-directory-tools {
  display: flex;
  align-items: center;
  gap: 9px;
}

.serverhub-search {
  display: flex;
  align-items: center;
  gap: 10px;
  width: min(360px, 42vw);
  height: 44px;
  padding: 0 14px;
  border: 1px solid var(--hub-line);
  border-radius: 4px;
  background: rgba(20, 22, 29, 0.76);
  transition: border-color 0.2s ease, background 0.2s ease;
}

.serverhub-search:focus-within {
  border-color: rgba(51, 214, 255, 0.55);
  background: var(--hub-panel);
}

.serverhub-search svg {
  flex: 0 0 auto;
  width: 18px;
  color: var(--hub-muted);
}

.serverhub-search input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--hub-text);
  font: 600 0.94rem/1 "Rajdhani", sans-serif;
}

.serverhub-search input::placeholder {
  color: #9297a2;
}

.serverhub-icon-button,
.serverhub-close-button {
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--hub-line);
  background: var(--hub-panel);
  color: var(--hub-muted);
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.serverhub-icon-button {
  width: 44px;
  height: 44px;
  border-radius: 4px;
}

.serverhub-icon-button:hover,
.serverhub-icon-button:focus-visible,
.serverhub-close-button:hover,
.serverhub-close-button:focus-visible {
  border-color: rgba(255, 255, 255, 0.3);
  color: #fff;
}

.serverhub-icon-button:active {
  transform: rotate(45deg);
}

.serverhub-icon-button svg {
  width: 19px;
}

.serverhub-icon-button.is-loading svg {
  animation: serverhub-spin 0.8s linear infinite;
}

@keyframes serverhub-spin {
  to { transform: rotate(360deg); }
}

.serverhub-table {
  border-top: 1px solid var(--hub-line);
}

.serverhub-table-head,
.serverhub-server-row {
  display: grid;
  grid-template-columns: minmax(260px, 2.2fr) minmax(100px, 0.8fr) minmax(90px, 0.7fr) minmax(95px, 0.75fr) minmax(100px, 0.8fr) minmax(186px, auto);
  align-items: center;
  column-gap: 22px;
}

.serverhub-table-head {
  min-height: 43px;
  color: #777d89;
  font-size: 0.69rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.serverhub-server-row {
  min-height: 86px;
  border-top: 1px solid rgba(255, 255, 255, 0.075);
  transition: background 0.18s ease;
}

.serverhub-server-row:hover {
  background: rgba(255, 255, 255, 0.018);
}

.serverhub-server-identity {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 14px;
}

.serverhub-row-logo {
  position: relative;
  display: grid;
  flex: 0 0 46px;
  width: 46px;
  height: 46px;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 5px;
  background: var(--hub-panel-soft);
  color: #d8dae0;
  font-family: "Teko", sans-serif;
  font-size: 1.25rem;
  letter-spacing: 0.05em;
}

.serverhub-row-logo::after {
  position: absolute;
  right: -10px;
  bottom: -17px;
  width: 34px;
  height: 42px;
  border-left: 1px solid rgba(255, 45, 55, 0.45);
  content: "";
  transform: rotate(35deg);
}

.serverhub-row-logo img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.serverhub-server-identity > span {
  min-width: 0;
}

.serverhub-server-identity strong {
  display: block;
  overflow: hidden;
  color: #f5f5f7;
  font-size: 1rem;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.serverhub-server-identity small {
  display: block;
  overflow: hidden;
  margin-top: 4px;
  color: #9297a2;
  font-size: 0.76rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.serverhub-table-cell {
  color: #c7cad1;
  font-size: 0.88rem;
  font-weight: 600;
}

.serverhub-table-cell[data-label="Players"] {
  font-variant-numeric: tabular-nums;
}

.serverhub-admin-status-cell,
.serverhub-admin-status-cell small {
  display: block;
}

.serverhub-admin-status-cell small {
  margin-top: 4px;
  color: #7f8590;
  font-size: 0.66rem;
  letter-spacing: 0.04em;
}

.serverhub-state,
.serverhub-page-state,
.serverhub-discover-state {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #a5a9b2;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.serverhub-state::before {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #666b76;
  content: "";
}

.serverhub-state[data-state="online"] {
  color: var(--hub-green);
}

.serverhub-state[data-state="online"]::before {
  background: var(--hub-green);
  box-shadow: 0 0 0 4px rgba(87, 227, 155, 0.09);
}

.serverhub-state[data-state="offline"] {
  color: #979ba4;
}

.serverhub-page-state::before,
.serverhub-discover-state::before {
  width: 13px;
  height: 1px;
  background: #666b76;
  content: "";
}

.serverhub-page-state.is-enabled {
  color: #f0f1f3;
}

.serverhub-page-state.is-enabled::before {
  background: var(--hub-cyan);
}

.serverhub-discover-state.is-enabled {
  color: #d9dbe0;
}

.serverhub-discover-state.is-enabled::before {
  background: var(--hub-red-soft);
}

.serverhub-row-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.serverhub-row-button {
  min-width: 80px;
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 3px;
  background: transparent;
  color: #d9dbe0;
  font: 700 0.76rem/1 "Rajdhani", sans-serif;
  letter-spacing: 0.07em;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  cursor: pointer;
  transition: border-color 0.18s ease, color 0.18s ease, background 0.18s ease;
}

.serverhub-row-button:hover,
.serverhub-row-button:focus-visible {
  border-color: rgba(255, 255, 255, 0.34);
  background: rgba(255, 255, 255, 0.045);
  color: #fff;
}

.serverhub-row-button.primary {
  border-color: rgba(255, 45, 55, 0.52);
  background: rgba(255, 45, 55, 0.08);
  color: #fff;
}

.serverhub-row-button[disabled] {
  opacity: 0.38;
  cursor: not-allowed;
}

.serverhub-loading-row {
  display: flex;
  align-items: center;
  gap: 13px;
  min-height: 92px;
  border-top: 1px solid rgba(255, 255, 255, 0.075);
  color: var(--hub-muted);
}

.serverhub-loading-cell {
  display: flex;
  align-items: center;
  gap: 13px;
}

.serverhub-loading-mark {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.14);
  border-top-color: var(--hub-cyan);
  border-radius: 50%;
  animation: serverhub-spin 0.8s linear infinite;
}

.serverhub-empty,
.serverhub-error {
  padding: 70px 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.075);
  text-align: center;
}

.serverhub-empty-mark {
  display: grid;
  width: 48px;
  height: 48px;
  margin: 0 auto 18px;
  place-items: center;
  border: 1px solid var(--hub-line);
  border-radius: 50%;
  color: var(--hub-muted);
  font-family: "Teko", sans-serif;
  font-size: 1.2rem;
}

.serverhub-empty h3,
.serverhub-error strong {
  display: block;
  margin: 0 0 7px;
  color: var(--hub-text);
  font-size: 1.08rem;
}

.serverhub-empty p,
.serverhub-error span {
  display: block;
  margin: 0 auto;
  color: var(--hub-muted);
}

.serverhub-error .button {
  margin-top: 18px;
}

/* Settings drawer */

.serverhub-settings-backdrop {
  position: fixed;
  z-index: 100;
  inset: 0;
  background: rgba(3, 4, 6, 0.74);
  backdrop-filter: blur(3px);
}

.serverhub-settings-panel {
  position: fixed;
  z-index: 101;
  top: 0;
  right: 0;
  width: min(620px, 100%);
  height: 100dvh;
  overflow-y: auto;
  border-left: 1px solid rgba(255, 255, 255, 0.16);
  background: #0d0f14;
  box-shadow: -30px 0 90px rgba(0, 0, 0, 0.45);
  scrollbar-color: #393d47 #0d0f14;
}

.serverhub-settings-head {
  position: sticky;
  z-index: 2;
  top: 0;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding: 30px 34px 26px;
  border-bottom: 1px solid var(--hub-line);
  background: rgba(13, 15, 20, 0.97);
}

.serverhub-settings-head h2 {
  font-size: 2.5rem;
}

.serverhub-settings-head p:last-child {
  margin: 7px 0 0;
  color: var(--hub-muted);
}

.serverhub-close-button {
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  font: 300 1.75rem/1 Arial, sans-serif;
}

.serverhub-settings-loading {
  padding: 42px 34px;
  color: var(--hub-muted);
}

.serverhub-settings-form fieldset {
  min-width: 0;
  margin: 0;
  padding: 30px 34px;
  border: 0;
  border-bottom: 1px solid var(--hub-line);
}

.serverhub-settings-form legend {
  float: left;
  width: 100%;
  margin: 0 0 20px;
  padding: 0;
  color: #858a95;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.serverhub-settings-form legend + * {
  clear: both;
}

.serverhub-core-status-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: rgba(255, 255, 255, 0.08);
}

.serverhub-core-status-grid > div {
  min-width: 0;
  padding: 13px 14px;
  background: #101218;
}

.serverhub-core-status-grid span,
.serverhub-core-status-grid strong,
.serverhub-core-capabilities > span {
  display: block;
}

.serverhub-core-status-grid span,
.serverhub-core-capabilities > span {
  color: #777d88;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.serverhub-core-status-grid strong {
  overflow: hidden;
  margin-top: 4px;
  color: #e7e9ed;
  font-size: 0.81rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#serverHubCoreStatus[data-state="connected"],
#serverHubCoreTelemetry[data-state="live"] {
  color: var(--hub-green);
}

#serverHubCoreStatus[data-state="stale"],
#serverHubCoreStatus[data-state="authentication_failed"] {
  color: var(--hub-amber);
}

#serverHubMapStatus[data-state="active"],
#serverHubMapGeometry[data-state="ready"] {
  color: var(--hub-green);
}

#serverHubMapStatus[data-state="stale"],
#serverHubMapGeometry[data-state="failed"] {
  color: var(--hub-amber);
}

#serverHubMapStatus[data-state="unavailable"],
#serverHubMapStatus[data-state="not_installed"],
#serverHubMapGeometry[data-state="missing"],
#serverHubMapGeometry[data-state="disabled"] {
  color: var(--hub-red-soft);
}

.serverhub-core-status-grid > .serverhub-map-track-diagnostic {
  grid-column: 1 / -1;
}

.serverhub-core-capabilities {
  margin-top: 17px;
}

.serverhub-core-capabilities > div {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.serverhub-core-capabilities > div span {
  padding: 4px 7px;
  border: 1px solid rgba(51, 214, 255, 0.22);
  color: #bfc5ce;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.serverhub-core-message {
  margin: 15px 0 0;
  color: #858b96;
  font-size: 0.73rem;
  line-height: 1.45;
}

.serverhub-switch-row {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 20px;
  min-height: 68px;
  cursor: pointer;
}

.serverhub-switch-row + .serverhub-switch-row {
  border-top: 1px solid rgba(255, 255, 255, 0.065);
}

.serverhub-switch-row > span strong,
.serverhub-switch-row > span small {
  display: block;
}

.serverhub-switch-row > span strong {
  color: #eff0f2;
  font-size: 0.93rem;
}

.serverhub-switch-row > span small {
  margin-top: 2px;
  color: #959aa5;
  font-size: 0.76rem;
  line-height: 1.35;
}

.serverhub-switch-row input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.serverhub-switch-row i {
  position: relative;
  display: block;
  width: 43px;
  height: 23px;
  border: 1px solid rgba(255, 255, 255, 0.19);
  border-radius: 999px;
  background: #242730;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.serverhub-switch-row i::after {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: #8c9099;
  content: "";
  transition: transform 0.2s ease, background 0.2s ease;
}

.serverhub-switch-row input:checked + i {
  border-color: rgba(255, 45, 55, 0.72);
  background: rgba(255, 45, 55, 0.25);
}

.serverhub-switch-row input:checked + i::after {
  background: #fff;
  transform: translateX(20px);
}

.serverhub-switch-row input:focus-visible + i {
  outline: 2px solid var(--hub-cyan);
  outline-offset: 3px;
}

.serverhub-field {
  display: block;
}

.serverhub-field + .serverhub-field {
  margin-top: 22px;
}

.serverhub-field > span {
  display: block;
  margin-bottom: 7px;
  color: #d9dbe0;
  font-size: 0.81rem;
  font-weight: 700;
}

.serverhub-field > input,
.serverhub-field textarea,
.serverhub-slug-input {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 3px;
  background: #151820;
  color: var(--hub-text);
  font: 600 0.94rem/1.35 "Rajdhani", sans-serif;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.serverhub-field > input {
  height: 44px;
  padding: 0 13px;
}

.serverhub-field textarea {
  min-height: 122px;
  padding: 11px 13px;
  resize: vertical;
}

.serverhub-field > input:focus,
.serverhub-field textarea:focus,
.serverhub-slug-input:focus-within {
  border-color: rgba(51, 214, 255, 0.58);
  outline: none;
  background: #191c24;
}

.serverhub-field > small {
  display: block;
  margin-top: 6px;
  color: #969ba6;
  font-size: 0.72rem;
  line-height: 1.4;
}

.serverhub-field > small:last-child {
  text-align: right;
}

.serverhub-field > small#serverHubSlugHint {
  text-align: left;
}

.serverhub-slug-input {
  display: flex;
  align-items: stretch;
  overflow: hidden;
}

.serverhub-slug-input > span {
  display: flex;
  align-items: center;
  padding: 0 10px;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  color: #717681;
  font-size: 0.78rem;
  white-space: nowrap;
}

.serverhub-slug-input input {
  min-width: 0;
  height: 43px;
  flex: 1;
  padding: 0 10px;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--hub-text);
  font: 600 0.91rem/1 "Rajdhani", sans-serif;
}

.serverhub-upload-grid {
  display: grid;
  gap: 11px;
}

.serverhub-upload {
  display: flex;
  align-items: center;
  gap: 15px;
  min-height: 72px;
  padding: 10px;
  border: 1px dashed rgba(255, 255, 255, 0.19);
  border-radius: 4px;
  background: #13161d;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.serverhub-upload:hover,
.serverhub-upload:focus-within {
  border-color: rgba(51, 214, 255, 0.54);
  background: #171a22;
}

.serverhub-upload input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.serverhub-upload > span:nth-child(2) {
  min-width: 0;
}

.serverhub-upload strong,
.serverhub-upload small {
  display: block;
}

.serverhub-upload strong {
  color: #e8e9ec;
  font-size: 0.87rem;
}

.serverhub-upload small {
  overflow: hidden;
  margin-top: 3px;
  color: #9499a4;
  font-size: 0.72rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.serverhub-upload-preview {
  position: relative;
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: #1d2028;
  color: #8a8f9b;
}

.serverhub-upload-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.serverhub-logo-preview {
  width: 48px;
  height: 48px;
  border-radius: 4px;
}

.serverhub-logo-preview b {
  font: 600 1.2rem/1 "Teko", sans-serif;
}

.serverhub-banner-preview {
  width: 106px;
  height: 46px;
  border-radius: 2px;
}

.serverhub-banner-preview b {
  font-size: 0.68rem;
  letter-spacing: 0.08em;
}

.serverhub-remove-media {
  justify-self: start;
  margin: -3px 0 7px;
  color: #858a95;
  font-size: 0.73rem;
  cursor: pointer;
}

.serverhub-remove-media input {
  margin-right: 5px;
  accent-color: var(--hub-red);
}

.serverhub-settings-actions {
  position: sticky;
  z-index: 2;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 83px;
  gap: 16px;
  padding: 16px 34px;
  border-top: 1px solid var(--hub-line);
  background: rgba(13, 15, 20, 0.97);
}

.serverhub-settings-actions > div {
  display: flex;
  flex: 0 0 auto;
  gap: 8px;
}

.serverhub-settings-actions .button {
  min-height: 40px;
}

.serverhub-form-message {
  margin: 0;
  color: var(--hub-muted);
  font-size: 0.77rem;
  line-height: 1.3;
}

.serverhub-form-message.is-error {
  color: var(--hub-red-soft);
}

.serverhub-form-message.is-success {
  color: var(--hub-green);
}

.serverhub-settings-open {
  overflow: hidden;
}

/* Individual server preview */

.serverhub-preview-shell {
  padding: 26px 0 92px;
}

.serverhub-preview-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  min-height: 46px;
  gap: 20px;
  margin-bottom: 16px;
  color: #747985;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.serverhub-preview-bar > .serverhub-back-link { margin-right: auto; }
#serverHubEditPage { flex: 0 0 auto; min-height: 36px; text-transform: none; letter-spacing: normal; }

.serverhub-preview-bar > span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.serverhub-preview-bar > span i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--hub-amber);
}

.serverhub-back-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #b6bac3;
  text-decoration: none;
  transition: color 0.2s ease;
}

.serverhub-back-link:hover,
.serverhub-back-link:focus-visible {
  color: #fff;
}

.serverhub-back-link svg {
  width: 17px;
}

.serverhub-preview-nav-label {
  padding: 5px 9px;
  border: 1px solid rgba(242, 184, 75, 0.28);
  border-radius: 999px;
  color: var(--hub-amber);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.serverhub-server {
  border-top: 2px solid var(--hub-red);
  background: #0c0e12;
  box-shadow: 0 24px 75px rgba(0, 0, 0, 0.32);
}

.serverhub-server-hero {
  position: relative;
  border-bottom: 1px solid var(--hub-line);
}

.serverhub-banner {
  position: relative;
  height: clamp(220px, 29vw, 350px);
  overflow: hidden;
  background:
    linear-gradient(112deg, rgba(255, 45, 55, 0.13), transparent 38%),
    #171a21;
}

.serverhub-banner.is-fallback {
  height: clamp(180px, 19vw, 230px);
}

.serverhub-banner::before {
  position: absolute;
  z-index: 3;
  inset: 0;
  background:
    linear-gradient(to bottom, transparent calc(100% - 96px), #0c0e12 100%),
    linear-gradient(to bottom, rgba(6, 7, 9, 0.06) 24%, rgba(6, 7, 9, 0.94) 100%);
  pointer-events: none;
  content: "";
}

.serverhub-banner::after {
  position: absolute;
  z-index: 2;
  right: -9%;
  bottom: -62%;
  width: 44%;
  height: 130%;
  border-left: 1px solid rgba(255, 45, 55, 0.26);
  background: rgba(255, 45, 55, 0.025);
  content: "";
  transform: skewX(-19deg);
}

.serverhub-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.serverhub-banner-lines {
  position: absolute;
  z-index: 2;
  inset: 0;
  opacity: 0.18;
  background-image: repeating-linear-gradient(115deg, transparent 0, transparent 74px, rgba(255, 255, 255, 0.1) 75px, transparent 76px);
  pointer-events: none;
}

.serverhub-server-heading {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 40px;
  min-height: 136px;
  margin-top: 0;
  padding: 24px 44px;
  background: #0c0e12;
}

.serverhub-server-brand {
  display: flex;
  align-items: flex-start;
  min-width: 0;
  gap: 22px;
}

.serverhub-server-logo {
  position: relative;
  left: -12px;
  display: grid;
  flex: 0 0 112px;
  width: 112px;
  height: 112px;
  place-items: center;
  overflow: hidden;
  border: 3px solid #0c0e12;
  border-radius: 7px;
  background: #20232c;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.34);
  color: #f1f2f4;
  font-family: "Teko", sans-serif;
  font-size: 2.7rem;
  letter-spacing: 0.03em;
}

.serverhub-server-logo::after {
  position: absolute;
  right: -22px;
  bottom: -52px;
  width: 62px;
  height: 120px;
  border-left: 1px solid rgba(255, 45, 55, 0.5);
  content: "";
  transform: rotate(38deg);
}

.serverhub-server-logo img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.serverhub-server-title {
  min-width: 0;
}

.serverhub-server-kicker {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}

.serverhub-server-kicker span {
  color: #a0a5af;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.serverhub-server-kicker span + span::before {
  margin-right: 8px;
  color: var(--hub-red-soft);
  content: "/";
}

.serverhub-server-title h1 {
  overflow-wrap: anywhere;
  margin: 0;
  color: #fff;
  font-family: "Teko", sans-serif;
  font-size: clamp(3.2rem, 6vw, 5rem);
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 0.9;
}

.serverhub-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 11px;
}

.serverhub-tags span {
  padding: 4px 8px 3px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(8, 9, 12, 0.54);
  color: #bdc0c8;
  font-size: 0.67rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.serverhub-primary-action {
  display: flex;
  flex: 0 0 auto;
  align-self: center;
  align-items: center;
  gap: 24px;
  padding-bottom: 3px;
}

.serverhub-live-state {
  display: flex;
  align-items: center;
  gap: 10px;
}

.serverhub-live-state > span:last-child,
.serverhub-live-state strong,
.serverhub-live-state small {
  display: block;
}

.serverhub-live-state .serverhub-telemetry-state {
  color: var(--hub-amber);
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.serverhub-live-state strong {
  color: #e5e7ea;
  font-size: 0.78rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.serverhub-live-state small {
  margin-top: 2px;
  color: #8a8f99;
  font-size: 0.76rem;
}

.serverhub-status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #6c717b;
  box-shadow: 0 0 0 5px rgba(108, 113, 123, 0.09);
}

.serverhub-status-dot[data-state="online"] {
  background: var(--hub-green);
  box-shadow: 0 0 0 5px rgba(87, 227, 155, 0.1), 0 0 16px rgba(87, 227, 155, 0.28);
}

.serverhub-status-dot[data-state="offline"] {
  background: #858a94;
}

.serverhub-join-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-width: 158px;
  min-height: 46px;
  border-radius: 3px;
}

.serverhub-join-button svg {
  width: 18px;
}

.serverhub-server-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 0;
  padding: 0 44px;
}

.serverhub-server-main {
  min-width: 0;
  padding-right: 48px;
}

.serverhub-content-section {
  padding: 46px 0;
  border-bottom: 1px solid var(--hub-line);
}

.serverhub-server-main > .serverhub-content-section {
  padding: 32px 0;
}

.serverhub-server-main > .serverhub-session-section:has(.serverhub-session-plan-wrap:not([hidden])) {
  padding-bottom: 16px;
}

.serverhub-server-main > .serverhub-content-section.serverhub-live-session-section {
  padding-bottom: 0;
  border-bottom: 0;
}

.serverhub-server-main > .serverhub-live-session-section:not([hidden]) + .serverhub-content-section {
  padding-top: 16px;
}

.serverhub-content-section:last-child {
  border-bottom: 0;
}

.serverhub-content-section h2 {
  font-size: 2.65rem;
}

.serverhub-description {
  max-width: 760px;
  margin: 18px 0 0;
  color: #bec1c8;
  font-size: 1.03rem;
  line-height: 1.72;
  white-space: pre-line;
}

.serverhub-section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 25px;
}

.serverhub-server-main .serverhub-section-heading {
  align-items: center;
  margin-bottom: 20px;
}

.serverhub-section-count,
.serverhub-session-pulse {
  color: #828793;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.serverhub-session-pulse {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--hub-green);
}

.serverhub-session-pulse i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
}

.serverhub-session-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0;
}

.serverhub-session-stats > div {
  min-width: 0;
  min-height: 100px;
  padding: 16px 20px;
}

.serverhub-session-stats > div:first-child {
  padding-left: 0;
}

.serverhub-session-stats > div + div {
  border-left: 1px solid rgba(255, 255, 255, 0.08);
}

.serverhub-session-stats dt {
  margin-bottom: 7px;
  color: #777c87;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.serverhub-session-stats dd {
  overflow: hidden;
  margin: 0;
  color: #f1f2f4;
  font-family: "Teko", sans-serif;
  font-size: 1.95rem;
  font-weight: 500;
  line-height: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.serverhub-session-stats .serverhub-stat-detail {
  display: block;
  overflow: hidden;
  margin-top: 5px;
  color: #858a95;
  font-family: "Rajdhani", sans-serif;
  font-size: 0.73rem;
  font-weight: 500;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.serverhub-session-plan-wrap {
  display: grid;
  grid-template-columns: 125px 1fr;
  align-items: center;
  gap: 16px;
  margin-top: 0;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.serverhub-session-plan-wrap > span {
  color: #777c87;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.serverhub-session-plan {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: session;
}

.serverhub-session-plan li {
  color: #b7bac2;
  font-size: 0.76rem;
  font-weight: 700;
  counter-increment: session;
}

.serverhub-session-plan li::before {
  margin-right: 5px;
  color: var(--hub-red-soft);
  content: counter(session, decimal-leading-zero) "/";
}

.serverhub-session-plan li + li::after {
  margin-left: 7px;
  color: #4e525c;
  content: "";
}

.serverhub-car-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 30px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.serverhub-car-list li {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: 0 10px 0 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.075);
  color: #c7cad1;
  font-size: 0.88rem;
  font-weight: 600;
}

.serverhub-car-list li::before {
  position: absolute;
  left: 2px;
  width: 8px;
  height: 2px;
  background: var(--hub-red);
  content: "";
}

.serverhub-cars-load-more {
  display: block;
  width: max-content;
  max-width: 100%;
  margin: 16px auto 0;
}

.serverhub-leaderboard-types,
.serverhub-leaderboard-boards {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.serverhub-leaderboard-types {
  padding-bottom: 13px;
  border-bottom: 1px solid var(--hub-line);
}

.serverhub-leaderboard-types button,
.serverhub-leaderboard-boards button {
  min-height: 36px;
  padding: 0 13px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 3px;
  background: #12151b;
  color: #969ba6;
  font: 700 0.72rem/1 "Rajdhani", sans-serif;
  letter-spacing: 0.055em;
  text-transform: uppercase;
  cursor: pointer;
  transition: border-color 0.18s ease, background 0.18s ease, color 0.18s ease;
}

.serverhub-leaderboard-types button:hover,
.serverhub-leaderboard-types button:focus-visible,
.serverhub-leaderboard-boards button:hover,
.serverhub-leaderboard-boards button:focus-visible {
  border-color: rgba(51, 214, 255, 0.5);
  outline: none;
  color: #f1f2f4;
}

.serverhub-leaderboard-types button[aria-selected="true"] {
  border-color: rgba(255, 45, 55, 0.68);
  background: rgba(255, 45, 55, 0.13);
  color: #fff;
}

.serverhub-leaderboard-types button span {
  display: inline-grid;
  min-width: 20px;
  height: 20px;
  margin-left: 7px;
  place-items: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #b5b9c2;
  font-size: 0.65rem;
}

.serverhub-leaderboard-boards {
  padding: 15px 0 20px;
}

.serverhub-leaderboard-boards button {
  min-height: 31px;
  padding: 0 10px;
  color: #858a95;
  font-size: 0.67rem;
  letter-spacing: 0.035em;
  text-transform: none;
}

.serverhub-leaderboard-boards button[aria-selected="true"] {
  border-color: rgba(51, 214, 255, 0.52);
  background: rgba(51, 214, 255, 0.08);
  color: #e9faff;
}

.serverhub-leaderboard-panel {
  border: 1px solid var(--hub-line);
  background: #101218;
}

.serverhub-leaderboard-panel-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  min-height: 80px;
  padding: 17px 20px;
  border-bottom: 1px solid var(--hub-line);
}

.serverhub-leaderboard-panel-head > div {
  min-width: 0;
}

.serverhub-leaderboard-panel-head h3 {
  overflow: hidden;
  margin: 3px 0 0;
  color: #f4f5f6;
  font-family: "Teko", sans-serif;
  font-size: 1.85rem;
  font-weight: 500;
  line-height: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.serverhub-leaderboard-panel-head > div > span,
.serverhub-leaderboard-panel-head > span {
  color: #747985;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.085em;
  text-transform: uppercase;
}

.serverhub-leaderboard-panel-head > span {
  flex: 0 0 auto;
  padding-bottom: 4px;
}

.serverhub-leaderboard-notice {
  padding: 22px 20px;
  border: 1px solid rgba(242, 184, 75, 0.18);
  background: rgba(242, 184, 75, 0.045);
}

.serverhub-leaderboard-panel > .serverhub-leaderboard-notice {
  border: 0;
}

.serverhub-leaderboard-notice strong,
.serverhub-leaderboard-notice span {
  display: block;
}

.serverhub-leaderboard-notice strong {
  color: #d9dbe0;
  font-size: 0.84rem;
}

.serverhub-leaderboard-notice span {
  margin-top: 4px;
  color: #8d929d;
  font-size: 0.77rem;
  line-height: 1.45;
}

.serverhub-leaderboard-table {
  overflow: hidden;
}

.serverhub-leaderboard-table-head,
.serverhub-leaderboard-entries li {
  display: grid;
  grid-template-columns: 54px minmax(135px, 1.2fr) minmax(120px, 1fr) minmax(130px, 0.8fr);
  align-items: center;
  gap: 12px;
}

.serverhub-leaderboard-table-head {
  min-height: 36px;
  padding: 0 20px;
  background: rgba(255, 255, 255, 0.025);
  color: #676c77;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.serverhub-leaderboard-table-head span:last-child {
  text-align: right;
}

.serverhub-leaderboard-entries {
  margin: 0;
  padding: 0;
  list-style: none;
}

.serverhub-leaderboard-entries li {
  min-height: 62px;
  padding: 8px 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.065);
}

.serverhub-leaderboard-entries li:nth-child(-n + 3) .serverhub-leaderboard-rank {
  color: var(--hub-red-soft);
}

.serverhub-leaderboard-rank {
  color: #696e79;
  font-family: "Teko", sans-serif;
  font-size: 1.4rem;
  line-height: 1;
}

.serverhub-leaderboard-driver,
.serverhub-leaderboard-car,
.serverhub-leaderboard-result {
  min-width: 0;
}

.serverhub-leaderboard-driver strong,
.serverhub-leaderboard-result strong,
.serverhub-leaderboard-result small {
  display: block;
}

.serverhub-leaderboard-driver strong {
  overflow: hidden;
  color: #e2e4e8;
  font-size: 0.86rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.serverhub-leaderboard-car {
  overflow: hidden;
  color: #8e939e;
  font-size: 0.84rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.serverhub-leaderboard-result {
  text-align: right;
}

.serverhub-leaderboard-result strong {
  color: #f2f3f5;
  font-family: "Teko", sans-serif;
  font-size: 1.42rem;
  font-weight: 500;
  letter-spacing: 0.025em;
  line-height: 1;
}

.serverhub-leaderboard-result small {
  overflow: hidden;
  margin-top: 3px;
  color: #717681;
  font-size: 0.68rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.serverhub-player-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 30px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: driver;
}

.serverhub-player-list li {
  display: grid;
  grid-template-columns: 32px 1fr;
  align-items: center;
  min-height: 49px;
  border-top: 1px solid rgba(255, 255, 255, 0.075);
  color: #d1d3d8;
  font-size: 0.88rem;
  font-weight: 600;
  counter-increment: driver;
}

.serverhub-player-list li strong,
.serverhub-player-list li span {
  display: block;
  min-width: 0;
}

.serverhub-player-list li strong {
  overflow: hidden;
  color: #e5e7eb;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.serverhub-player-list li span {
  grid-column: 2;
  overflow: hidden;
  margin-top: -9px;
  padding-bottom: 6px;
  color: #7e8490;
  font-size: 0.7rem;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.serverhub-player-list li::before {
  color: #676c77;
  font-size: 0.7rem;
  content: counter(driver, decimal-leading-zero);
}

/* ServerHub Live Map -------------------------------------------------------- */

.serverhub-live-session-section {
  --serverhub-live-map-height: clamp(370px, 38vw, 500px);
}

.serverhub-live-map-status {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 8px;
  min-height: 27px;
  padding: 5px 9px 4px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 2px;
  background: rgba(9, 11, 15, 0.72);
  color: #8e949f;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  line-height: 1;
  text-transform: uppercase;
}

.serverhub-live-map-status i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 0 4px rgba(142, 148, 159, 0.08);
}

.serverhub-live-map-status[data-state="active"],
.serverhub-live-map-status[data-state="empty"] {
  border-color: rgba(87, 227, 155, 0.24);
  color: var(--hub-green);
}

.serverhub-live-map-status[data-state="active"] i,
.serverhub-live-map-status[data-state="empty"] i {
  box-shadow: 0 0 0 4px rgba(87, 227, 155, 0.09), 0 0 12px rgba(87, 227, 155, 0.25);
}

.serverhub-live-map-status[data-state="loading"] {
  border-color: rgba(51, 214, 255, 0.23);
  color: var(--hub-cyan);
}

.serverhub-live-map-status[data-state="stale"] {
  border-color: rgba(242, 184, 75, 0.25);
  color: var(--hub-amber);
}

.serverhub-live-map-status[data-state="unavailable"],
.serverhub-live-map-status[data-state="geometry-unavailable"],
.serverhub-live-map-status[data-state="not-installed"] {
  border-color: rgba(255, 107, 112, 0.24);
  color: var(--hub-red-soft);
}

.serverhub-live-map-status[data-state="offline"] {
  color: #7c828d;
}

.serverhub-live-map-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(230px, 270px);
  align-items: stretch;
  min-width: 0;
  border-top: 1px solid var(--hub-line);
  border-bottom: 1px solid var(--hub-line);
}

.serverhub-live-map-panel {
  min-width: 0;
  background: #080a0e;
}

.serverhub-live-map-viewport {
  position: relative;
  height: var(--serverhub-live-map-height);
  min-height: 0;
  overflow: hidden;
  isolation: isolate;
  background: #080a0e;
}

.serverhub-live-map-grid,
.serverhub-live-map-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.serverhub-live-map-grid {
  z-index: 0;
  pointer-events: none;
  opacity: 0.25;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 32px 32px;
}

.serverhub-live-map-canvas {
  z-index: 1;
  display: block;
}

.serverhub-live-map-markers {
  z-index: 2;
  touch-action: pan-y;
}

.serverhub-live-map-markers:focus-visible {
  outline: 2px solid var(--hub-cyan);
  outline-offset: -3px;
}

.serverhub-live-map-state {
  position: absolute;
  z-index: 3;
  right: 20px;
  bottom: 20px;
  left: 20px;
  width: min(420px, calc(100% - 40px));
  padding: 13px 15px 12px;
  border-left: 2px solid var(--hub-red);
  background: rgba(8, 10, 14, 0.92);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.28);
  pointer-events: none;
}

.serverhub-live-map-viewport[data-state="empty"] .serverhub-live-map-state {
  border-left-color: var(--hub-green);
}

.serverhub-live-map-viewport[data-state="loading"] .serverhub-live-map-state {
  border-left-color: var(--hub-cyan);
}

.serverhub-live-map-viewport[data-state="stale"] .serverhub-live-map-state {
  border-left-color: var(--hub-amber);
}

.serverhub-live-map-viewport[data-state="offline"] .serverhub-live-map-state {
  border-left-color: #6e747f;
}

.serverhub-live-map-state strong,
.serverhub-live-map-state span {
  display: block;
}

.serverhub-live-map-state strong {
  color: #f1f2f4;
  font-family: "Teko", sans-serif;
  font-size: 1.45rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  line-height: 1;
}

.serverhub-live-map-state span {
  margin-top: 5px;
  color: #8d929d;
  font-size: 0.72rem;
  line-height: 1.4;
}

.serverhub-live-map-tooltip {
  position: absolute;
  z-index: 4;
  top: 0;
  left: 0;
  width: max-content;
  max-width: min(280px, calc(100% - 32px));
  margin: -13px 0 0 15px;
  padding: 12px 14px 11px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-left-color: var(--hub-red);
  border-radius: 2px;
  background: rgba(7, 9, 12, 0.94);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.32);
  pointer-events: none;
}

.serverhub-live-track-hud {
  position: absolute;
  z-index: 3;
  top: 18px;
  left: 18px;
  width: min(300px, calc(100% - 36px));
  padding: 17px 18px 16px;
  border-top: 1px solid rgba(255, 74, 83, 0.72);
  border-left: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(7, 9, 12, 0.88);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.28);
  pointer-events: none;
}

.serverhub-live-track-hud header {
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.serverhub-live-track-hud header strong,
.serverhub-live-track-hud header span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.serverhub-live-track-hud header strong {
  color: #f3f4f6;
  font: 600 1.65rem/1 "Teko", sans-serif;
  letter-spacing: 0.035em;
  text-transform: uppercase;
}

.serverhub-live-track-hud header span {
  margin-top: 3px;
  color: var(--hub-red-soft);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.serverhub-live-track-hud dl {
  display: grid;
  gap: 7px;
  margin: 10px 0 0;
}

.serverhub-live-track-hud dl > div {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr);
  align-items: baseline;
  gap: 10px;
}

.serverhub-live-track-hud dt,
.serverhub-live-track-hud dd {
  margin: 0;
  font-size: 0.8rem;
  line-height: 1.25;
}

.serverhub-live-track-hud dt {
  color: #6f7580;
  font-weight: 700;
  letter-spacing: 0.055em;
  text-transform: uppercase;
}

.serverhub-live-track-hud dd {
  overflow: hidden;
  color: #c9ccd2;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.serverhub-live-map-tooltip strong,
.serverhub-live-map-tooltip span,
.serverhub-live-map-tooltip small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.serverhub-live-map-tooltip strong {
  color: #f4f5f7;
  font-size: 1rem;
}

.serverhub-live-map-tooltip span {
  margin-top: 4px;
  color: #bbc0ca;
  font-size: 0.85rem;
}

.serverhub-live-map-tooltip small {
  margin-top: 5px;
  color: var(--hub-red-soft);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.025em;
}

.serverhub-live-map-session-context {
  display: grid;
  grid-template-columns: minmax(105px, auto) minmax(0, 1fr);
  align-items: center;
  gap: 2px 18px;
  min-height: 68px;
  padding: 13px 18px;
  border-top: 1px solid var(--hub-line);
  background: #0c0e13;
}

.serverhub-live-map-session-context > span {
  grid-row: 1 / span 2;
  color: #949ba7;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.serverhub-live-map-session-context strong,
.serverhub-live-map-session-context small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.serverhub-live-map-session-context strong {
  align-self: end;
  color: #e7e9ed;
  font-family: "Teko", sans-serif;
  font-size: 1.3rem;
  font-weight: 500;
  letter-spacing: 0.025em;
  line-height: 1;
}

.serverhub-live-map-session-context small {
  align-self: start;
  color: #a3a9b4;
  font-size: 0.82rem;
}

.serverhub-live-drivers {
  display: flex;
  min-width: 0;
  height: calc(var(--serverhub-live-map-height) + 69px);
  min-height: 0;
  flex-direction: column;
  overflow: hidden;
  border-left: 1px solid var(--hub-line);
  background: #0d0f14;
}

.serverhub-live-drivers-heading {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 55px;
  padding: 12px 15px;
  border-bottom: 1px solid var(--hub-line);
}

.serverhub-live-drivers-heading h3 {
  margin: 0;
  color: #e5e7eb;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.serverhub-live-driver-list {
  display: block;
  min-height: 0;
  flex: 1 1 auto;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-color: #3c414b transparent;
  scrollbar-width: thin;
}

.serverhub-live-driver-list:empty {
  flex-grow: 0;
}

.serverhub-live-driver-list::-webkit-scrollbar {
  width: 7px;
}

.serverhub-live-driver-list::-webkit-scrollbar-thumb {
  border: 2px solid #0d0f14;
  background: #3c414b;
}

.serverhub-live-driver-list li {
  display: block;
  min-height: 0;
  border-top: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  counter-increment: none;
}

.serverhub-live-driver-list li::before {
  display: none;
  content: none;
}

.serverhub-live-driver-list li span {
  grid-column: auto;
  margin: 0;
  padding: 0;
}

.serverhub-live-driver-list li button,
.serverhub-live-driver-fallback {
  display: grid;
  grid-template-columns: 31px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  width: 100%;
  min-height: 70px;
  margin: 0;
  padding: 9px 13px;
  border: 0;
  border-left: 2px solid transparent;
  border-radius: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
}

.serverhub-live-driver-list li button {
  cursor: pointer;
  touch-action: manipulation;
}

.serverhub-live-driver-list li button:hover {
  background: rgba(255, 255, 255, 0.035);
}

.serverhub-live-driver-list li button:focus-visible {
  outline: 2px solid var(--hub-cyan);
  outline-offset: -3px;
}

.serverhub-live-driver-list li.is-selected button {
  border-left-color: var(--hub-red);
  background: rgba(255, 45, 55, 0.075);
}

.serverhub-live-driver-number {
  color: var(--hub-red-soft);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.serverhub-live-driver-number.is-pit {
  color: var(--hub-amber);
}

.serverhub-live-driver-list li.is-selected .serverhub-live-driver-number {
  color: var(--hub-red-soft);
}

.serverhub-live-driver-identity {
  min-width: 0;
}

.serverhub-player-list li .serverhub-live-driver-identity strong,
.serverhub-player-list li .serverhub-live-driver-identity small {
  display: block;
  overflow: hidden;
  min-width: 0;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.serverhub-player-list li .serverhub-live-driver-identity strong {
  color: #e6e8ec;
  font-size: 1rem;
  line-height: 1.15;
}

.serverhub-player-list li .serverhub-live-driver-identity small {
  margin-top: 3px;
  color: #a3a9b4;
  font-size: 0.8rem;
  font-weight: 500;
}

.serverhub-player-list li .serverhub-live-driver-telemetry {
  color: #b1b6c0;
  font-size: 0.8rem;
  font-weight: 600;
}

.serverhub-live-driver-telemetry {
  line-height: 1.25;
  text-align: right;
  white-space: nowrap;
}

.serverhub-player-list li .serverhub-live-driver-telemetry.is-pit {
  color: var(--hub-amber);
}

.serverhub-live-driver-fallback {
  grid-template-columns: 31px minmax(0, 1fr);
}

.serverhub-live-drivers-empty {
  display: grid;
  flex: 1 1 auto;
  place-items: center;
  margin: 0;
  padding: 28px 20px;
  color: #a3a9b4;
  font-size: 0.9rem;
  line-height: 1.5;
  text-align: center;
}

.serverhub-live-drivers-empty-meta {
  flex: 0 0 auto;
  margin: 0 15px 15px;
  padding: 13px 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.serverhub-live-drivers-empty-meta > strong {
  display: block;
  color: #aeb3bd;
  font-size: 0.76rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.serverhub-live-drivers-empty-meta dl {
  display: grid;
  gap: 5px;
  margin: 9px 0 0;
}

.serverhub-live-drivers-empty-meta dl > div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.serverhub-live-drivers-empty-meta dt,
.serverhub-live-drivers-empty-meta dd {
  margin: 0;
  font-size: 0.8rem;
}

.serverhub-live-drivers-empty-meta dt {
  color: #949ba7;
}

.serverhub-live-drivers-empty-meta dd {
  overflow: hidden;
  color: #c3c7cf;
  font-weight: 600;
  text-align: right;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.serverhub-live-preview-actions,
.serverhub-live-map-controls,
.serverhub-live-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.serverhub-live-map-layout-preview {
  --serverhub-live-map-height: clamp(270px, 30vw, 360px);
}

.serverhub-live-drivers-preview {
  height: calc(var(--serverhub-live-map-height) + 69px);
}

/* Viewport-dominant Live Map ------------------------------------------------ */

.serverhub-live-page {
  min-width: 320px;
  overflow: hidden;
  background: #07090c;
}

.serverhub-live-app {
  display: flex;
  height: 100dvh;
  min-height: 100dvh;
  flex-direction: column;
  overflow: hidden;
  background:
    radial-gradient(circle at 18% 0%, rgba(211, 19, 31, 0.08), transparent 34%),
    #07090c;
}

.serverhub-live-app-header {
  z-index: 8;
  display: grid;
  grid-template-columns: auto minmax(260px, 1fr) auto;
  min-height: 76px;
  align-items: center;
  gap: 22px;
  padding: 11px clamp(16px, 2vw, 30px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background: #0b0d11;
}

.serverhub-live-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font: 600 2.1rem/1 "Teko", sans-serif;
  letter-spacing: 0.035em;
  text-decoration: none;
}

.serverhub-live-brand img {
  width: 64px;
  height: 50px;
  flex-shrink: 0;
  object-fit: contain;
}

.serverhub-live-server-identity {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 13px;
  padding-left: 22px;
  border-left: 1px solid rgba(255, 255, 255, 0.1);
  color: inherit;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 160ms ease, border-color 160ms ease;
}

.serverhub-live-server-identity:hover,
.serverhub-live-server-identity:focus-visible {
  background-color: rgba(255, 74, 83, 0.08);
  border-left-color: var(--hub-red-soft);
}

.serverhub-live-server-identity:hover h1,
.serverhub-live-server-identity:focus-visible h1 {
  color: #fff;
  text-decoration: none;
}

@media (prefers-reduced-motion: reduce) {
  .serverhub-live-server-identity {
    transition: none;
  }
}

.serverhub-live-server-identity:focus-visible {
  outline: 1px solid rgba(255, 255, 255, 0.7);
  outline-offset: 6px;
}

.serverhub-live-server-logo {
  display: grid;
  width: 43px;
  height: 43px;
  flex: 0 0 auto;
  overflow: hidden;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: #15181e;
  color: #fff;
  font: 600 1.1rem/1 "Teko", sans-serif;
}

.serverhub-live-server-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.serverhub-live-server-identity > div {
  min-width: 0;
}

.serverhub-live-server-identity p,
.serverhub-live-server-identity h1,
.serverhub-live-server-identity span {
  overflow: hidden;
  margin: 0;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.serverhub-live-server-identity p {
  color: #747a85;
  font-size: 0.57rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.serverhub-live-server-identity h1 {
  margin-top: 2px;
  color: #f4f5f7;
  font: 600 1.45rem/0.95 "Teko", sans-serif;
  letter-spacing: 0.02em;
}

.serverhub-live-server-identity span {
  display: block;
  margin-top: 4px;
  color: #9297a2;
  font-size: 0.65rem;
}

.serverhub-live-header-actions {
  justify-content: flex-end;
}

.serverhub-live-header-actions .nav-email {
  max-width: 180px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.serverhub-live-server-state {
  padding: 5px 8px 4px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  color: #8b919c;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.serverhub-live-server-state[data-state="online"] {
  border-color: rgba(87, 227, 155, 0.24);
  color: var(--hub-green);
}

.serverhub-live-server-state[data-state="offline"] {
  color: #747a85;
}

.serverhub-live-page-message {
  display: flex;
  min-height: 80px;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 20px;
  color: #9ca1ac;
}

.serverhub-live-page-message.is-error {
  flex-wrap: wrap;
  border-bottom: 1px solid rgba(255, 74, 83, 0.18);
  color: #b6bac3;
}

.serverhub-live-page-message.is-error strong {
  color: var(--hub-red-soft);
}

.serverhub-live-workspace {
  --serverhub-live-map-height: auto;
  display: flex;
  width: 100%;
  max-width: none;
  min-height: 0;
  flex: 1 1 auto;
  flex-direction: column;
  margin: 0;
  overflow: hidden;
  padding: 0 clamp(20px, 1.5vw, 28px) clamp(16px, 1.5vw, 24px);
}

.serverhub-live-workspace-toolbar {
  display: flex;
  min-height: 74px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 10px 0;
}

.serverhub-live-workspace-toolbar p,
.serverhub-live-workspace-toolbar h2 {
  margin: 0;
}

.serverhub-live-workspace-toolbar h2 {
  color: #f2f3f5;
  font: 600 2.2rem/0.9 "Teko", sans-serif;
}

.serverhub-live-map-controls {
  flex-wrap: wrap;
  justify-content: flex-end;
}

.serverhub-live-map-controls button {
  min-height: 31px;
  padding: 6px 10px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 2px;
  background: #101319;
  color: #c5c9d1;
  font: 700 0.63rem/1 "Rajdhani", sans-serif;
  letter-spacing: 0.055em;
  text-transform: uppercase;
  cursor: pointer;
}

.serverhub-live-map-controls button:hover,
.serverhub-live-map-controls button:focus-visible {
  border-color: rgba(255, 74, 83, 0.55);
  color: #fff;
}

#serverHubLiveMapLabels[aria-pressed="true"] {
  border-color: rgba(255, 74, 83, 0.65);
  background: rgba(255, 74, 83, 0.16);
  color: #fff;
}

.serverhub-live-map-controls button:nth-of-type(1),
.serverhub-live-map-controls button:nth-of-type(2) {
  width: 31px;
  padding: 0;
  font-size: 1rem;
}

.serverhub-live-map-layout-full {
  min-height: 0;
  flex: 1 1 auto;
  grid-template-columns: minmax(0, 1fr) clamp(320px, 22vw, 390px);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-top-color: rgba(255, 74, 83, 0.45);
}

.serverhub-live-map-layout-full > .serverhub-live-map-panel {
  display: flex;
  height: 100%;
  max-height: 100%;
  min-height: 0;
}

.serverhub-live-map-layout-full .serverhub-live-map-viewport {
  width: 100%;
  height: auto;
  min-height: 430px;
  flex: 1 1 auto;
}

.serverhub-live-map-layout-full .serverhub-live-map-markers {
  touch-action: none;
}

.serverhub-live-map-gesture-hint {
  position: absolute;
  z-index: 3;
  right: 13px;
  bottom: 11px;
  padding: 5px 7px;
  background: rgba(7, 9, 12, 0.74);
  color: #949ba7;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.055em;
  pointer-events: none;
  text-transform: uppercase;
}

.serverhub-live-map-layout-full .serverhub-live-map-state {
  right: auto;
  bottom: 18px;
}

.serverhub-live-sidebar {
  display: flex;
  min-width: 0;
  height: 100%;
  max-height: 100%;
  min-height: 0;
  flex-direction: column;
  overflow: hidden;
  border-left: 1px solid var(--hub-line);
  background: #0d0f14;
}

.serverhub-live-sidebar .serverhub-live-map-session-context {
  flex: 0 0 auto;
}

.serverhub-selected-driver {
  flex: 0 0 auto;
  min-height: 118px;
  padding: 15px 17px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  border-left: 2px solid transparent;
  background: #101218;
}

.serverhub-selected-driver[data-state="selected"] {
  display: flex;
  min-height: min(58%, 560px);
  flex: 1 1 auto;
  flex-direction: column;
  overflow-x: hidden;
  overflow-y: hidden;
  overscroll-behavior: contain;
  border-left-color: var(--hub-red);
  background: rgba(255, 45, 55, 0.05);
}

.serverhub-selected-driver > p {
  margin: 0 0 8px;
  color: #737985;
  font-size: 0.59rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.serverhub-selected-driver-identity > strong,
.serverhub-selected-driver-identity > span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.serverhub-selected-driver-identity > strong {
  color: #fff;
  font: 600 1.55rem/1 "Teko", sans-serif;
}

.serverhub-selected-driver-identity > span {
  color: #858b96;
  font-size: 0.7rem;
}

.serverhub-selected-driver-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 11px;
}

.serverhub-selected-driver-facts small {
  padding: 4px 6px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #b4b8c0;
  font-size: 0.59rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.serverhub-selected-driver-facts small.is-pit {
  border-color: rgba(242, 184, 75, 0.3);
  color: var(--hub-amber);
}

.serverhub-selected-driver-timing {
  display: flex;
  min-height: 0;
  flex: 1 1 auto;
  flex-direction: column;
  margin-top: 14px;
  padding-top: 13px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.serverhub-live-timing-state {
  padding: 10px 11px;
  border-left: 2px solid #646b76;
  background: rgba(0, 0, 0, 0.18);
}

.serverhub-live-timing-state[data-state="live"] {
  border-left-color: var(--hub-green);
}

.serverhub-live-timing-state[data-state="loading"] {
  border-left-color: var(--hub-cyan);
}

.serverhub-live-timing-state[data-state="unavailable"],
.serverhub-live-timing-state[data-state="invalid"] {
  border-left-color: var(--hub-red);
}

.serverhub-live-timing-state strong,
.serverhub-live-timing-state span {
  display: block;
}

.serverhub-live-timing-state strong {
  color: #d8dbe1;
  font-size: 0.65rem;
  letter-spacing: 0.075em;
  text-transform: uppercase;
}

.serverhub-live-timing-state span {
  margin-top: 3px;
  color: #777d88;
  font-size: 0.62rem;
  line-height: 1.35;
}

.serverhub-live-timing-stage {
  display: grid;
  gap: 5px;
  margin-top: 12px;
}

.serverhub-live-timing-stage > span {
  color: #737985;
  font-size: 0.56rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.serverhub-live-timing-stage select {
  width: 100%;
  min-width: 0;
  height: 31px;
  padding: 4px 28px 4px 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 2px;
  background: #0c0e13;
  color: #d7dae0;
  font: 600 0.68rem/1 "Rajdhani", sans-serif;
}

.serverhub-live-timing-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin-top: 12px;
  background: rgba(255, 255, 255, 0.08);
}

.serverhub-live-timing-metrics > div {
  min-width: 0;
  padding: 11px 10px 9px;
  background: #0d0f14;
}

.serverhub-live-timing-metrics span,
.serverhub-live-timing-metrics strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.serverhub-live-timing-metrics span {
  color: #747a85;
  font-size: 0.56rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.serverhub-live-timing-metrics strong {
  margin-top: 4px;
  color: #f0f1f3;
  font: 600 1.35rem/1 "Teko", sans-serif;
  letter-spacing: 0.03em;
}

.serverhub-live-timing-metrics [data-delta="ahead"] strong,
.serverhub-live-timing-metrics [data-delta="faster"] strong,
.serverhub-live-timing-delta[data-delta="ahead"],
.serverhub-live-timing-delta[data-delta="faster"] {
  color: var(--hub-green);
}

.serverhub-live-timing-metrics [data-delta="behind"] strong,
.serverhub-live-timing-metrics [data-delta="invalid"] strong,
.serverhub-live-timing-metrics [data-delta="slower"] strong,
.serverhub-live-timing-delta[data-delta="behind"],
.serverhub-live-timing-delta[data-delta="invalid"],
.serverhub-live-timing-delta[data-delta="slower"] {
  color: var(--hub-red-soft);
}

.serverhub-live-timing-validity {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-top: 10px;
  padding: 7px 9px;
  border: 1px solid rgba(255, 255, 255, 0.09);
}

.serverhub-live-timing-validity strong {
  color: var(--hub-green);
  font-size: 0.59rem;
  letter-spacing: 0.08em;
}

.serverhub-live-timing-validity[data-state="invalid"] strong {
  color: var(--hub-red-soft);
}

.serverhub-live-timing-validity span {
  overflow: hidden;
  color: #858b96;
  font-size: 0.59rem;
  text-align: right;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.serverhub-live-timing-checkpoints {
  display: flex;
  min-height: 0;
  flex: 1 1 auto;
  flex-direction: column;
  margin-top: 14px;
}

.serverhub-live-timing-checkpoints-heading,
.serverhub-live-timing-table-head,
.serverhub-live-timing-checkpoints li {
  display: grid;
  grid-template-columns: minmax(92px, 1fr) 76px 62px;
  align-items: center;
  gap: 8px;
}

.serverhub-live-timing-checkpoints-heading {
  display: flex;
  justify-content: space-between;
  padding-bottom: 7px;
}

.serverhub-live-timing-checkpoints-heading h4,
.serverhub-live-timing-checkpoints-heading span,
.serverhub-live-timing-checkpoints p {
  margin: 0;
}

.serverhub-live-timing-checkpoints-heading h4 {
  color: #d9dce1;
  font-size: 0.64rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.serverhub-live-timing-checkpoints-heading span,
.serverhub-live-timing-table-head {
  color: #656b76;
  font-size: 0.52rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.serverhub-live-timing-table-head {
  min-height: 25px;
  padding: 0 7px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.serverhub-live-timing-table-head span:nth-child(n + 2) {
  text-align: right;
}

.serverhub-live-timing-checkpoints ol {
  min-height: 0;
  flex: 1 1 auto;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-color: #3c414b transparent;
  scrollbar-width: thin;
  list-style: none;
}

.serverhub-live-timing-checkpoints ol::-webkit-scrollbar {
  width: 7px;
}

.serverhub-live-timing-checkpoints ol::-webkit-scrollbar-thumb {
  border: 2px solid rgba(16, 18, 24, 0.95);
  background: #3c414b;
}

.serverhub-live-timing-checkpoints li {
  min-height: 34px;
  padding: 5px 7px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.055);
  color: #b7bbc3;
  font-size: 0.62rem;
}

.serverhub-live-timing-checkpoints li.is-upcoming {
  color: #5f6570;
}

.serverhub-live-timing-checkpoints li.is-latest {
  border-left: 2px solid var(--hub-red);
  background: rgba(255, 45, 55, 0.045);
}

.serverhub-live-timing-checkpoints li > span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.serverhub-live-timing-checkpoints li > span:nth-child(n + 2) {
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.serverhub-live-timing-checkpoints p {
  padding: 10px 7px 0;
  color: #747a85;
  font-size: 0.61rem;
  line-height: 1.4;
}

.serverhub-live-sidebar > .serverhub-live-drivers {
  height: auto;
  min-height: 0;
  flex: 1 1 auto;
  border: 0;
}

.serverhub-live-sidebar.has-driver-selection > .serverhub-live-drivers {
  min-height: 150px;
  flex: 0 1 38%;
}

.serverhub-live-app:fullscreen {
  width: 100vw;
  height: 100vh;
  min-height: 100vh;
}

.serverhub-live-app:fullscreen .serverhub-live-workspace {
  min-height: 0;
}

.serverhub-server-aside {
  padding: 46px 0 46px 38px;
  border-left: 1px solid var(--hub-line);
}

.serverhub-aside-section {
  padding: 0 0 30px;
}

.serverhub-aside-section + .serverhub-aside-section {
  padding-top: 30px;
  border-top: 1px solid var(--hub-line);
}

.serverhub-aside-section h2 {
  font-size: 2.25rem;
}

.serverhub-aside-section > p:not(.eyebrow) {
  margin: 10px 0 18px;
  color: #9196a1;
  font-size: 0.85rem;
  line-height: 1.48;
}

.serverhub-join-secondary {
  width: 100%;
  min-height: 43px;
  border-radius: 3px;
}

.serverhub-address {
  margin: 18px 0 0;
  padding-top: 15px;
  border-top: 1px solid rgba(255, 255, 255, 0.075);
}

.serverhub-address dt {
  color: #727783;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.serverhub-address dd {
  overflow-wrap: anywhere;
  margin: 4px 0 0;
  color: #c8cbd1;
  font-size: 0.81rem;
}

.serverhub-discord-link {
  display: grid;
  grid-template-columns: 31px 1fr auto;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  color: #e8e9ec;
  font-size: 0.83rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-decoration: none;
  text-transform: uppercase;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.serverhub-discord-link > span {
  display: grid;
  width: 27px;
  height: 27px;
  place-items: center;
  overflow: hidden;
}

.serverhub-discord-link > span img {
  display: block;
  width: 27px;
  height: 27px;
  object-fit: contain;
  /* The uploaded artwork has a 20% transparent margin on each side. */
  transform: scale(1.667);
}

.serverhub-discord-link svg {
  width: 16px;
}

.serverhub-discord-link:hover,
.serverhub-discord-link:focus-visible {
  border-color: rgba(88, 101, 242, 0.7);
  color: #fff;
}

.serverhub-network-mark {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 28px;
  color: #858a95;
}

.serverhub-network-mark img {
  width: 31px;
  height: 31px;
  object-fit: contain;
  opacity: 0.75;
}

.serverhub-network-mark small,
.serverhub-network-mark strong {
  display: block;
}

.serverhub-network-mark small {
  font-size: 0.61rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.serverhub-network-mark strong {
  margin-top: 1px;
  color: #b1b5be;
  font-size: 0.77rem;
}

/* Match the server sidebar to the main column's section spacing. */
.serverhub-server .serverhub-server-aside {
  padding-top: 32px;
  padding-bottom: 32px;
}

.serverhub-server .serverhub-aside-section {
  padding: 0 0 16px;
}

.serverhub-server .serverhub-aside-section + .serverhub-aside-section {
  padding-top: 16px;
  border-top-color: rgba(255, 255, 255, 0.08);
}

.serverhub-server .serverhub-aside-section > p:not(.eyebrow) {
  margin: 12px 0 16px;
}

.serverhub-server .serverhub-join-secondary {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.serverhub-server .serverhub-address {
  margin-top: 16px;
  padding-top: 0;
  border-top: 0;
}

.serverhub-server .serverhub-discord-link {
  padding: 10px 12px;
  border: 0;
  background: rgba(255, 255, 255, 0.035);
}

.serverhub-server .serverhub-discord-link:hover,
.serverhub-server .serverhub-discord-link:focus-visible {
  background: rgba(88, 101, 242, 0.12);
}

.serverhub-server .serverhub-network-mark {
  margin-top: 0;
  padding-bottom: 0;
}

.serverhub-preview-loading {
  min-height: 620px;
  overflow: hidden;
  border-top: 2px solid rgba(255, 45, 55, 0.45);
  background: #0c0e12;
}

.serverhub-loading-banner {
  height: 320px;
  background: linear-gradient(100deg, #15181f 20%, #1d2028 45%, #15181f 70%);
  background-size: 220% 100%;
  animation: serverhub-shimmer 1.5s ease infinite;
}

.serverhub-loading-lines {
  padding: 36px 42px;
}

.serverhub-loading-lines span {
  display: block;
  height: 14px;
  margin-bottom: 14px;
  border-radius: 2px;
  background: #1b1e25;
}

.serverhub-loading-lines span:nth-child(1) { width: 42%; height: 42px; }
.serverhub-loading-lines span:nth-child(2) { width: 68%; }
.serverhub-loading-lines span:nth-child(3) { width: 54%; }

.serverhub-preview-loading p {
  padding: 0 42px;
  color: #777c87;
}

@keyframes serverhub-shimmer {
  to { background-position: -120% 0; }
}

.serverhub-preview-error {
  min-height: 500px;
  padding: 100px clamp(24px, 7vw, 90px);
  border-top: 2px solid var(--hub-red);
  background: #0c0e12;
}

.serverhub-preview-error h1 {
  max-width: 600px;
  margin: 0;
  font-family: "Teko", sans-serif;
  font-size: clamp(3rem, 7vw, 5.8rem);
  font-weight: 600;
  line-height: 0.95;
}

.serverhub-preview-error > p:not(.eyebrow) {
  max-width: 550px;
  margin: 22px 0 28px;
  color: var(--hub-muted);
  line-height: 1.55;
}

.serverhub-preview-error > div {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.serverhub-footer {
  position: relative;
  z-index: 1;
}

@media (max-width: 1050px) {
  .serverhub-table-head,
  .serverhub-server-row {
    grid-template-columns: minmax(235px, 2fr) minmax(94px, 0.8fr) minmax(78px, 0.7fr) minmax(90px, 0.75fr) minmax(165px, auto);
  }

  .serverhub-table-head > :nth-child(5),
  .serverhub-server-row > :nth-child(5) {
    display: none;
  }

  .serverhub-server-layout {
    grid-template-columns: minmax(0, 1fr) 280px;
  }

  .serverhub-server-heading,
  .serverhub-server-layout {
    padding-right: 30px;
    padding-left: 30px;
  }

  .serverhub-server-main {
    padding-right: 34px;
  }

  .serverhub-server-aside {
    padding-left: 28px;
  }

  .serverhub-live-session-section {
    --serverhub-live-map-height: clamp(360px, 52vw, 500px);
  }

  .serverhub-live-map-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .serverhub-live-drivers {
    height: auto;
    min-height: 180px;
    border-top: 1px solid var(--hub-line);
    border-left: 0;
  }

  .serverhub-live-driver-list {
    max-height: 360px;
  }
}

@media (max-width: 820px) {
  .serverhub-shell,
  .serverhub-preview-shell {
    width: min(100% - 28px, 720px);
  }

  .serverhub-shell {
    padding-top: 46px;
  }

  .serverhub-console-hero {
    display: block;
  }

  .serverhub-phase {
    width: 100%;
    margin-top: 30px;
  }

  .serverhub-overview {
    grid-template-columns: repeat(2, 1fr);
  }

  .serverhub-metric:nth-child(3) {
    border-left: 0;
    border-top: 1px solid var(--hub-line);
  }

  .serverhub-metric:nth-child(4) {
    border-top: 1px solid var(--hub-line);
  }

  .serverhub-metric:nth-child(3) {
    padding-left: 0;
  }

  .serverhub-directory-head {
    display: block;
  }

  .serverhub-directory-tools {
    margin-top: 18px;
  }

  .serverhub-search {
    width: 100%;
  }

  .serverhub-table-head {
    display: none;
  }

  .serverhub-table-body {
    border-top: 1px solid var(--hub-line);
  }

  .serverhub-server-row {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    padding: 20px 0;
  }

  .serverhub-server-row > :nth-child(5) {
    display: block;
  }

  .serverhub-server-identity,
  .serverhub-row-actions {
    grid-column: 1 / -1;
  }

  .serverhub-table-cell::before {
    display: block;
    margin-bottom: 5px;
    color: #686d78;
    font-size: 0.62rem;
    letter-spacing: 0.11em;
    text-transform: uppercase;
    content: attr(data-label);
  }

  .serverhub-row-actions {
    justify-content: flex-start;
  }

  .serverhub-server-heading {
    display: block;
  }

  .serverhub-primary-action {
    justify-content: space-between;
    margin-top: 26px;
    padding: 20px 0 0 134px;
    border-top: 1px solid rgba(255, 255, 255, 0.09);
  }

  .serverhub-server-layout {
    display: block;
  }

  .serverhub-server-main {
    padding-right: 0;
  }

  .serverhub-server-aside {
    padding: 36px 0 40px;
    border-top: 1px solid var(--hub-line);
    border-left: 0;
  }

  .serverhub-aside-section:not(.serverhub-network-mark) {
    max-width: 480px;
  }
}

@media (max-width: 580px) {
  .serverhub-shell,
  .serverhub-preview-shell {
    width: min(100% - 22px, 540px);
  }

  .serverhub-console-hero h1 {
    font-size: 4.5rem;
  }

  .serverhub-intro {
    margin-top: 18px;
    font-size: 0.98rem;
  }

  .serverhub-overview {
    grid-template-columns: 1fr 1fr;
  }

  .serverhub-metric {
    padding: 21px 15px;
  }

  .serverhub-metric:nth-child(odd) {
    padding-left: 0;
  }

  .serverhub-metric span {
    font-size: 2.35rem;
  }

  .serverhub-directory {
    padding-top: 38px;
  }

  .serverhub-server-row {
    grid-template-columns: 1fr 1fr;
  }

  .serverhub-server-row > :nth-child(5) {
    display: none;
  }

  .serverhub-row-actions .serverhub-row-button {
    flex: 1;
  }

  .serverhub-settings-head,
  .serverhub-settings-form fieldset,
  .serverhub-settings-actions {
    padding-right: 20px;
    padding-left: 20px;
  }

  .serverhub-settings-actions {
    display: block;
  }

  .serverhub-settings-actions > div {
    margin-top: 11px;
  }

  .serverhub-settings-actions .button {
    flex: 1;
  }

  .serverhub-slug-input > span {
    display: none;
  }

  .serverhub-banner {
    height: 210px;
  }

  .serverhub-preview-bar {
    align-items: flex-start;
  }

  .serverhub-preview-bar > span {
    max-width: 185px;
    text-align: right;
  }

  .serverhub-server-heading,
  .serverhub-server-layout {
    padding-right: 19px;
    padding-left: 19px;
  }

  .serverhub-server-heading {
    padding-bottom: 24px;
  }

  .serverhub-server-brand {
    gap: 14px;
  }

  .serverhub-server-logo {
    flex-basis: 82px;
    width: 82px;
    height: 82px;
    font-size: 2rem;
  }

  .serverhub-server-title h1 {
    font-size: clamp(2.65rem, 13vw, 4rem);
  }

  .serverhub-primary-action {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    margin-top: 20px;
    padding-left: 0;
  }

  .serverhub-join-button {
    width: 100%;
  }

  .serverhub-content-section {
    padding: 36px 0;
  }

  .serverhub-server-main > .serverhub-content-section {
    padding: 24px 0;
  }

  .serverhub-server .serverhub-server-aside {
    padding-top: 24px;
    padding-bottom: 24px;
  }

  .serverhub-content-section h2 {
    font-size: 2.25rem;
  }

  .serverhub-session-stats {
    grid-template-columns: 1fr;
  }

  .serverhub-session-stats > div,
  .serverhub-session-stats > div:first-child {
    min-height: 88px;
    padding: 14px 0;
  }

  .serverhub-session-stats > div + div {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    border-left: 0;
  }

  .serverhub-session-plan-wrap {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .serverhub-car-list,
  .serverhub-player-list {
    grid-template-columns: 1fr;
  }

  .serverhub-leaderboard-panel-head {
    align-items: flex-start;
  }

  .serverhub-leaderboard-table-head,
  .serverhub-leaderboard-entries li {
    grid-template-columns: 42px minmax(115px, 1fr) minmax(105px, 0.8fr);
    gap: 9px;
    padding-right: 13px;
    padding-left: 13px;
  }

  .serverhub-leaderboard-table-head > :nth-child(3),
  .serverhub-leaderboard-entries li > :nth-child(3) {
    display: none;
  }

  .serverhub-section-heading {
    align-items: flex-start;
  }

  .serverhub-server-main .serverhub-section-heading {
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 12px;
  }

  .serverhub-live-session-section {
    --serverhub-live-map-height: clamp(285px, 82vw, 380px);
  }

  .serverhub-live-map-state {
    right: 12px;
    bottom: 12px;
    left: 12px;
    width: calc(100% - 24px);
    padding: 11px 12px 10px;
  }

  .serverhub-live-map-state strong {
    font-size: 1.3rem;
  }

  .serverhub-live-map-session-context {
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
    min-height: 82px;
    padding: 13px 14px;
  }

  .serverhub-live-map-session-context > span {
    grid-row: auto;
  }

  .serverhub-live-map-session-context strong,
  .serverhub-live-map-session-context small {
    align-self: auto;
  }

  .serverhub-live-driver-list li button {
    grid-template-columns: 28px minmax(0, 1fr);
    min-height: 69px;
  }

  .serverhub-live-driver-telemetry {
    grid-column: 2;
    margin-top: 4px;
    text-align: left;
  }

  .serverhub-loading-banner {
    height: 210px;
  }
}

/* ServerHub Discover --------------------------------------------------------- */

.serverhub-account-cta {
  position: relative;
  flex: 0 0 auto;
}

.serverhub-account-cta-control.button.small {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 16px;
  border-radius: 2px;
  color: #fff;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.serverhub-account-picker {
  position: absolute;
  top: calc(100% + 13px);
  right: 0;
  z-index: 100;
  width: min(410px, calc(100vw - 32px));
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-top: 2px solid var(--hub-red);
  border-radius: 2px;
  background: #0c0f14;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.58);
}

.serverhub-account-picker > header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.serverhub-account-picker > header small,
.serverhub-account-picker > header strong {
  display: block;
}

.serverhub-account-picker > header small {
  margin-bottom: 2px;
  color: var(--hub-red-soft);
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.serverhub-account-picker > header strong {
  color: #f5f6f8;
  font: 600 1.65rem/1 "Teko", sans-serif;
}

.serverhub-account-picker > header button {
  display: grid;
  width: 31px;
  height: 31px;
  flex: 0 0 31px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 2px;
  background: transparent;
  color: #aeb4bf;
  font: 400 1.2rem/1 Arial, sans-serif;
  cursor: pointer;
}

.serverhub-account-picker > header button:hover,
.serverhub-account-picker > header button:focus-visible {
  border-color: rgba(255, 255, 255, 0.34);
  color: #fff;
}

.serverhub-account-picker > p {
  margin: 10px 0 14px;
  color: #9fa6b2;
  font-size: 0.78rem;
  line-height: 1.4;
}

.serverhub-account-picker-list {
  display: grid;
  max-height: min(410px, 58vh);
  overflow-y: auto;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.serverhub-account-picker-row {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 13px 3px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  color: #eef1f5;
  text-decoration: none;
}

.serverhub-account-picker-row:hover,
.serverhub-account-picker-row:focus-visible {
  background: rgba(255, 255, 255, 0.025);
  color: #fff;
  outline: none;
}

.serverhub-account-picker-row:focus-visible {
  box-shadow: inset 2px 0 var(--hub-cyan);
}

.serverhub-account-picker-identity {
  min-width: 0;
}

.serverhub-account-picker-identity strong,
.serverhub-account-picker-identity small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.serverhub-account-picker-identity strong {
  font-size: 0.88rem;
  font-weight: 700;
}

.serverhub-account-picker-identity small {
  margin-top: 4px;
  color: #8f97a4;
  font-size: 0.66rem;
}

.serverhub-account-picker-row > b {
  flex: 0 0 auto;
  color: var(--hub-red-soft);
  font-size: 0.65rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.serverhub-discover-shell {
  position: relative;
  z-index: 1;
  width: min(1440px, calc(100% - 64px));
  margin: 0 auto;
  padding-bottom: 96px;
}

.serverhub-discover-preview-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 48px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
  color: #858b97;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.serverhub-discover-preview-bar > span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.serverhub-discover-preview-bar i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--hub-amber);
}

.serverhub-discover-preview-bar a {
  color: #aeb3bd;
  text-decoration: none;
  transition: color 0.18s ease;
}

.serverhub-discover-preview-bar a:hover,
.serverhub-discover-preview-bar a:focus-visible {
  color: #fff;
}

.serverhub-discover-hero {
  position: relative;
  display: grid;
  min-height: 440px;
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr);
  align-items: center;
  overflow: hidden;
  border-bottom: 1px solid var(--hub-line);
  background:
    linear-gradient(100deg, rgba(7, 8, 11, 0.98) 0%, rgba(7, 8, 11, 0.9) 49%, rgba(7, 8, 11, 0.26) 100%),
    radial-gradient(circle at 84% 18%, rgba(255, 45, 55, 0.25), transparent 36%);
}

.serverhub-discover-hero::before {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(118deg, transparent 0 66px, rgba(255, 255, 255, 0.025) 67px 68px);
  content: "";
  pointer-events: none;
}

.serverhub-discover-hero-copy {
  position: relative;
  z-index: 2;
  max-width: 800px;
  min-width: 0;
  padding: 56px clamp(24px, 4vw, 56px);
}

.serverhub-discover-hero-copy .eyebrow,
.serverhub-discover-section-heading .eyebrow,
.serverhub-discover-error .eyebrow {
  margin: 0 0 8px;
  color: var(--hub-red-soft);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.serverhub-discover-hero h1 {
  max-width: 770px;
  margin: 0;
  font-family: "Teko", sans-serif;
  font-size: clamp(4rem, 7vw, 7rem);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 0.95;
}

.serverhub-discover-hero h1 span {
  display: block;
  color: var(--hub-red);
}

.serverhub-discover-hero-copy > p:not(.eyebrow) {
  max-width: 620px;
  margin: 20px 0 0;
  color: #b4b9c2;
  font-size: 1.16rem;
  line-height: 1.55;
}

.serverhub-discover-search {
  display: flex;
  width: min(700px, 100%);
  min-height: 58px;
  align-items: center;
  gap: 14px;
  margin-top: 38px;
  padding: 0 18px;
  border: 1px solid rgba(255, 255, 255, 0.19);
  border-left: 2px solid var(--hub-red);
  border-radius: 2px;
  background: rgba(13, 15, 20, 0.9);
  transition: border-color 0.18s ease, background 0.18s ease;
}

.serverhub-discover-hero .serverhub-discover-search {
  margin-top: 28px;
}

.serverhub-discover-search:focus-within {
  border-color: rgba(51, 214, 255, 0.56);
  border-left-color: var(--hub-red);
  background: #11141a;
}

.serverhub-discover-search svg {
  flex: 0 0 21px;
  width: 21px;
  color: #8d929d;
}

.serverhub-discover-search input {
  min-width: 0;
  height: 56px;
  flex: 1;
  border: 0;
  outline: 0;
  background: transparent;
  color: #f5f6f8;
  font: 600 1rem/1 "Rajdhani", sans-serif;
}

.serverhub-discover-search input::placeholder {
  color: #838995;
}

.serverhub-discover-search button {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 0;
  background: transparent;
  color: #9a9faa;
  font: 300 1.5rem/1 Arial, sans-serif;
  cursor: pointer;
}

.serverhub-discover-search button:hover,
.serverhub-discover-search button:focus-visible {
  color: #fff;
}

.serverhub-discover-hero-visual {
  position: relative;
  display: grid;
  height: 100%;
  align-content: center;
  justify-items: end;
  padding-right: 3vw;
  color: rgba(255, 255, 255, 0.08);
}

.serverhub-discover-hero-visual::before,
.serverhub-discover-hero-visual::after {
  position: absolute;
  right: 8%;
  width: 330px;
  height: 170px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  content: "";
  transform: skewX(-24deg) rotate(-8deg);
}

.serverhub-discover-hero-visual::after {
  right: -9%;
  width: 260px;
  border-color: rgba(255, 45, 55, 0.17);
}

.serverhub-discover-list-server {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  z-index: 1;
  margin-top: 24px;
  max-width: 100%;
  text-align: center;
}

@media (min-width: 901px) {
  .serverhub-discover-list-server {
    position: absolute;
    right: 3vw;
    bottom: 56px; /* Match the hero copy's bottom padding. */
    min-height: 58px; /* Match the search bar. */
    margin-top: 0;
  }
}

.serverhub-discover-hero-visual strong {
  font-family: "Teko", sans-serif;
  font-size: 13rem;
  font-style: italic;
  font-weight: 700;
  letter-spacing: -0.08em;
  line-height: 0.65;
}

.serverhub-discover-hero-visual small {
  margin-top: 28px;
  color: #767c88;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.serverhub-discover-road-line {
  position: absolute;
  right: 18%;
  bottom: -100px;
  width: 1px;
  height: 420px;
  background: linear-gradient(transparent, rgba(255, 45, 55, 0.72), transparent);
  transform: rotate(28deg);
}

.serverhub-discover-stats {
  display: flex;
  min-height: 94px;
  align-items: stretch;
  border-bottom: 1px solid var(--hub-line);
}

.serverhub-discover-stats > div {
  display: flex;
  min-width: 205px;
  align-items: center;
  gap: 13px;
  padding: 18px 34px;
}

.serverhub-discover-stats > div:first-child {
  padding-left: 0;
}

.serverhub-discover-stats > div + div {
  border-left: 1px solid rgba(255, 255, 255, 0.09);
}

.serverhub-discover-stats strong {
  color: #fff;
  font-family: "Teko", sans-serif;
  font-size: 2.75rem;
  font-weight: 600;
  line-height: 0.8;
}

.serverhub-discover-stats span {
  max-width: 80px;
  color: #7f8590;
  font-size: 0.67rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  line-height: 1.25;
  text-transform: uppercase;
}

.serverhub-discover-loading {
  display: flex;
  min-height: 280px;
  align-items: center;
  justify-content: center;
  gap: 13px;
  color: #a4a9b3;
}

.serverhub-discover-error,
.serverhub-discover-empty {
  max-width: 760px;
  margin: 80px auto 0;
  padding: 65px 30px;
  border-top: 1px solid var(--hub-line);
  border-bottom: 1px solid var(--hub-line);
  text-align: center;
}

.serverhub-discover-error h2,
.serverhub-discover-empty h2 {
  margin: 0;
  font-family: "Teko", sans-serif;
  font-size: 2.6rem;
  font-weight: 600;
  line-height: 1;
}

.serverhub-discover-error > p:not(.eyebrow),
.serverhub-discover-empty p {
  margin: 13px auto 0;
  color: #969ca7;
  line-height: 1.55;
}

.serverhub-discover-error .button,
.serverhub-discover-empty .button {
  margin-top: 24px;
}

.serverhub-discover-empty-mark {
  display: grid;
  width: 54px;
  height: 54px;
  margin: 0 auto 22px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.17);
  color: #9ba0aa;
  font-family: "Teko", sans-serif;
  font-size: 1.4rem;
}

.serverhub-discover-browser,
.serverhub-discover-section {
  padding-top: 58px;
}

.serverhub-discover-section + .serverhub-discover-section {
  margin-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.serverhub-discover-section-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 22px;
}

.serverhub-discover-section-heading h2 {
  margin: 0;
  font-family: "Teko", sans-serif;
  font-size: 2.75rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 0.9;
}

.serverhub-discover-sort-controls {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.serverhub-discover-sort {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #aeb4bf;
  font-size: 0.9rem;
  font-weight: 700;
}

.serverhub-discover-sort select {
  width: auto;
  max-width: 100%;
  min-height: 40px;
  padding: 8px 30px 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 6px;
  color: #fff;
  background-color: #101419;
  font: inherit;
  color-scheme: dark;
  cursor: pointer;
}

.serverhub-discover-sort select:hover { border-color: rgba(255, 255, 255, 0.4); }
.serverhub-discover-sort select:focus-visible { outline: 2px solid #55dfff; outline-offset: 3px; }

.serverhub-discover-section-count {
  color: #818793;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.serverhub-discover-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  padding-bottom: 30px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
}

.serverhub-discover-filter {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  gap: 9px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 2px;
  background: transparent;
  color: #a5aab4;
  font: 700 0.72rem/1 "Rajdhani", sans-serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: border-color 0.18s ease, background 0.18s ease, color 0.18s ease;
}

.serverhub-discover-filter span {
  color: #6e7480;
  font-size: 0.65rem;
}

.serverhub-discover-filter:hover,
.serverhub-discover-filter:focus-visible {
  border-color: rgba(255, 255, 255, 0.3);
  color: #fff;
}

.serverhub-discover-filter[aria-pressed="true"] {
  border-color: rgba(255, 45, 55, 0.58);
  background: rgba(255, 45, 55, 0.12);
  color: #fff;
}

.serverhub-discover-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.serverhub-discover-card {
  position: relative;
  display: block;
  min-height: 320px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-top-color: rgba(255, 45, 55, 0.5);
  border-radius: 2px;
  background: #0c0e12;
  color: #fff;
  text-decoration: none;
  transform: translateY(0);
  transition: border-color 0.22s ease, transform 0.22s ease;
}

.serverhub-discover-card:hover,
.serverhub-discover-card:focus-visible {
  border-color: rgba(255, 255, 255, 0.32);
  border-top-color: var(--hub-red);
  outline: none;
  transform: translateY(-3px);
}

.serverhub-discover-card:focus-visible {
  box-shadow: 0 0 0 2px var(--hub-cyan);
}

.serverhub-discover-card-artwork,
.serverhub-discover-card-fallback,
.serverhub-discover-card-banner,
.serverhub-discover-card-shade {
  position: absolute;
  inset: 0;
}

.serverhub-discover-card-fallback {
  background:
    linear-gradient(124deg, transparent 0 56%, rgba(255, 45, 55, 0.2) 56.2% 56.6%, transparent 56.8%),
    repeating-linear-gradient(116deg, transparent 0 46px, rgba(255, 255, 255, 0.025) 47px 48px),
    radial-gradient(circle at 85% 8%, rgba(225, 6, 0, 0.28), transparent 40%),
    #111319;
}

.serverhub-discover-card-banner {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.serverhub-discover-card:hover .serverhub-discover-card-banner,
.serverhub-discover-card:focus-visible .serverhub-discover-card-banner {
  transform: scale(1.025);
}

.serverhub-discover-card-shade {
  background:
    linear-gradient(180deg, rgba(5, 6, 8, 0.36) 0%, rgba(5, 6, 8, 0.5) 31%, rgba(5, 6, 8, 0.96) 72%, #08090c 100%),
    linear-gradient(90deg, rgba(4, 5, 7, 0.7), transparent 72%);
}

.serverhub-discover-card-body {
  position: relative;
  z-index: 2;
  display: flex;
  min-height: 320px;
  flex-direction: column;
  padding: 17px;
}

.serverhub-discover-card-top,
.serverhub-discover-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.serverhub-discover-card-state-wrap,
.serverhub-discover-card-telemetry {
  display: block;
}

.serverhub-discover-card-telemetry {
  margin-top: 5px;
  color: var(--hub-amber);
  font-size: 0.56rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.serverhub-discover-card-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.serverhub-discover-card-status::before {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #747a85;
  content: "";
}

.serverhub-discover-card-status[data-state="online"] {
  color: var(--hub-green);
}

.serverhub-discover-card-status[data-state="online"]::before {
  background: currentColor;
  box-shadow: 0 0 0 4px rgba(87, 227, 155, 0.1);
}

.serverhub-discover-card-status[data-state="offline"] {
  color: #b0b4bc;
}

.serverhub-discover-card-region {
  overflow: hidden;
  color: #bdc1c9;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.serverhub-discover-card-identity {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  margin-top: auto;
  padding-top: 48px;
}

.serverhub-discover-card-logo {
  position: relative;
  display: grid;
  width: 54px;
  height: 54px;
  flex: 0 0 54px;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 3px;
  background: #151820;
}

.serverhub-discover-card-logo img {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.serverhub-discover-card-initials {
  color: #e1e3e7;
  font-family: "Teko", sans-serif;
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.serverhub-discover-card-title {
  min-width: 0;
}

.serverhub-discover-card-title strong,
.serverhub-discover-card-title small {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
}

.serverhub-discover-card-title strong {
  -webkit-line-clamp: 2;
  font-family: "Teko", sans-serif;
  font-size: 1.58rem;
  font-weight: 600;
  letter-spacing: 0.005em;
  line-height: 0.95;
}

.serverhub-discover-card-title small {
  margin-top: 5px;
  -webkit-line-clamp: 2;
  color: #acb1ba;
  font-size: 0.69rem;
  line-height: 1.35;
}

.serverhub-discover-card-meta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(90px, 0.62fr);
  gap: 12px;
  margin-top: 14px;
  padding: 11px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.serverhub-discover-card-meta.is-single {
  grid-template-columns: minmax(0, 1fr);
}

.serverhub-discover-card-meta-label,
.serverhub-discover-card-meta-value {
  display: block;
}

.serverhub-discover-card-meta-label {
  color: #777d88;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.serverhub-discover-card-meta-value {
  overflow: hidden;
  margin-top: 3px;
  color: #eef0f3;
  font-size: 0.73rem;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.serverhub-discover-card-footer {
  min-height: 35px;
  padding-top: 10px;
}

.serverhub-discover-card-tags {
  display: flex;
  min-width: 0;
  gap: 5px;
  overflow: hidden;
}

.serverhub-discover-card-tags span {
  padding: 3px 6px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  color: #a7acb5;
  font-size: 0.54rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}

.serverhub-discover-card-action {
  flex: 0 0 auto;
  color: #fff;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

@media (max-width: 1250px) {
  .serverhub-discover-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .serverhub-discover-shell {
    width: min(100% - 36px, 760px);
  }

  .serverhub-discover-hero {
    min-height: 400px;
    grid-template-columns: 1fr;
  }

  .serverhub-discover-hero-copy {
    padding: 44px 36px;
  }

  .serverhub-discover-hero-visual {
    height: auto;
    justify-items: start;
    padding: 0 36px 36px;
  }

  .serverhub-discover-list-server { margin-top: 0; }

  .serverhub-discover-hero-visual > strong,
  .serverhub-discover-hero-visual > small,
  .serverhub-discover-hero-visual > .serverhub-discover-road-line,
  .serverhub-discover-hero-visual::before,
  .serverhub-discover-hero-visual::after {
    display: none;
  }

  .serverhub-discover-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 780px) {
  .serverhub-account-cta {
    width: 100%;
  }

  .serverhub-account-cta-control.button.small {
    width: 100%;
  }

  .serverhub-account-picker {
    position: static;
    width: 100%;
    margin-top: 8px;
    box-shadow: none;
  }

  .serverhub-account-picker-row {
    width: 100%;
    padding: 13px 3px;
    border-right: 0;
    border-left: 0;
    border-radius: 0;
    background: transparent;
    font-family: "Rajdhani", sans-serif;
    text-transform: none;
  }
}

@media (max-width: 620px) {
  .serverhub-discover-shell {
    width: min(100% - 28px, 540px);
    padding-bottom: 64px;
  }

  .serverhub-discover-preview-bar {
    align-items: flex-start;
    padding: 12px 0;
  }

  .serverhub-discover-preview-bar > span {
    max-width: 200px;
    line-height: 1.35;
  }

  .serverhub-discover-hero {
    min-height: 0;
  }

  .serverhub-discover-hero-copy {
    padding: 32px 24px;
  }

  .serverhub-discover-hero h1 {
    font-size: clamp(3.1rem, 14vw, 4.5rem);
  }

  .serverhub-discover-hero-copy > p:not(.eyebrow) {
    margin-top: 21px;
    font-size: 1rem;
  }

  .serverhub-discover-search {
    min-height: 52px;
    margin-top: 29px;
    padding: 0 13px;
  }

  .serverhub-discover-search input {
    height: 50px;
    font-size: 0.91rem;
  }

  .serverhub-discover-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
  }

  .serverhub-discover-stats > div {
    min-width: 0;
    gap: 10px;
    padding: 18px 14px;
  }

  .serverhub-discover-stats > div:first-child {
    padding-left: 0;
  }

  .serverhub-discover-stats > div:nth-child(3) {
    grid-column: 1 / -1;
    border-top: 1px solid rgba(255, 255, 255, 0.09);
    border-left: 0;
  }

  .serverhub-discover-stats strong {
    font-size: 2.35rem;
  }

  .serverhub-discover-browser,
  .serverhub-discover-section {
    padding-top: 45px;
  }

  .serverhub-discover-section-heading h2 {
    font-size: 2.35rem;
  }

  .serverhub-discover-grid {
    grid-template-columns: 1fr;
  }

  .serverhub-discover-card,
  .serverhub-discover-card-body {
    min-height: 335px;
  }

  .serverhub-discover-card-body {
    padding: 18px;
  }

  .serverhub-discover-card-identity {
    padding-top: 48px;
  }

  .serverhub-discover-card-title strong {
    font-size: 1.8rem;
  }

  .serverhub-discover-card-meta {
    grid-template-columns: 1fr;
    gap: 11px;
  }

  .serverhub-discover-card-meta-item.is-capacity {
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
  }

  .serverhub-discover-card-action {
    font-size: 0.62rem;
  }
}

/* ServerHub Events */

.serverhub-section-link {
  color: #aeb4c1;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
}

.serverhub-section-link:hover,
.serverhub-section-link:focus-visible {
  color: #fff;
}

.serverhub-event-admin-tools {
  flex-wrap: wrap;
}

.serverhub-event-admin-tools select,
.serverhub-field select {
  min-height: 42px;
  padding: 0 38px 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 3px;
  background: #11141a;
  color: #e8e9ec;
  font: 600 0.84rem/1 "Rajdhani", sans-serif;
}

.serverhub-events-table .serverhub-table-head,
.serverhub-event-admin-row {
  grid-template-columns: minmax(190px, 1.65fr) minmax(135px, 1.1fr) minmax(145px, 1.1fr) minmax(145px, 1.1fr) minmax(95px, 0.7fr) 70px minmax(140px, auto);
  column-gap: 16px;
}

.serverhub-event-admin-identity strong,
.serverhub-event-admin-identity small {
  display: block;
}

.serverhub-event-admin-identity small {
  margin-top: 4px;
  color: var(--hub-muted);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.serverhub-event-status {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 3px 8px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 2px;
  color: #c8ccd4;
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.serverhub-event-status[data-state="live"] {
  border-color: rgba(53, 223, 146, 0.5);
  color: var(--hub-green);
}

.serverhub-event-status[data-state="scheduled"] {
  border-color: rgba(255, 65, 75, 0.42);
  color: #ff727a;
}

.serverhub-event-status[data-state="cancelled"],
.serverhub-event-status[data-state="completed"],
.serverhub-event-status[data-state="unavailable"] {
  color: #818794;
}

.serverhub-event-editor {
  width: min(760px, 100vw);
}

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

.serverhub-event-form-grid .serverhub-field + .serverhub-field {
  margin-top: 0;
}

.serverhub-event-warning {
  margin: 18px 34px;
  padding: 12px 14px;
  border: 1px solid rgba(244, 182, 66, 0.3);
  background: rgba(244, 182, 66, 0.06);
  color: #e3bd73;
  font-size: 0.82rem;
}

.serverhub-danger-button {
  border-color: rgba(255, 55, 65, 0.4) !important;
  color: #ff7e85 !important;
}

.serverhub-events-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.72fr);
  align-items: end;
  gap: 60px;
  min-height: 310px;
  padding: 74px 0 56px;
  border-bottom: 1px solid var(--hub-line);
}

.serverhub-events-back {
  margin-bottom: 26px;
}

.serverhub-events-hero h1 {
  margin: 5px 0 8px;
  font-family: "Teko", sans-serif;
  font-size: clamp(4rem, 7vw, 7rem);
  font-weight: 600;
  line-height: 0.83;
}

.serverhub-events-hero h1 span {
  color: var(--hub-red);
}

.serverhub-events-hero p:not(.eyebrow) {
  max-width: 600px;
  color: var(--hub-muted);
}

.serverhub-events-browser {
  padding-bottom: 0;
}

.serverhub-event-type-filters {
  margin-top: 10px;
}

.serverhub-event-grid,
.serverhub-event-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.serverhub-event-card {
  display: flex;
  min-width: 0;
  min-height: 360px;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-top-color: rgba(255, 48, 58, 0.58);
  background: #0c0e12;
  color: #fff;
  text-decoration: none;
  transition: border-color 0.18s ease, transform 0.18s ease;
}

.serverhub-event-card:hover,
.serverhub-event-card:focus-visible {
  border-color: rgba(255, 65, 75, 0.7);
  transform: translateY(-2px);
}

.serverhub-event-card-artwork {
  position: relative;
  display: block;
  min-height: 142px;
  overflow: hidden;
  background:
    linear-gradient(125deg, rgba(255, 36, 46, 0.16), transparent 48%),
    repeating-linear-gradient(120deg, transparent 0 28px, rgba(255, 255, 255, 0.025) 29px 30px),
    #14171d;
}

.serverhub-event-card-artwork img,
.serverhub-event-hero > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.serverhub-event-card-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(8, 10, 13, 0.82), rgba(8, 10, 13, 0.12));
}

.serverhub-event-card-status {
  position: absolute;
  z-index: 1;
  top: 14px;
  left: 14px;
  background: rgba(7, 9, 12, 0.78);
}

.serverhub-event-card-body {
  display: flex;
  min-height: 0;
  flex: 1;
  flex-direction: column;
  padding: 20px;
}

.serverhub-event-card-time,
.serverhub-event-card-server {
  color: #9298a5;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.serverhub-event-card-title {
  margin: 6px 0 2px;
  font-family: "Teko", sans-serif;
  font-size: 2rem;
  font-weight: 600;
  line-height: 1;
}

.serverhub-event-card-facts {
  display: grid;
  gap: 5px;
  margin-top: 18px;
  color: #b8bdc8;
  font-size: 0.82rem;
}

.serverhub-event-card-footer {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 14px;
  margin-top: auto;
  padding-top: 17px;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
  color: #8d93a0;
  font-size: 0.75rem;
}

.serverhub-event-card-footer > span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.serverhub-event-card-footer strong {
  flex: 0 0 auto;
  color: #fff;
  font-size: 0.66rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.serverhub-event-card-grid-compact {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.serverhub-event-card-grid-compact .serverhub-event-card {
  min-height: 270px;
}

.serverhub-event-card-grid-compact .serverhub-event-card-artwork {
  min-height: 105px;
}

.serverhub-event-card-grid-compact .serverhub-event-card-title {
  font-size: 1.6rem;
}

.serverhub-event-detail {
  border-top: 2px solid var(--hub-red);
  background: var(--hub-panel);
}

.serverhub-event-hero {
  position: relative;
  display: flex;
  min-height: 470px;
  align-items: end;
  overflow: hidden;
  padding: clamp(42px, 7vw, 82px);
  background:
    linear-gradient(125deg, rgba(160, 8, 17, 0.34), transparent 54%),
    repeating-linear-gradient(120deg, transparent 0 42px, rgba(255, 255, 255, 0.025) 43px 44px),
    #12151b;
}

.serverhub-event-hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(8, 10, 13, 0.98) 4%, rgba(8, 10, 13, 0.22) 78%);
}

.serverhub-event-hero-content {
  position: relative;
  z-index: 1;
  max-width: 950px;
}

.serverhub-event-hero-content > .serverhub-event-status {
  position: static;
  margin-bottom: 18px;
}

.serverhub-event-hero h1 {
  max-width: 900px;
  margin: 4px 0;
  font-family: "Teko", sans-serif;
  font-size: clamp(4rem, 8vw, 7.5rem);
  font-weight: 600;
  line-height: 0.84;
}

.serverhub-event-hero-time {
  margin: 12px 0;
  color: #e7e9ee;
  font-size: 1.08rem;
}

.serverhub-event-host {
  margin: 0;
  color: #9298a5;
}

.serverhub-event-host a {
  color: #fff;
  font-weight: 700;
}

.serverhub-event-detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
}

.serverhub-event-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 28px 0 0;
  border-top: 1px solid var(--hub-line);
}

.serverhub-event-facts > div {
  min-width: 0;
  padding: 18px 20px 18px 0;
  border-bottom: 1px solid var(--hub-line);
}

.serverhub-event-facts > div:nth-child(even) {
  padding-left: 20px;
  border-left: 1px solid var(--hub-line);
}

.serverhub-event-facts dt {
  color: #737a88;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.serverhub-event-facts dd {
  margin: 5px 0 0;
  color: #f3f4f6;
  font: 600 1.35rem/1.1 "Teko", sans-serif;
}

.serverhub-event-format {
  display: grid;
  gap: 0;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: event-stage;
}

.serverhub-event-format li {
  padding: 11px 0;
  border-bottom: 1px solid var(--hub-line);
  color: #c5c9d1;
  counter-increment: event-stage;
}

.serverhub-event-format li::before {
  margin-right: 14px;
  color: var(--hub-red-soft);
  content: counter(event-stage, decimal-leading-zero);
}

.serverhub-event-state-note,
.serverhub-event-results-future p {
  color: var(--hub-muted);
  font-size: 0.83rem;
  line-height: 1.55;
}

@media (max-width: 1100px) {
  .serverhub-events-table .serverhub-table-head,
  .serverhub-event-admin-row {
    grid-template-columns: minmax(190px, 1.5fr) minmax(125px, 1fr) minmax(140px, 1fr) minmax(90px, 0.7fr) minmax(135px, auto);
  }

  .serverhub-events-table .serverhub-table-head > :nth-child(4),
  .serverhub-events-table .serverhub-table-head > :nth-child(6),
  .serverhub-event-admin-row > :nth-child(4),
  .serverhub-event-admin-row > :nth-child(6) {
    display: none;
  }
}

@media (min-width: 901px) and (max-width: 1050px) {
  .serverhub-live-map-layout-full {
    grid-template-columns: minmax(0, 1fr) clamp(300px, 30vw, 340px);
  }

  .serverhub-live-sidebar > .serverhub-live-drivers {
    height: auto;
    min-height: 0;
    border-top: 0;
  }

  .serverhub-live-sidebar .serverhub-live-driver-list {
    max-height: none;
  }
}

@media (max-height: 720px) and (min-width: 901px) {
  .serverhub-live-page,
  .serverhub-live-app:fullscreen {
    overflow-y: auto;
  }

  .serverhub-live-map-layout-full .serverhub-live-map-viewport {
    min-height: 300px;
  }
}

@media (max-width: 900px) {
  .serverhub-events-hero,
  .serverhub-event-detail-layout {
    display: block;
  }

  .serverhub-events-hero .serverhub-discover-search {
    margin-top: 34px;
  }

  .serverhub-event-grid,
  .serverhub-event-card-grid,
  .serverhub-event-card-grid-compact {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .serverhub-events-table .serverhub-event-admin-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .serverhub-events-table .serverhub-event-admin-row > :nth-child(4),
  .serverhub-events-table .serverhub-event-admin-row > :nth-child(6) {
    display: block;
  }

  .serverhub-event-admin-row .serverhub-event-admin-identity,
  .serverhub-event-admin-row .serverhub-row-actions {
    grid-column: 1 / -1;
  }

  .serverhub-event-editor-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .serverhub-event-editor-actions > div {
    flex-wrap: wrap;
  }
}

@media (max-width: 620px) {
  .serverhub-event-form-grid,
  .serverhub-event-grid,
  .serverhub-event-card-grid,
  .serverhub-event-card-grid-compact,
  .serverhub-event-facts {
    grid-template-columns: 1fr;
  }

  .serverhub-event-facts > div:nth-child(even) {
    padding-left: 0;
    border-left: 0;
  }

  .serverhub-event-hero {
    min-height: 400px;
    padding: 34px 22px;
  }

  .serverhub-event-hero h1 {
    font-size: 4rem;
  }
}

@media (max-width: 1100px) {
  .serverhub-live-app-header {
    grid-template-columns: auto minmax(220px, 1fr);
  }

  .serverhub-live-header-actions {
    grid-column: 1 / -1;
    justify-content: flex-start;
    padding-top: 9px;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
  }
}

@media (max-width: 900px) {
  .serverhub-live-page {
    overflow: auto;
  }

  .serverhub-live-app {
    height: auto;
    overflow: visible;
  }

  .serverhub-live-workspace,
  .serverhub-live-map-layout-full {
    overflow: visible;
  }

  .serverhub-live-map-layout-full {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
  }

  .serverhub-live-map-layout-full > .serverhub-live-map-panel,
  .serverhub-live-sidebar {
    height: auto;
    max-height: none;
  }

  .serverhub-live-map-layout-full .serverhub-live-map-viewport {
    height: min(66svh, 620px);
    min-height: 390px;
  }

  .serverhub-live-sidebar {
    max-height: none;
    border-top: 1px solid var(--hub-line);
    border-left: 0;
  }

  .serverhub-live-sidebar > .serverhub-live-drivers {
    min-height: 220px;
  }

  .serverhub-live-sidebar .serverhub-live-driver-list {
    max-height: 420px;
  }

  .serverhub-selected-driver[data-state="selected"] {
    display: block;
    min-height: 0;
    max-height: 560px;
    overflow-y: auto;
  }

  .serverhub-selected-driver-timing,
  .serverhub-live-timing-checkpoints {
    display: block;
  }

  .serverhub-live-timing-checkpoints ol {
    max-height: 360px;
  }

  .serverhub-live-sidebar.has-driver-selection > .serverhub-live-drivers {
    min-height: 220px;
    flex-basis: auto;
  }
}

@media (max-width: 650px) {
  .serverhub-live-app-header {
    display: flex;
    align-items: stretch;
    flex-direction: column;
    gap: 11px;
  }

  .serverhub-live-brand {
    font-size: 1.75rem;
  }

  .serverhub-live-brand img {
    width: 52px;
    height: 42px;
  }

  .serverhub-live-server-identity {
    padding: 10px 0 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    border-left: 0;
  }

  .serverhub-live-header-actions {
    flex-wrap: wrap;
  }

  .serverhub-live-header-actions .nav-email {
    display: none;
  }

  .serverhub-live-workspace-toolbar {
    align-items: flex-start;
    flex-direction: column;
    padding: 15px 0;
  }

  .serverhub-live-map-controls {
    width: 100%;
    justify-content: flex-start;
  }

  .serverhub-live-map-controls .serverhub-live-map-status {
    width: 100%;
  }

  .serverhub-live-map-layout-full .serverhub-live-map-viewport {
    height: 56svh;
    min-height: 330px;
  }

  .serverhub-live-workspace {
    padding-right: 20px;
    padding-left: 20px;
  }

  .serverhub-live-track-hud {
    top: 10px;
    left: 10px;
    width: min(250px, calc(100% - 20px));
    padding: 10px 11px;
  }

  .serverhub-live-track-hud header {
    padding-bottom: 7px;
  }

  .serverhub-live-track-hud dl {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 4px 10px;
    margin-top: 7px;
  }

  .serverhub-live-track-hud dl > div {
    display: block;
  }

  .serverhub-live-track-hud dt,
  .serverhub-live-track-hud dd {
    font-size: 0.72rem;
  }

  .serverhub-live-timing-checkpoints-heading,
  .serverhub-live-timing-table-head,
  .serverhub-live-timing-checkpoints li {
    grid-template-columns: minmax(82px, 1fr) 72px 58px;
  }

  .serverhub-live-map-gesture-hint {
    display: none;
  }

  .serverhub-live-preview-actions {
    width: 100%;
    flex-wrap: wrap;
    justify-content: space-between;
  }
}

/* ServerHub Competition operations ----------------------------------------- */

.serverhub-operations-shell {
  width: min(1480px, calc(100% - 48px));
}

.serverhub-operations-shell .serverhub-console-hero h1 {
  font-size: clamp(3.8rem, 7vw, 6.8rem);
}

.serverhub-ops-nav {
  display: flex;
  align-items: center;
  gap: 0;
  overflow-x: auto;
  border-bottom: 1px solid var(--hub-line);
  scrollbar-width: thin;
}

.serverhub-ops-nav a {
  position: relative;
  flex: 0 0 auto;
  padding: 17px 15px 15px;
  color: var(--hub-muted);
  font-size: 0.73rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-decoration: none;
  text-transform: uppercase;
}

.serverhub-ops-nav a:first-child {
  padding-left: 0;
}

.serverhub-ops-nav a::after {
  position: absolute;
  right: 15px;
  bottom: -1px;
  left: 15px;
  height: 2px;
  background: var(--hub-red);
  content: "";
  transform: scaleX(0);
  transition: transform 0.18s ease;
}

.serverhub-ops-nav a:first-child::after {
  left: 0;
}

.serverhub-ops-nav a:hover,
.serverhub-ops-nav a:focus-visible,
.serverhub-ops-nav a.active {
  color: #fff;
}

.serverhub-ops-nav a.active::after {
  transform: scaleX(1);
}

.serverhub-ops-status {
  min-height: 38px;
  padding: 11px 0 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  color: var(--hub-muted);
  font-size: 0.76rem;
  letter-spacing: 0.05em;
}

.serverhub-ops-status[data-state="success"] {
  color: var(--hub-green);
}

.serverhub-ops-status[data-state="error"] {
  color: #ff777e;
}

.serverhub-ops-status[data-state="warning"] {
  color: var(--hub-amber);
}

.serverhub-ops-panel {
  min-height: 420px;
}

.serverhub-ops-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 42px;
}

.serverhub-ops-management-grid {
  grid-template-columns: minmax(0, 1.7fr) minmax(330px, 0.7fr);
}

.serverhub-ops-metrics {
  grid-template-columns: repeat(9, minmax(0, 1fr));
}

.serverhub-ops-metrics .serverhub-metric {
  min-width: 0;
  padding-right: 16px;
  padding-left: 16px;
}

.serverhub-ops-metrics .serverhub-metric:first-child {
  padding-left: 0;
}

.serverhub-ops-metrics .serverhub-metric span {
  overflow: hidden;
  font-size: clamp(2rem, 3vw, 2.8rem);
  text-overflow: ellipsis;
}

.serverhub-ops-metrics .serverhub-metric em {
  display: block;
  margin-top: 5px;
  overflow: hidden;
  color: #777d89;
  font-size: 0.64rem;
  font-style: normal;
  letter-spacing: 0.05em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.serverhub-ops-stat-list {
  border-top: 1px solid var(--hub-line);
}

.serverhub-ops-stat {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 48px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.075);
}

.serverhub-ops-stat > span:first-child {
  color: var(--hub-muted);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.serverhub-ops-stat strong {
  font-family: "Teko", sans-serif;
  font-size: 1.35rem;
  font-weight: 600;
}

.serverhub-ops-table {
  max-width: 100%;
  overflow-x: auto;
  border-top: 1px solid var(--hub-line);
}

.serverhub-ops-data-table {
  min-width: max(680px, 100%);
}

.serverhub-ops-data-head,
.serverhub-ops-data-row {
  display: grid;
  grid-template-columns: var(--ops-columns);
  align-items: center;
  column-gap: 18px;
}

.serverhub-ops-data-head {
  min-height: 38px;
  color: #717784;
  font-size: 0.63rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.serverhub-ops-data-row {
  min-height: 54px;
  border-top: 1px solid rgba(255, 255, 255, 0.075);
}

.serverhub-ops-data-row:hover {
  background: rgba(255, 255, 255, 0.018);
}

.serverhub-ops-data-cell {
  min-width: 0;
  overflow: hidden;
  color: #cdd0d7;
  font-size: 0.76rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.serverhub-ops-pill {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 2px 7px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 2px;
  color: #aeb3bd;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.serverhub-ops-pill[data-state="active"],
.serverhub-ops-pill[data-state="official"],
.serverhub-ops-pill[data-state="linked"],
.serverhub-ops-pill[data-state="healthy"],
.serverhub-ops-pill[data-state="ready"] {
  border-color: rgba(87, 227, 155, 0.38);
  color: var(--hub-green);
}

.serverhub-ops-pill[data-state="stale"],
.serverhub-ops-pill[data-state="received"],
.serverhub-ops-pill[data-state="partial"] {
  border-color: rgba(242, 184, 75, 0.38);
  color: var(--hub-amber);
}

.serverhub-ops-pill[data-state="error"],
.serverhub-ops-pill[data-state="rejected"],
.serverhub-ops-pill[data-state="mismatch"] {
  border-color: rgba(255, 45, 55, 0.42);
  color: #ff747b;
}

.serverhub-ops-pill[data-state="archived"],
.serverhub-ops-pill[data-state="unavailable"],
.serverhub-ops-pill[data-state="disabled"],
.serverhub-ops-pill[data-state="not_installed"] {
  color: #737985;
}

.serverhub-ops-empty {
  margin: 0;
  padding: 25px 0;
  color: var(--hub-muted);
  font-size: 0.82rem;
}

.serverhub-ops-actions,
.serverhub-ops-form-actions {
  display: flex;
  align-items: center;
  gap: 7px;
}

.serverhub-ops-actions .button.small {
  min-height: 29px;
  padding: 4px 8px;
  font-size: 0.63rem;
}

.serverhub-ops-form-card {
  align-self: start;
}

.serverhub-ops-form-card hr {
  margin: 28px 0;
  border: 0;
  border-top: 1px solid var(--hub-line);
}

.serverhub-ops-form {
  display: grid;
  gap: 14px;
}

.serverhub-ops-form h3 {
  margin: 0 0 2px;
  font-family: "Teko", sans-serif;
  font-size: 1.45rem;
  font-weight: 600;
}

.serverhub-ops-form label {
  display: grid;
  gap: 6px;
}

.serverhub-ops-form label > span {
  color: var(--hub-muted);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.serverhub-ops-form label small {
  color: #686e7a;
  font: inherit;
  text-transform: none;
}

.serverhub-ops-form input,
.serverhub-ops-form textarea,
.serverhub-ops-form select {
  width: 100%;
  min-height: 42px;
  padding: 9px 11px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 3px;
  outline: 0;
  background: #0e1015;
  color: #ecedf0;
  font: 600 0.84rem/1.25 "Rajdhani", sans-serif;
}

.serverhub-ops-form textarea {
  resize: vertical;
}

.serverhub-ops-form input:focus,
.serverhub-ops-form textarea:focus,
.serverhub-ops-form select:focus {
  border-color: rgba(51, 214, 255, 0.6);
}

.serverhub-ops-checks label {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
}

.serverhub-ops-checks input[type="checkbox"] {
  width: 18px;
  min-height: 18px;
  accent-color: var(--hub-red);
}

.serverhub-ops-search {
  width: min(240px, 42vw);
}

.serverhub-ops-search input,
.serverhub-ops-inline-select {
  width: 100%;
  min-height: 36px;
  padding: 7px 10px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 3px;
  outline: 0;
  background: #0e1015;
  color: #ecedf0;
  font: 600 0.78rem/1.2 "Rajdhani", sans-serif;
}

.serverhub-ops-search input:focus,
.serverhub-ops-inline-select:focus {
  border-color: rgba(51, 214, 255, 0.6);
}

.serverhub-ops-detail {
  margin-top: 28px;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-left: 2px solid var(--hub-red);
  background: rgba(11, 13, 18, 0.78);
}

.serverhub-ops-detail[hidden] {
  display: none;
}

.serverhub-ops-detail-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
}

.serverhub-ops-detail-head .eyebrow {
  margin: 0 0 2px;
}

.serverhub-ops-detail-head h3,
.serverhub-ops-detail-section h4 {
  margin: 0;
  font-family: "Teko", sans-serif;
  font-size: 1.8rem;
  font-weight: 600;
  line-height: 1;
}

.serverhub-ops-detail-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--hub-line);
  border-bottom: 1px solid var(--hub-line);
}

.serverhub-ops-result-summary {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.serverhub-ops-detail-summary .serverhub-metric {
  min-width: 0;
  padding: 15px 18px;
  border-left: 1px solid var(--hub-line);
}

.serverhub-ops-detail-summary .serverhub-metric:first-child {
  padding-left: 0;
  border-left: 0;
}

.serverhub-ops-detail-summary .serverhub-metric span {
  display: block;
  overflow: hidden;
  font-family: "Teko", sans-serif;
  font-size: 1.32rem;
  font-weight: 600;
  line-height: 1.05;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.serverhub-ops-detail-summary .serverhub-metric small,
.serverhub-ops-stack small {
  display: block;
  color: var(--hub-muted);
  font-size: 0.61rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.serverhub-ops-detail-section {
  margin-top: 24px;
}

.serverhub-ops-detail-section h4 {
  margin-bottom: 10px;
  font-size: 1.35rem;
}

.serverhub-ops-stack {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
}

.serverhub-ops-stack strong {
  display: block;
  overflow: hidden;
  color: #ecedf0;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.serverhub-ops-member-role {
  display: flex;
  align-items: center;
  gap: 7px;
}

.serverhub-ops-inline-select {
  min-height: 30px;
  padding: 4px 7px;
}

.serverhub-event-competition-shell {
  width: min(1480px, calc(100% - 48px));
  padding-top: 110px;
}

.serverhub-event-competition-shell > .serverhub-back-link {
  margin-bottom: 20px;
}

.serverhub-event-competition-shell .serverhub-console-hero {
  min-height: 190px;
  padding-top: 30px;
}

.serverhub-event-competition-shell .serverhub-console-hero h1 {
  font-size: clamp(3.5rem, 7vw, 6.5rem);
}

.serverhub-event-competition-summary,
.serverhub-event-competition-shell .serverhub-ops-management-grid {
  padding: 38px 0;
  border-bottom: 1px solid var(--hub-line);
}

.serverhub-event-competition-actions {
  margin-top: 22px;
}

.serverhub-event-competition-page select[multiple] {
  min-height: 150px;
}

.serverhub-event-competition-page select[multiple] option {
  padding: 5px 6px;
}

.serverhub-event-competition-page .serverhub-ops-data-row {
  min-height: 58px;
}

.serverhub-event-competition-page .serverhub-ops-data-cell .serverhub-ops-actions {
  justify-content: flex-end;
}

.serverhub-community-profile-shell {
  padding-top: 110px;
}

.serverhub-community-profile {
  padding-top: 35px;
}

.serverhub-community-profile > .eyebrow {
  margin: 0 0 3px;
  color: var(--hub-red-soft);
  letter-spacing: 0.14em;
}

.serverhub-community-profile h1 {
  max-width: 980px;
  margin: 0;
  font-family: "Teko", sans-serif;
  font-size: clamp(4rem, 9vw, 7.4rem);
  font-weight: 600;
  line-height: 0.88;
}

.serverhub-community-profile-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 56px;
  padding: 9px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.075);
  color: var(--hub-text);
  text-decoration: none;
}

.serverhub-community-profile-row:hover,
.serverhub-community-profile-row:focus-visible {
  color: var(--hub-cyan);
}

.serverhub-community-profile-row strong {
  font-size: 0.9rem;
}

.serverhub-community-profile-row small {
  color: var(--hub-muted);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

@media (max-width: 1180px) {
  .serverhub-ops-metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .serverhub-ops-metrics .serverhub-metric:nth-child(3n + 1) {
    padding-left: 0;
    border-left: 0;
  }

  .serverhub-ops-management-grid {
    grid-template-columns: minmax(0, 1.35fr) minmax(310px, 0.8fr);
  }
}

@media (max-width: 820px) {
  .serverhub-operations-shell {
    width: min(100% - 32px, 1480px);
  }

  .serverhub-event-competition-shell {
    width: min(100% - 32px, 1480px);
  }

  .serverhub-ops-grid,
  .serverhub-ops-management-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }

  .serverhub-ops-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .serverhub-ops-metrics .serverhub-metric:nth-child(n) {
    padding-left: 16px;
    border-left: 1px solid var(--hub-line);
  }

  .serverhub-ops-metrics .serverhub-metric:nth-child(odd) {
    padding-left: 0;
    border-left: 0;
  }

  .serverhub-ops-nav a {
    padding-right: 11px;
    padding-left: 11px;
  }

  .serverhub-ops-detail-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .serverhub-ops-detail-summary .serverhub-metric:nth-child(odd) {
    padding-left: 0;
    border-left: 0;
  }
}

@media (max-width: 540px) {
  .serverhub-operations-shell .serverhub-console-hero {
    align-items: flex-start;
    flex-direction: column;
    gap: 22px;
  }

  .serverhub-ops-metrics .serverhub-metric {
    padding-right: 10px;
  }

  .serverhub-ops-form .serverhub-event-form-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .serverhub-operations-page .serverhub-directory-head {
    align-items: flex-start;
  }

  .serverhub-ops-search {
    width: min(100%, 230px);
  }

  .serverhub-ops-detail {
    padding: 18px 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .serverhub-page *,
  .serverhub-page *::before,
  .serverhub-page *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
