.server-command-page {
  width: 100%;
  height: 100%;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.server-command-page.ant-space,
.server-command-page.ant-space > .ant-space-item {
  width: 100%;
}

.server-command-page.ant-space {
  flex: 1 1 auto;
}

.server-command-page .ant-alert-description {
  width: 100%;
}

.server-command-page__alert-body {
  width: 100%;
}

.server-command-page__alert-code {
  display: block;
  width: 100%;
  padding: 10px 12px;
  border-radius: 12px;
  background: #fff2f0;
  white-space: pre-wrap;
  word-break: break-word;
  user-select: text;
  -webkit-user-select: text;
}

.server-command-page__card,
.server-command-page__server-card {
  border-radius: 24px;
}

.server-command-page__reservation-card {
  border: 1px solid #d6e4ff;
  background: linear-gradient(180deg, #f8fbff 0%, #ffffff 100%);
}

.server-command-page__card--shared {
  background:
    linear-gradient(135deg, rgba(15, 23, 42, 0.96) 0%, rgba(30, 41, 59, 0.94) 52%, rgba(37, 99, 235, 0.88) 100%);
  color: #e2e8f0;
}

.server-command-page__card--shared .server-command-page__title.ant-typography,
.server-command-page__card--shared .server-command-page__copy.ant-typography {
  color: inherit;
}

.server-command-page__server-card {
  min-width: 0;
}

.server-command-page__server-card--shared {
  border: 1px solid rgba(148, 163, 184, 0.2);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 250, 252, 0.96) 100%);
  box-shadow:
    0 20px 44px rgba(15, 23, 42, 0.12),
    inset 0 0 0 1px rgba(255, 255, 255, 0.75);
}

.server-command-page__server-card--shared-compact {
  border-radius: 20px;
  box-shadow:
    0 12px 28px rgba(15, 23, 42, 0.08),
    inset 0 0 0 1px rgba(255, 255, 255, 0.72);
}

.server-command-page__server-card--online {
  border-color: rgba(147, 197, 253, 0.72);
}

.server-command-page__server-card--degraded {
  border-color: rgba(253, 230, 138, 0.92);
  background:
    linear-gradient(180deg, rgba(255, 251, 235, 0.95) 0%, rgba(255, 255, 255, 0.98) 100%);
}

.server-command-page__server-card--offline {
  border-color: rgba(254, 202, 202, 0.9);
  background:
    linear-gradient(180deg, rgba(254, 242, 242, 0.96) 0%, rgba(255, 255, 255, 0.98) 100%);
}

.server-command-page__title.ant-typography,
.server-command-page__server-title.ant-typography {
  margin-bottom: 0;
}

.server-command-page__title-row {
  align-items: center;
}

.server-command-page__title-row .ant-space-item {
  display: inline-flex;
  align-items: center;
}

.server-command-page__copy.ant-typography {
  max-width: 760px;
  margin-bottom: 0;
}

.server-command-page__shared-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.server-command-page__shared-toolbar-chips {
  min-width: 0;
}

.server-command-page__toolbar-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: #e2e8f0;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
}

.server-command-page__toolbar-chip-label {
  color: rgba(226, 232, 240, 0.72);
  letter-spacing: 0.06em;
}

.server-command-page__toolbar-chip-value {
  min-width: 0;
}

.server-command-page__toolbar-chip--online,
.server-command-page__toolbar-chip--latest {
  background: rgba(37, 99, 235, 0.2);
  color: #bfdbfe;
}

.server-command-page__toolbar-chip--degraded,
.server-command-page__toolbar-chip--update-available {
  background: rgba(245, 158, 11, 0.2);
  color: #fde68a;
}

.server-command-page__toolbar-chip--offline,
.server-command-page__toolbar-chip--build-required {
  background: rgba(220, 38, 38, 0.2);
  color: #fecaca;
}

.server-command-page__toolbar-chip--unknown,
.server-command-page__toolbar-chip--info {
  background: rgba(148, 163, 184, 0.18);
  color: #e2e8f0;
}

.server-command-page__status-dot {
  width: 10px;
  height: 10px;
  flex: 0 0 auto;
  border-radius: 999px;
  box-shadow: 0 0 0 3px rgba(148, 163, 184, 0.14);
}

.server-command-page__status-dot--online,
.server-command-page__status-dot--latest {
  background: #2563eb;
}

.server-command-page__status-dot--degraded,
.server-command-page__status-dot--update-available {
  background: #f59e0b;
}

.server-command-page__status-dot--offline,
.server-command-page__status-dot--build-required {
  background: #dc2626;
}

.server-command-page__status-dot--unknown {
  background: #94a3b8;
}

.server-command-page__summary-grid {
  width: 100%;
}

.server-command-page__shared-server-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr));
  gap: 12px;
}

.server-command-page__shared-server-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.server-command-page__shared-server-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.server-command-page__shared-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  min-height: 32px;
  padding: 0 9px;
  border-radius: 999px;
  background: rgba(226, 232, 240, 0.7);
  color: #334155;
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
}

.server-command-page__shared-pill--online,
.server-command-page__shared-pill--latest {
  background: rgba(219, 234, 254, 0.95);
  color: #1d4ed8;
}

.server-command-page__shared-pill--degraded,
.server-command-page__shared-pill--update-available {
  background: rgba(254, 240, 138, 0.55);
  color: #b45309;
}

.server-command-page__shared-pill--offline,
.server-command-page__shared-pill--build-required {
  background: rgba(254, 226, 226, 0.92);
  color: #b91c1c;
}

.server-command-page__shared-server-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.server-command-page__shared-stat {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 4px;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(248, 250, 252, 0.92);
}

.server-command-page__shared-server-summary.ant-typography,
.server-command-page__shared-server-footer.ant-typography {
  margin-bottom: 0;
}

.server-command-page__shared-server-summary.ant-typography {
  font-size: 12px;
}

.server-command-page__restart-button--shared-compact {
  min-width: 88px;
  height: 36px;
  border-radius: 12px;
  font-weight: 700;
}

.server-command-page__summary-grid .ant-statistic {
  padding: 14px 16px;
  border-radius: 18px;
  background: #f7faff;
}

.server-command-page__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
  gap: 16px;
}

.server-command-page__summary.ant-typography,
.server-command-page__preview.ant-typography,
.server-command-page__command.ant-typography {
  margin-bottom: 0;
}

.server-command-page__preview,
.server-command-page__command {
  display: block;
  padding: 12px 14px;
  border-radius: 16px;
  background: #f7faff;
  white-space: pre-wrap;
  word-break: break-word;
}

.server-command-page__alert-text {
  display: block;
  white-space: pre-wrap;
  word-break: break-word;
  user-select: text;
  -webkit-user-select: text;
  -webkit-touch-callout: default;
}

.server-command-page__work-list {
  width: 100%;
}

.server-command-page__work-item {
  width: 100%;
  padding: 12px 14px;
  border-radius: 16px;
  background: #f7faff;
}

.server-command-page__work-detail.ant-typography {
  margin-bottom: 0;
}

.server-command-page__meta .ant-descriptions-item-label {
  width: 104px;
}

.server-command-page__restart-button--shared {
  min-width: 180px;
  height: 44px;
  border-radius: 14px;
  font-weight: 700;
}

@media (max-width: 768px) {
  .server-command-page__shared-server-head {
    align-items: stretch;
    flex-direction: column;
  }

  .server-command-page__shared-server-stats {
    grid-template-columns: 1fr;
  }

  .server-command-page__shared-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .server-command-page__restart-button--shared {
    width: 100%;
  }

  .server-command-page__restart-button--shared-compact {
    width: 100%;
  }

  .server-command-page__server-card .ant-card-head {
    padding-inline: 16px;
  }

  .server-command-page__server-card .ant-card-head-wrapper {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .server-command-page__server-card .ant-card-extra {
    margin-inline-start: 0;
  }

  .server-command-page__restart-button {
    width: 100%;
  }

  .server-command-page__server-card .ant-card-body {
    padding-inline: 16px;
  }

  .server-command-page__grid {
    grid-template-columns: 1fr;
  }
}
