:root,
[data-bs-theme="dark"] {
  color-scheme: dark;
  --ant-bg: #0a0b10;
  --ant-surface: #11131a;
  --ant-surface-2: #161922;
  --ant-border: #242733;
  --ant-border-strong: #323646;
  --ant-text: #e8eaf0;
  --ant-text-2: #9aa0b4;
  --ant-text-3: #6b7289;
  --ant-primary: #7c6cff;
  --ant-primary-hover: #9588ff;
  --ant-primary-muted: rgba(124, 108, 255, .14);
  --ant-primary-ring: rgba(124, 108, 255, .45);
  --ant-cyan: #22d3ee;
  --ant-green: #34d399;
  --ant-yellow: #fbbf24;
  --ant-red: #f87171;
  --ant-sidebar-w: 240px;
  --ant-topbar-h: 76px;
  --ant-content-max: 1180px;
  --ant-radius: 8px;
  --ant-radius-sm: 6px;
  --ant-shadow: 0 1px 0 rgba(0, 0, 0, .35);
  --tblr-body-bg: var(--ant-bg);
  --tblr-body-color: var(--ant-text);
  --tblr-bg-surface: var(--ant-surface);
  --tblr-bg-surface-secondary: var(--ant-surface-2);
  --tblr-border-color: var(--ant-border);
  --tblr-secondary-color: var(--ant-text-2);
  --tblr-primary: var(--ant-primary);
  --tblr-primary-rgb: 124, 108, 255;
}

[data-bs-theme="light"] {
  color-scheme: light;
  --ant-bg: #f4f5f8;
  --ant-surface: #ffffff;
  --ant-surface-2: #f0f1f5;
  --ant-border: #e2e4eb;
  --ant-border-strong: #c9cdd8;
  --ant-text: #14161f;
  --ant-text-2: #5c6378;
  --ant-text-3: #8b91a3;
  --ant-primary: #5b4fe0;
  --ant-primary-hover: #4a3fd0;
  --ant-primary-muted: rgba(91, 79, 224, .1);
  --ant-primary-ring: rgba(91, 79, 224, .35);
  --ant-shadow: 0 1px 2px rgba(20, 22, 31, .06);
  --tblr-primary-rgb: 91, 79, 224;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  color: var(--ant-text);
  font-family: system-ui, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 13px;
  letter-spacing: 0;
  background: var(--ant-bg);
}

a {
  color: var(--ant-primary-hover);
}

a:hover {
  color: var(--ant-primary);
}

button,
input,
select,
textarea {
  letter-spacing: 0;
}

:focus-visible {
  outline: 2px solid var(--ant-primary-ring) !important;
  outline-offset: 2px;
}

.ant-shell {
  min-height: 100vh;
}

.ant-sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 1030;
  display: flex;
  width: var(--ant-sidebar-w);
  padding: 14px 12px 12px;
  overflow-y: auto;
  flex-direction: column;
  background: var(--ant-surface);
  border-right: 1px solid var(--ant-border);
}

.ant-sidebar-head,
.ant-sidebar-tools,
.ant-admin,
.ant-topbar,
.ant-panel-header,
.card-header {
  display: flex;
  align-items: center;
}

.ant-brand {
  display: flex;
  min-width: 0;
  height: 44px;
  padding: 0 8px;
  align-items: center;
  gap: 10px;
  color: var(--ant-text);
  text-decoration: none;
}

.ant-brand:hover {
  color: var(--ant-text);
}

.ant-brand > span:last-child,
.ant-admin > span:last-child {
  display: grid;
  min-width: 0;
}

.ant-brand strong {
  font-size: 15px;
  line-height: 1.2;
}

.ant-brand small,
.ant-admin small {
  color: var(--ant-text-3);
  font-size: 11px;
  font-weight: 500;
}

.ant-brand-mark,
.ant-avatar {
  display: inline-grid;
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  place-items: center;
  color: #fff;
  font-weight: 700;
  background: var(--ant-primary);
  border-radius: 6px;
}

.ant-sidebar-close {
  display: none !important;
  margin-left: auto;
}

.ant-nav {
  display: grid;
  margin-top: 13px;
  gap: 12px;
}

.ant-nav-group {
  display: grid;
  gap: 3px;
}

.ant-nav-label {
  padding: 0 10px 4px;
  color: var(--ant-text-3);
  font-size: 11px;
  font-weight: 650;
}

.ant-nav .nav-link {
  display: flex;
  min-height: 40px;
  padding: 8px 10px;
  align-items: center;
  color: var(--ant-text-2);
  border: 1px solid transparent;
  border-radius: var(--ant-radius-sm);
}

.ant-nav .nav-link:hover {
  color: var(--ant-text);
  background: var(--ant-surface-2);
}

.ant-nav .nav-link.active {
  color: var(--ant-primary-hover);
  font-weight: 600;
  background: var(--ant-primary-muted);
  border-color: color-mix(in srgb, var(--ant-primary) 32%, transparent);
}

.nav-link-icon {
  width: 22px;
  margin-right: 10px;
  font-size: 18px;
}

.ant-sidebar-footer {
  display: flex;
  min-width: 0;
  padding: 12px 4px 0;
  margin-top: auto;
  align-items: center;
  gap: 8px;
  border-top: 1px solid var(--ant-border);
}

.ant-admin {
  min-width: 0;
  flex: 1;
  gap: 8px;
}

.ant-admin strong {
  overflow: hidden;
  color: var(--ant-text);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ant-avatar {
  width: 30px;
  height: 30px;
  color: var(--ant-primary-hover);
  font-size: 12px;
  background: var(--ant-primary-muted);
}

.ant-sidebar-tools {
  gap: 3px;
}

.ant-sidebar-tools form {
  margin: 0;
}

.ant-icon-button {
  display: inline-grid;
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  padding: 0;
  place-items: center;
  color: var(--ant-text-2);
  background: transparent;
  border: 1px solid transparent;
  border-radius: var(--ant-radius-sm);
}

.ant-icon-button:hover {
  color: var(--ant-text);
  background: var(--ant-surface-2);
  border-color: var(--ant-border);
}

.ant-icon-button .ti {
  font-size: 18px;
}

.ant-page {
  min-height: 100vh;
  margin-left: var(--ant-sidebar-w);
}

.ant-topbar {
  position: sticky;
  top: 0;
  z-index: 1020;
  min-height: var(--ant-topbar-h);
  padding: 10px 24px;
  gap: 14px;
  background: color-mix(in srgb, var(--ant-surface) 94%, transparent);
  border-bottom: 1px solid var(--ant-border);
  backdrop-filter: blur(12px);
}

.ant-menu-button {
  display: none;
}

.ant-title-block {
  min-width: 0;
}

.ant-title-block h1 {
  margin: 0;
  overflow: hidden;
  color: var(--ant-text);
  font-size: 18px;
  font-weight: 650;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ant-title-block p {
  min-height: 17px;
  margin: 1px 0 0;
  overflow: hidden;
  color: var(--ant-text-2);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ant-topbar-actions {
  display: flex;
  margin-left: auto;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
}

.ant-content {
  width: min(var(--ant-content-max), 100%);
  padding: 24px 24px 40px;
  margin: 0 auto;
}

.ant-content--wide {
  width: 100%;
  max-width: none;
}

.card,
.ant-panel {
  color: var(--ant-text);
  background: var(--ant-surface);
  border: 1px solid var(--ant-border);
  border-radius: var(--ant-radius);
  box-shadow: var(--ant-shadow);
}

.card-header,
.ant-panel-header {
  min-height: 50px;
  padding: 12px 16px;
  gap: 12px;
  background: transparent;
  border-bottom-color: var(--ant-border);
}

.card-title,
.ant-panel-title {
  margin: 0;
  color: var(--ant-text);
  font-size: 14px;
  font-weight: 650;
}

.card-body,
.ant-panel-body {
  padding: 16px;
}

.card-footer,
.ant-panel-footer {
  padding: 12px 16px;
  background: transparent;
  border-top-color: var(--ant-border);
}

.ant-toolbar {
  padding: 14px 16px;
  background: var(--ant-surface);
  border: 1px solid var(--ant-border);
  border-radius: var(--ant-radius);
}

.ant-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.ant-stat {
  min-height: 104px;
}

.ant-stat .card-body,
.ant-stat {
  position: relative;
}

.ant-stat-label {
  color: var(--ant-text-2);
  font-size: 12px;
}

.ant-stat-icon {
  position: absolute;
  top: 16px;
  right: 16px;
  color: var(--ant-text-3);
  font-size: 20px;
}

.ant-stat-value {
  margin-top: 12px;
  color: var(--ant-text);
  font-size: 24px;
  font-weight: 700;
  line-height: 1.1;
}

.table-responsive,
.ant-table-wrap {
  overflow-x: auto;
}

.table {
  --tblr-table-bg: transparent;
  --tblr-table-border-color: var(--ant-border);
  margin-bottom: 0;
  color: var(--ant-text);
}

.table > :not(caption) > * > * {
  padding: .66rem .78rem;
  vertical-align: middle;
  border-bottom-color: var(--ant-border);
}

.table thead th {
  color: var(--ant-text-2);
  font-size: 11px;
  font-weight: 650;
  white-space: nowrap;
}

.table td {
  font-size: 12px;
}

.ant-table--wide {
  min-width: 1180px;
}

.ant-table-ip,
.ant-table-hwid,
.ant-table-context {
  overflow-wrap: anywhere;
}

.ant-table-ip {
  min-width: 120px;
  max-width: 220px;
}

.ant-table-hwid {
  min-width: 180px;
  max-width: 320px;
}

.ant-table-context {
  min-width: 220px;
  max-width: 420px;
}

.ant-table-actions {
  width: 1%;
  min-width: 112px;
  white-space: nowrap;
}

.ant-table-actions > .d-flex {
  flex-wrap: nowrap !important;
}

.ant-kv-table {
  width: 100%;
  min-width: 880px;
  table-layout: fixed;
}

.ant-kv-col-key {
  width: 28%;
}

.ant-kv-col-access {
  width: 104px;
}

.ant-kv-col-updated {
  width: 188px;
}

.ant-kv-col-actions {
  width: 158px;
}

.ant-kv-key {
  overflow-wrap: anywhere;
}

.ant-kv-access,
.ant-kv-updated {
  width: 1%;
  white-space: nowrap;
}

.ant-kv-json {
  min-width: 0;
}

.ant-kv-preview {
  display: block;
  width: 100%;
  padding: 0;
  overflow: hidden;
  color: var(--ant-cyan);
  background: transparent;
  border: 0;
  text-overflow: ellipsis;
  white-space: nowrap;
}

textarea.ant-code.ant-kv-editor {
  min-height: 360px;
}

.ant-applications-table .ant-table-id {
  display: block;
  max-width: 150px;
  overflow: hidden;
  color: var(--ant-text-2);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ant-select-column {
  width: 36px;
  min-width: 36px;
  text-align: center;
}

.ant-bulk-bar {
  position: sticky;
  bottom: 0;
  z-index: 5;
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-top: 1px solid var(--ant-border);
  background: var(--ant-surface-2);
}

.ant-bulk-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

.table tbody tr:hover > * {
  background: color-mix(in srgb, var(--ant-surface-2) 78%, transparent);
}

.form-label {
  margin-bottom: 6px;
  color: var(--ant-text-2);
  font-size: 12px;
  font-weight: 600;
}

.form-control,
.form-select {
  min-height: 38px;
  color: var(--ant-text);
  background-color: var(--ant-surface-2);
  border-color: var(--ant-border);
  border-radius: var(--ant-radius-sm);
}

.form-control:focus,
.form-select:focus {
  color: var(--ant-text);
  background-color: var(--ant-surface-2);
  border-color: var(--ant-primary);
  box-shadow: 0 0 0 3px var(--ant-primary-muted);
}

.form-control::placeholder {
  color: var(--ant-text-3);
}

.form-control[readonly] {
  color: var(--ant-text-2);
  background: var(--ant-bg);
}

.form-check-input {
  background-color: var(--ant-surface-2);
  border-color: var(--ant-border-strong);
}

.form-check-input:checked {
  background-color: var(--ant-primary);
  border-color: var(--ant-primary);
}

.btn {
  min-height: 36px;
  border-radius: var(--ant-radius-sm);
  font-size: 12px;
  font-weight: 600;
}

.btn-sm {
  min-height: 30px;
}

.btn-primary {
  color: #fff;
  background: var(--ant-primary);
  border-color: var(--ant-primary);
}

.btn-primary:hover,
.btn-primary:focus {
  color: #fff;
  background: var(--ant-primary-hover);
  border-color: var(--ant-primary-hover);
}

.badge {
  padding: 5px 8px;
  border: 1px solid currentColor;
  border-radius: var(--ant-radius-sm);
  font-size: 10px;
  font-weight: 650;
}

.bg-success-lt { background: color-mix(in srgb, var(--ant-green) 13%, transparent) !important; }
.text-success { color: var(--ant-green) !important; }
.bg-info-lt { background: color-mix(in srgb, var(--ant-cyan) 13%, transparent) !important; }
.text-info { color: var(--ant-cyan) !important; }
.bg-warning-lt { background: color-mix(in srgb, var(--ant-yellow) 13%, transparent) !important; }
.text-warning { color: var(--ant-yellow) !important; }
.bg-danger-lt { background: color-mix(in srgb, var(--ant-red) 13%, transparent) !important; }
.text-danger { color: var(--ant-red) !important; }
.bg-secondary-lt { background: var(--ant-surface-2) !important; }
.text-secondary { color: var(--ant-text-2) !important; }

.alert {
  color: var(--ant-text);
  background: var(--ant-surface);
  border-color: var(--ant-border);
  border-radius: var(--ant-radius);
}

.alert-success { border-left: 3px solid var(--ant-green); }
.alert-danger { border-left: 3px solid var(--ant-red); }
.alert-warning { border-left: 3px solid var(--ant-yellow); }

.ant-mono {
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 11px;
  overflow-wrap: anywhere;
}

textarea.ant-code {
  min-height: 220px;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 12px;
  resize: vertical;
}

.ant-empty {
  padding: 48px 18px !important;
  color: var(--ant-text-3) !important;
  text-align: center;
}

.ant-secret {
  display: flex;
  min-width: 0;
  gap: 8px;
  align-items: center;
}

.ant-secret code {
  flex: 1;
  min-width: 0;
  padding: 9px 11px;
  overflow-wrap: anywhere;
  color: var(--ant-yellow);
  background: color-mix(in srgb, var(--ant-yellow) 8%, var(--ant-surface-2));
  border: 1px solid color-mix(in srgb, var(--ant-yellow) 30%, var(--ant-border));
  border-radius: var(--ant-radius-sm);
}

.ant-feed {
  display: grid;
}

.ant-feed-item {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  padding: 14px 16px;
  gap: 12px;
  align-items: start;
  border-bottom: 1px solid var(--ant-border);
}

.ant-feed-item:last-child {
  border-bottom: 0;
}

.ant-feed-icon {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  color: var(--ant-cyan);
  background: color-mix(in srgb, var(--ant-cyan) 10%, transparent);
  border-radius: 50%;
}

.ant-feed-title {
  color: var(--ant-text);
  font-weight: 600;
}

.ant-feed-meta,
.ant-feed-time {
  margin-top: 3px;
  color: var(--ant-text-2);
  font-size: 11px;
}

.ant-feed-time {
  margin-top: 0;
  white-space: nowrap;
}

.ant-section-nav {
  position: sticky;
  top: calc(var(--ant-topbar-h) + 8px);
  z-index: 10;
  display: flex;
  padding: 6px;
  overflow-x: auto;
  gap: 4px;
  background: color-mix(in srgb, var(--ant-surface) 96%, transparent);
  border: 1px solid var(--ant-border);
  border-radius: var(--ant-radius);
  backdrop-filter: blur(10px);
}

.ant-section-nav a {
  min-width: max-content;
  padding: 7px 10px;
  color: var(--ant-text-2);
  text-decoration: none;
  border-radius: var(--ant-radius-sm);
}

.ant-section-nav a:hover {
  color: var(--ant-text);
  background: var(--ant-surface-2);
}

.ant-section-nav a[aria-current="page"] {
  color: var(--ant-primary-hover);
  font-weight: 600;
  background: var(--ant-primary-muted);
}

details > summary {
  color: var(--ant-text-2);
  cursor: pointer;
  font-weight: 600;
}

.ant-collapsible > summary {
  display: flex;
  min-height: 50px;
  padding: 12px 16px;
  align-items: center;
  gap: 12px;
  list-style: none;
}

.ant-collapsible > summary::-webkit-details-marker {
  display: none;
}

.ant-collapsible > summary::after {
  margin-left: auto;
  font-family: tabler-icons;
  content: "\ea5f";
  transition: transform .15s ease;
}

.ant-collapsible[open] > summary {
  border-bottom: 1px solid var(--ant-border);
}

.ant-collapsible[open] > summary::after {
  transform: rotate(180deg);
}

.ant-build-item > summary > :first-child {
  min-width: 0;
}

.ant-build-statuses {
  display: flex;
  flex: 0 0 auto;
  gap: 6px;
  align-items: center;
  margin-left: auto;
}

.ant-build-statuses .badge {
  display: inline-flex;
  min-height: 24px;
  align-items: center;
  justify-content: center;
  line-height: 1;
  white-space: nowrap;
}

.ant-build-item > summary::after {
  flex: 0 0 auto;
  margin-left: 0;
}

dialog.ant-dialog {
  width: min(720px, calc(100% - 24px));
  max-height: calc(100vh - 32px);
  padding: 0;
  overflow: auto;
  color: var(--ant-text);
  background: var(--ant-surface);
  border: 1px solid var(--ant-border-strong);
  border-radius: var(--ant-radius);
  box-shadow: 0 18px 60px rgba(0, 0, 0, .38);
}

dialog.ant-dialog::backdrop {
  background: rgba(0, 0, 0, .62);
  backdrop-filter: blur(3px);
}

.ant-dialog-head,
.ant-dialog-body,
.ant-dialog-footer {
  padding: 16px;
}

.ant-dialog-head {
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--ant-border);
}

.ant-dialog-head h2 {
  margin: 0;
  font-size: 15px;
}

.ant-dialog-head button {
  margin-left: auto;
}

.ant-dialog-footer {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  border-top: 1px solid var(--ant-border);
}

.ant-workbench {
  display: grid;
  gap: 16px;
  align-items: start;
}

.ant-workbench > * {
  min-width: 0;
}

.ant-danger-zone {
  border-color: color-mix(in srgb, var(--ant-red) 38%, var(--ant-border));
}

.ant-impact-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  border: 1px solid var(--ant-border);
  border-radius: var(--ant-radius-sm);
}

.ant-impact-grid > div {
  display: grid;
  padding: 10px 12px;
  gap: 3px;
  border-right: 1px solid var(--ant-border);
  border-bottom: 1px solid var(--ant-border);
}

.ant-impact-grid > div:nth-child(5n) {
  border-right: 0;
}

.ant-impact-grid > div:nth-last-child(-n + 5) {
  border-bottom: 0;
}

.ant-impact-grid span,
.ant-script-contract span,
.ant-test-console-head span,
.ant-script-example span {
  color: var(--ant-text-2);
  font-size: 11px;
}

.ant-impact-grid strong {
  font-size: 16px;
}

.ant-script-contract {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  background: var(--ant-border);
  border: 1px solid var(--ant-border);
  border-radius: var(--ant-radius-sm);
}

.ant-script-contract > div {
  display: grid;
  min-width: 0;
  padding: 12px;
  gap: 5px;
  background: var(--ant-surface-2);
}

.ant-script-contract code,
.ant-script-example code {
  color: var(--ant-cyan);
}

.ant-script-example {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  margin-top: 12px;
  overflow: hidden;
  background: var(--ant-bg);
  border: 1px solid var(--ant-border);
  border-radius: var(--ant-radius-sm);
}

.ant-script-example > div {
  display: grid;
  min-width: 0;
  padding: 10px 12px;
  gap: 4px;
  border-right: 1px solid var(--ant-border);
}

.ant-script-example > div:last-child {
  border-right: 0;
}

.ant-script-example code {
  overflow-wrap: anywhere;
}

.ant-test-console {
  padding: 14px 16px 16px;
  background: color-mix(in srgb, var(--ant-surface-2) 72%, transparent);
  border-top: 1px solid var(--ant-border);
}

.ant-test-console-head,
.ant-test-result > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.ant-test-console-head {
  margin-bottom: 12px;
}

.ant-test-result {
  margin-top: 10px;
  overflow: hidden;
  background: var(--ant-bg);
  border: 1px solid var(--ant-border);
  border-radius: var(--ant-radius-sm);
}

.ant-test-result[data-test-state="success"] {
  border-color: color-mix(in srgb, var(--ant-green) 45%, var(--ant-border));
}

.ant-test-result[data-test-state="error"] {
  border-color: color-mix(in srgb, var(--ant-red) 50%, var(--ant-border));
}

.ant-test-result > div {
  padding: 8px 10px;
  color: var(--ant-text-2);
  font-size: 11px;
  border-bottom: 1px solid var(--ant-border);
}

.ant-test-output {
  min-height: 72px;
  max-height: 260px;
  padding: 10px;
  margin: 0;
  overflow: auto;
  color: var(--ant-text);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 12px;
  white-space: pre-wrap;
}

.ant-advanced {
  padding: 10px 0 0;
  border-top: 1px solid var(--ant-border);
}

.ant-advanced > summary {
  margin-bottom: 10px;
}

.ant-account-cell {
  display: flex;
  min-width: 180px;
  align-items: center;
  gap: 10px;
}

.ant-device-table {
  min-width: 620px;
}

.ant-account-avatar {
  display: inline-grid;
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  place-items: center;
  color: var(--ant-cyan);
  background: color-mix(in srgb, var(--ant-cyan) 10%, transparent);
  border-radius: 50%;
}

.ant-login {
  position: relative;
  display: grid;
  min-height: 100vh;
  padding: 24px;
  place-items: center;
  background: var(--ant-bg);
}

.ant-login-panel {
  width: min(400px, 100%);
}

.ant-login-brand {
  display: grid;
  margin-bottom: 18px;
  place-items: center;
  gap: 8px;
}

.ant-login-brand h1 {
  margin: 0;
  font-size: 20px;
}

.ant-login-theme {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 1;
}

.ant-sidebar-backdrop {
  display: none;
}

@media (max-width: 1023.98px) {
  .ant-sidebar {
    transform: translateX(-100%);
    transition: transform .18s ease;
  }

  .ant-sidebar-close,
  .ant-menu-button {
    display: inline-grid !important;
  }

  .ant-page {
    margin-left: 0;
  }

  .ant-sidebar-open {
    overflow: hidden;
  }

  .ant-sidebar-open .ant-sidebar {
    transform: translateX(0);
  }

  .ant-sidebar-open .ant-sidebar-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1025;
    display: block;
    background: rgba(0, 0, 0, .58);
  }

}

@media (max-width: 767.98px) {
  .ant-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ant-topbar {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .ant-topbar-actions {
    width: 100%;
    margin-left: 50px;
    justify-content: flex-start;
  }

  .ant-feed-item {
    grid-template-columns: 32px minmax(0, 1fr);
  }

  .ant-feed-time {
    grid-column: 2;
  }

  .ant-impact-grid,
  .ant-script-contract,
  .ant-script-example {
    grid-template-columns: 1fr;
  }

  .ant-impact-grid > div,
  .ant-impact-grid > div:nth-child(5n),
  .ant-impact-grid > div:nth-last-child(-n + 5),
  .ant-script-example > div {
    border-right: 0;
    border-bottom: 1px solid var(--ant-border);
  }

  .ant-impact-grid > div:last-child,
  .ant-script-example > div:last-child {
    border-bottom: 0;
  }
}

@media (max-width: 575.98px) {
  .ant-content {
    padding: 16px 12px 30px;
  }

  .ant-topbar {
    min-height: 66px;
    padding: 9px 12px;
  }

  .ant-topbar-actions {
    margin-left: 0;
  }

  .ant-topbar-actions .btn {
    flex: 1;
  }

  .ant-title-block {
    max-width: calc(100% - 50px);
  }

  .ant-title-block p {
    white-space: normal;
  }

  .ant-metrics {
    gap: 8px;
  }

  .ant-stat {
    min-height: 94px;
  }

  .card-header,
  .ant-panel-header,
  .card-body,
  .ant-panel-body,
  .card-footer,
  .ant-panel-footer {
    padding: 12px;
  }

  .ant-secret {
    align-items: stretch;
    flex-direction: column;
  }
}
