@font-face {
  font-family: HarmonyOS;
  font-style: normal;
  font-display: swap;
  src: url("./HarmonyOS_Sans_SC_Medium.subset.woff2") format("woff2");
}

@font-face {
  font-family: dianzhenzt;
  font-weight: 900;
  font-display: swap;
  src: url("./ailmm.woff2") format("woff2");
}

:root {
  --ak-bg: #e6eef4;
  --ak-surface: #e6eef4;
  --ak-text: #525151;
  --ak-muted: #787878;
  --ak-shadow-dark: #b8bec3;
  --ak-shadow-soft: #ffffff;
  --ak-inset-dark: #d6dde3;
  --ak-inset-soft: #f6ffff;
  --ak-blue: #0a94f2;
  --ak-green-a: #57693b;
  --ak-green-b: #76d450;
  --ak-warn-a: #de4723;
  --ak-warn-b: #db9428;
  --ak-error-a: #12032a;
  --ak-error-b: #b20d24;
}

* {
  box-sizing: border-box;
}

body {
  min-width: 320px;
  background: var(--ak-bg);
  color: var(--ak-text);
  font-family: dianzhenzt, HarmonyOS, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
}

#app,
.ui.container,
.header {
  font-family: HarmonyOS, dianzhenzt, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
}

a {
  color: inherit;
}

.ui.container {
  width: 95vw !important;
  max-width: 1680px !important;
}

.ui.inverted.segment,
.ui.menu {
  background: var(--ak-bg);
}

.ui.menu {
  border: none !important;
  box-shadow: 0 0 0 var(--ak-bg) !important;
}

.ui.menu.fixed {
  position: static;
}

.ui.menu .item:before {
  width: 0 !important;
}

.ui.menu .container .item,
.right.menu .positive,
.ak-label {
  color: var(--ak-muted) !important;
  font-weight: 500;
  text-shadow: 2px 2px 3px #c4cacf, -2px -2px 3px #ffffff;
}

.ui.menu .active,
.ui.menu .item.active:hover {
  border: none !important;
  border-radius: 10px !important;
  background: var(--ak-bg) !important;
  box-shadow: inset 5px 5px 16px var(--ak-inset-dark), inset -5px -5px 16px var(--ak-inset-soft) !important;
}

.ui.menu .item.ak-logo,
.ui.menu .item.ak-logo:hover {
  border: none !important;
  background: var(--ak-bg) !important;
  box-shadow: none !important;
}

.nb-menu {
  margin-top: 20px !important;
}

.ak-nav-inner {
  display: flex !important;
  align-items: center;
}

.ak-logo img {
  width: 2rem;
  height: 2rem;
  object-fit: contain;
}

.nb-container {
  min-height: calc(100vh - 80px);
  padding-top: 40px !important;
  padding-bottom: 65px;
  margin-bottom: -47px;
}

.ak-view[hidden],
.ak-notice:empty {
  display: none !important;
}

.ak-notice {
  margin-bottom: 1rem;
}

.ak-alert {
  border-radius: 11px;
  background: var(--ak-bg);
  box-shadow: 7px 7px 15px #cfd6dc, -7px -7px 15px #fdffff;
  padding: 1rem 1.2rem;
  color: var(--ak-muted);
}

.ak-alert.error {
  color: #b20d24;
}

.ak-alert.success {
  color: #1a531b;
}

.ak-accordion {
  margin-bottom: 1rem;
  border: none;
  background: var(--ak-bg);
  box-shadow: 0 0 0 var(--ak-bg);
}

.ak-accordion-title {
  padding: 0.9rem 1rem;
  color: var(--ak-muted);
  cursor: pointer;
  font-size: 1.1rem;
  font-weight: 900;
  text-shadow: 2px 2px 3px #c4cacf, -2px -2px 3px #ffffff;
}

.ak-accordion-title .dropdown.icon {
  transition: transform 180ms ease;
}

.ak-accordion.collapsed .ak-accordion-title .dropdown.icon {
  transform: rotate(-90deg);
}

.ak-card-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: start;
  gap: 1.2rem 1.35rem;
  padding: 1.5rem 0 1.6rem;
}

.ak-card-grid[hidden] {
  display: none !important;
}

.ak-card {
  min-width: 0;
  border-radius: 20px;
  background: var(--ak-surface);
  box-shadow: -6px -6px 12px var(--ak-shadow-dark), 6px 6px 12px var(--ak-shadow-soft);
  padding: 1rem;
}

.ak-card.offline {
  opacity: 0.76;
}

.ak-card-header {
  position: relative;
  margin-top: 10px;
  padding-bottom: 5px;
  text-align: center;
  color: var(--ak-text);
  font-family: HarmonyOS, dianzhenzt, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
  font-weight: 500;
  text-shadow: 2px 2px 3px #c4cacf, -2px -2px 3px #ffffff;
}

.ak-title-line {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-width: 0;
  padding-right: 2rem;
  padding-left: 2rem;
  font-size: 1.28571429em;
  font-family: HarmonyOS, dianzhenzt, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
}

.ak-node-name {
  overflow-wrap: anywhere;
  color: var(--ak-text) !important;
  font-family: HarmonyOS, dianzhenzt, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
  font-weight: 700;
  line-height: 1.28571429em;
  text-shadow: 2px 2px 3px #c4cacf, -2px -2px 3px #ffffff;
}

.ak-node-link {
  cursor: pointer;
  text-decoration: none;
}

.ak-node-link:hover,
.ak-node-link:focus {
  color: var(--ak-blue) !important;
}

.ak-region {
  display: inline-block;
  width: 19px;
  height: 19px;
  border-radius: 50%;
  box-shadow: -1px -1px 2px #eeeeee, 1px 1px 2px #000000;
  overflow: hidden;
  object-fit: cover;
  vertical-align: -3px;
  flex: 0 0 auto;
}

.ak-region-text {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif !important;
  font-size: 15px;
  line-height: 19px;
}

.ak-info {
  position: absolute;
  right: 0;
  top: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  appearance: none;
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--ak-blue);
  cursor: help;
  appearance: none;
}

.ak-info::before {
  content: "i";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border: 2px solid currentColor;
  border-radius: 50%;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  text-shadow: none;
}

.ak-popup {
  position: absolute;
  z-index: 20;
  right: 0;
  top: 1.8rem;
  width: min(24rem, 84vw);
  display: block;
  visibility: hidden;
  opacity: 0;
  transform: translateY(-4px) scale(0.98);
  border: 1px solid transparent;
  border-radius: 5px;
  background-color: #fafafaeb;
  box-shadow: 0 8px 22px rgba(56, 70, 82, 0.18);
  padding: 0.85rem 1rem;
  color: #000000;
  font-family: Arial, Helvetica, sans-serif !important;
  line-height: 1.8rem;
  text-align: left;
  text-shadow: none;
  transform-origin: top right;
  transition:
    opacity 180ms ease,
    transform 180ms ease,
    visibility 0s linear 180ms;
}

.ak-info:hover + .ak-popup,
.ak-info:focus + .ak-popup,
.ak-popup:hover {
  visibility: visible;
  opacity: 1;
  transform: translateY(0) scale(1);
  transition-delay: 0s;
}

.ak-divider {
  height: 1px;
  margin: 0.85rem 0 5px;
  background: rgba(34, 36, 38, 0.15);
}

.ak-metrics {
  display: grid;
  grid-template-columns: 14.1% minmax(0, 1fr);
  gap: 0 0.56rem;
  align-items: center;
}

.ak-label,
.ak-value {
  margin-top: 0.86em;
  min-height: 1.95rem;
  display: flex;
  align-items: center;
}

.ak-label {
  min-width: 0;
}

.ak-value {
  min-width: 0;
  overflow-wrap: anywhere;
}

.ak-inline-metric,
.ak-info-line,
.ak-hardware {
  display: inline-flex;
  align-items: center;
}

.ak-inline-metric {
  flex-wrap: wrap;
  column-gap: 0.28rem;
  row-gap: 0.18rem;
}

.ak-inline-metric .icon {
  margin: 0 0.05rem 0 0.35rem !important;
  line-height: 1;
}

.ak-inline-metric .icon:first-child {
  margin-left: 0 !important;
}

.ak-info-line {
  flex-wrap: wrap;
  column-gap: 0.72rem;
  row-gap: 0.18rem;
}

.ak-hardware {
  gap: 0.34rem;
  white-space: nowrap;
}

.ak-value:nth-child(8),
.ak-value:nth-child(10),
.ak-value:nth-child(14),
.ak-value:nth-child(16) {
  color: var(--ak-muted) !important;
  font-weight: 500;
  text-shadow: 2px 2px 3px #c4cacf, -2px -2px 3px #ffffff;
}

.ak-node-tags {
  min-height: 2.35rem;
  margin-top: 0.9rem;
  display: flex;
  flex-flow: row wrap;
  align-content: center;
  align-items: center;
  justify-content: center;
  gap: 0.34rem;
  overflow: hidden;
}

.ak-node-tag {
  max-width: min(100%, 11.5rem);
  min-height: 1.5rem;
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(82, 81, 81, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.34);
  padding: 0.2rem 0.58rem;
  color: var(--ak-muted);
  font-size: 0.86rem;
  font-weight: 500;
  line-height: 1.18;
  text-shadow: 1px 1px 2px #c4cacf, -1px -1px 2px #ffffff;
  box-shadow: inset 1px 1px 2px rgba(184, 191, 197, 0.48), inset -1px -1px 2px rgba(255, 255, 255, 0.82);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ak-node-tag.bill { color: #5d58a6; }
.ak-node-tag.time { color: #347433; }
.ak-node-tag.expired { color: #b20d24; }
.ak-node-tag.remark { color: var(--ak-blue); }
.ak-node-tag.custom { color: #7c4f12; }
.ak-node-tag.more { color: var(--ak-muted); }

.ak-progress {
  width: 100%;
  height: 1.75rem;
  border-radius: 50px;
  background: #d9e1e8;
  box-shadow: inset 3px 3px 6px #b8bfc5, inset -3px -3px 6px #faffff;
  overflow: hidden;
}

.ak-bar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  min-width: 1.8em;
  max-width: 100%;
  height: 100%;
  border-radius: 15px;
  padding-right: 0.4em;
  color: rgba(255, 255, 255, 0.78);
  font-weight: 700;
  line-height: 1.65em;
  text-shadow: 1px 0 1px #eeeeee, -1px 0 1px #000000;
  transition: width 300ms ease;
}

.ak-progress.fine .ak-bar {
  background-image: linear-gradient(312deg, var(--ak-green-a), #638b43, #6daf4a, var(--ak-green-b));
}

.ak-progress.warning .ak-bar {
  background-image: linear-gradient(269deg, var(--ak-warn-a), #de6425, #dd7d26, var(--ak-warn-b));
}

.ak-progress.error .ak-bar {
  background-image: linear-gradient(287deg, var(--ak-error-a), #480e2a, #7c1028, var(--ak-error-b));
}

.ak-progress.offline .ak-bar {
  background: #000000;
}

.ak-icon-cpu {
  color: #4a86e8;
}

.ak-icon-memory {
  color: #00ac0d;
}

.ak-icon-disk {
  color: #980000;
}

.ui.inverted.footer.segment {
  color: var(--ak-muted);
  text-shadow: 2px 2px 3px #c4cacf, -2px -2px 3px #ffffff;
}

.ui.inverted.footer.segment a {
  color: var(--ak-muted);
}

.nezha-primary-btn {
  min-height: 44px;
  background: var(--ak-bg) !important;
  color: var(--ak-muted) !important;
  font-weight: 500;
  text-shadow: 2px 2px 3px #c4cacf, -2px -2px 3px #ffffff;
  box-shadow: none !important;
}

.ak-empty {
  border-radius: 11px;
  background: var(--ak-bg);
  box-shadow: -6px -6px 12px var(--ak-shadow-dark), 6px 6px 12px var(--ak-shadow-soft);
  padding: 1.2rem;
  color: var(--ak-muted);
  text-align: center;
}

.ak-system-state {
  max-width: 680px;
  margin: 2rem auto 3rem;
  border-radius: 18px;
  background: var(--ak-bg);
  box-shadow: -7px -7px 15px var(--ak-shadow-dark), 7px 7px 15px var(--ak-shadow-soft);
  padding: 2.1rem 1.6rem;
  color: var(--ak-muted);
  text-align: center;
}

.ak-system-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  margin-bottom: 0.95rem;
  border-radius: 50%;
  background: var(--ak-bg);
  color: var(--ak-blue);
  font-size: 1.45rem;
  box-shadow: inset 4px 4px 9px var(--ak-inset-dark), inset -4px -4px 9px var(--ak-inset-soft);
}

.ak-system-state h1 {
  margin: 0 0 0.65rem;
  color: var(--ak-text);
  font-size: 1.55rem;
  line-height: 1.25;
  text-shadow: 2px 2px 3px #c4cacf, -2px -2px 3px #ffffff;
}

.ak-system-state p {
  max-width: 520px;
  margin: 0 auto 1.25rem;
  line-height: 1.7;
}

.ak-error-state .ak-system-icon {
  color: #b20d24;
}

.ak-detail-page {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0.35rem 0.25rem 1.5rem;
}

.ak-back {
  align-self: flex-start;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border-radius: 10px;
  padding: 0.72rem 0.95rem;
  color: var(--ak-muted) !important;
  font-weight: 700;
  text-shadow: 2px 2px 3px #c4cacf, -2px -2px 3px #ffffff;
  box-shadow: 5px 5px 12px #cfd6dc, -5px -5px 12px #fdffff;
}

.ak-detail-info-card,
.ak-chart-card {
  border-radius: 16px;
  background: var(--ak-surface);
  box-shadow: -6px -6px 12px var(--ak-shadow-dark), 6px 6px 12px var(--ak-shadow-soft);
}

.ak-detail-info-card {
  padding: 1.15rem;
}

.ak-detail-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.2rem 0.2rem 1rem;
}

.ak-detail-title {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  min-width: 0;
}

.ak-detail-title h1 {
  margin: 0;
  color: var(--ak-text);
  font-size: 1.65rem;
  line-height: 1.25;
  overflow-wrap: anywhere;
  text-shadow: 2px 2px 3px #c4cacf, -2px -2px 3px #ffffff;
}

.ak-detail-uuid {
  flex: 0 1 auto;
  max-width: 100%;
  border-radius: 8px;
  padding: 0.42rem 0.58rem;
  color: var(--ak-muted);
  font-family: Consolas, "Liberation Mono", monospace !important;
  font-size: 0.78rem;
  overflow-wrap: anywhere;
  box-shadow: inset 3px 3px 7px var(--ak-inset-dark), inset -3px -3px 7px var(--ak-inset-soft);
}

.ak-detail-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0.8rem;
}

.ak-stat-card {
  min-width: 0;
  border-radius: 11px;
  padding: 0.86rem 0.92rem;
  box-shadow: inset 3px 3px 7px var(--ak-inset-dark), inset -3px -3px 7px var(--ak-inset-soft);
}

.ak-stat-card.wide {
  grid-column: span 2;
}

.ak-stat-title {
  margin-bottom: 0.55rem;
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
  color: var(--ak-muted);
  font-size: 0.9rem;
  font-weight: 700;
  text-shadow: 2px 2px 3px #c4cacf, -2px -2px 3px #ffffff;
}

.ak-stat-title i {
  flex: 0 0 auto;
  margin: 0 !important;
  color: var(--ak-blue);
  line-height: 1;
}

.ak-stat-value {
  display: flex;
  flex-direction: column;
  gap: 0.22rem;
  min-height: 1.55rem;
  color: var(--ak-text);
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.ak-stat-sub {
  margin-top: 0.25rem;
  color: var(--ak-muted);
  font-size: 0.78rem;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.ak-net-down {
  color: #347433;
}

.ak-net-up {
  color: var(--ak-blue);
}

.ak-chart-section,
.ak-chart-block {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.ak-segmented {
  align-self: center;
  display: inline-flex;
  max-width: 100%;
  gap: 0.35rem;
  border-radius: 12px;
  padding: 0.35rem;
  overflow-x: auto;
  background: var(--ak-bg);
  box-shadow: inset 4px 4px 10px var(--ak-inset-dark), inset -4px -4px 10px var(--ak-inset-soft);
}

.ak-segmented-chart {
  gap: 0.75rem;
  padding: 0;
  overflow: visible;
  background: transparent;
  box-shadow: none;
}

.ak-segmented-chart button {
  min-width: 92px;
  min-height: 44px;
  background: var(--ak-bg);
  box-shadow: 5px 5px 12px #cfd6dc, -5px -5px 12px #fdffff;
}

.ak-segmented-chart button.active {
  color: var(--ak-blue);
  box-shadow: 5px 5px 12px #cfd6dc, -5px -5px 12px #fdffff;
}

.ak-segmented button {
  min-width: 64px;
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.42rem;
  appearance: none;
  border: 0;
  border-radius: 9px;
  padding: 0.52rem 0.82rem;
  background: transparent;
  color: var(--ak-muted);
  cursor: pointer;
  font-family: HarmonyOS, dianzhenzt, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
  font-weight: 800;
  white-space: nowrap;
  text-shadow: 2px 2px 3px #c4cacf, -2px -2px 3px #ffffff;
}

.ak-segmented button i {
  flex: 0 0 auto;
  margin: 0 !important;
  color: var(--ak-blue);
  line-height: 1;
}

.ak-segmented button.active {
  color: var(--ak-blue);
  box-shadow: 4px 4px 9px #cfd6dc, -4px -4px 9px #fdffff;
}

.ak-segmented-chart button,
.ak-segmented-chart button.active {
  min-width: 92px;
  min-height: 44px;
  background: var(--ak-bg);
}

.ak-segmented-chart button {
  box-shadow: inset 3px 3px 8px var(--ak-inset-dark), inset -3px -3px 8px var(--ak-inset-soft);
}

.ak-segmented-chart button.active {
  color: var(--ak-blue);
  box-shadow: 5px 5px 12px #cfd6dc, -5px -5px 12px #fdffff;
}

.ak-chart-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.1rem;
}

.ak-chart-card {
  min-width: 0;
  padding: 1rem;
}

.ak-chart-grid .ak-chart-card {
  padding: 1.15rem 1.2rem 1.05rem;
}

.ak-chart-card.full {
  width: 100%;
}

.ak-chart-head {
  min-height: 64px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}

.ak-chart-head h2 {
  margin: 0;
  color: var(--ak-text);
  font-size: 1.22rem;
  line-height: 1.25;
  text-shadow: 2px 2px 3px #c4cacf, -2px -2px 3px #ffffff;
}

.ak-chart-head span {
  color: var(--ak-muted);
  font-size: 0.82rem;
  line-height: 1.45;
  text-align: right;
  overflow-wrap: anywhere;
}

.ak-chart-wrap {
  width: 100%;
  overflow: hidden;
}

.ak-chart-wrap svg {
  display: block;
  width: 100%;
  height: auto;
  min-height: 170px;
}

.ak-chart-grid .ak-chart-wrap svg {
  min-height: 230px;
}

.ak-chart-gridline {
  stroke: rgba(82, 81, 81, 0.16);
  stroke-width: 1;
}

.ak-chart-axis {
  stroke: rgba(82, 81, 81, 0.28);
  stroke-width: 1.15;
}

.ak-chart-axis-label {
  fill: var(--ak-muted);
  font-family: HarmonyOS, dianzhenzt, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
  font-size: 11px;
  font-weight: 700;
  text-shadow: 1px 1px 2px #c4cacf, -1px -1px 2px #ffffff;
}

.ak-chart-card.full .ak-chart-axis-label {
  font-size: 5.5px;
}

.ak-chart-hit {
  fill: transparent;
  cursor: crosshair;
}

.ak-chart-meta {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 0.6rem;
  margin-top: -0.2rem;
  color: var(--ak-muted);
  font-size: 0.74rem;
  line-height: 1.2;
  text-shadow: 1px 1px 2px #c4cacf, -1px -1px 2px #ffffff;
}

.ak-chart-meta span:first-child {
  text-align: left;
}

.ak-chart-meta span:last-child {
  text-align: right;
}

.ak-chart-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 0.85rem;
  color: var(--ak-muted);
  font-size: 0.78rem;
}

.ak-chart-legend span {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.ak-chart-legend i,
.ak-ping-mark {
  display: inline-block;
  width: 0.72rem;
  height: 0.72rem;
  border-radius: 999px;
}

.ak-chart-loading,
.ak-chart-error,
.ak-chart-empty {
  border-radius: 11px;
  padding: 1rem;
  color: var(--ak-muted);
  text-align: center;
  box-shadow: inset 3px 3px 7px var(--ak-inset-dark), inset -3px -3px 7px var(--ak-inset-soft);
}

.ak-chart-error {
  color: #b20d24;
}

.ak-ping-summary {
  position: relative;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  place-items: center;
  justify-content: center;
  gap: 0.75rem 1rem;
  width: 100%;
  margin: 0 0 1rem;
  border-radius: 11px;
  background: var(--ak-bg);
  padding: 1rem;
  box-shadow: inset 3px 3px 7px var(--ak-inset-dark), inset -3px -3px 7px var(--ak-inset-soft);
}

.ak-ping-item {
  appearance: none;
  border: 0;
  border-radius: 10px;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.62rem;
  width: min(100%, 320px);
  min-width: 0;
  padding: 0.48rem 0.62rem;
  color: inherit;
  cursor: pointer;
  font-family: HarmonyOS, dianzhenzt, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
  text-align: left;
  transition: color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.ak-ping-item:hover,
.ak-ping-item:focus-visible {
  color: var(--ak-blue);
  outline: none;
}

.ak-ping-item.active {
  background: var(--ak-bg);
  color: var(--ak-blue);
  box-shadow: 5px 5px 12px #cfd6dc, -5px -5px 12px #fdffff;
  transform: translateY(-1px);
}

.ak-ping-text {
  display: block;
  min-width: 0;
}

.ak-ping-mark {
  flex: 0 0 auto;
  width: 0.3rem;
  height: 1.7rem;
  border-radius: 4px;
}

.ak-ping-item strong,
.ak-ping-text > span {
  display: block;
  overflow-wrap: anywhere;
}

.ak-ping-text strong {
  color: var(--ak-text);
  line-height: 1.25;
}

.ak-ping-text > span {
  margin-top: 0.12rem;
  color: var(--ak-muted);
  font-size: 0.82rem;
}

@media (max-width: 768px) {
  .ui.container {
    width: 95vw !important;
  }

  .nb-menu {
    margin-top: 0 !important;
  }

  .ak-nav-inner {
    gap: 0;
    overflow-x: auto;
  }

  .ui.menu .item {
    min-height: 44px;
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }

  .right.menu {
    margin-left: auto !important;
  }

  .ak-auth .button {
    padding-left: 0.85rem !important;
    padding-right: 0.85rem !important;
  }

  .nb-container {
    padding-top: 24px !important;
  }

  .ak-card-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
    padding-left: 0.45rem;
    padding-right: 0.45rem;
  }

  .ak-card {
    border-radius: 16px;
    padding: 1rem;
  }

  .ak-detail-info-card {
    padding: 0.95rem;
  }

  .ak-detail-hero {
    align-items: flex-start;
    flex-direction: column;
    padding: 0.1rem 0.1rem 0.85rem;
  }

  .ak-detail-title h1 {
    font-size: 1.35rem;
  }

  .ak-detail-grid {
    grid-template-columns: 1fr;
    gap: 0.85rem;
  }

  .ak-stat-card.wide {
    grid-column: auto;
  }

  .ak-chart-grid {
    grid-template-columns: 1fr;
  }

  .ak-chart-grid .ak-chart-card {
    padding: 1rem 0.82rem 0.95rem;
  }

  .ak-chart-head {
    min-height: 50px;
    margin-bottom: 0.35rem;
  }

  .ak-chart-wrap svg {
    height: 230px;
    min-height: 230px;
  }

  .ak-chart-grid .ak-chart-wrap svg {
    height: 260px;
    min-height: 260px;
  }

  .ak-segmented {
    align-self: stretch;
  }

  .ak-segmented button {
    min-width: 72px;
    flex: 1 0 auto;
  }

  .ak-segmented-load-range {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    overflow: visible;
  }

  .ak-segmented-load-range button {
    min-width: 0;
    width: 100%;
    padding-left: 0.48rem;
    padding-right: 0.48rem;
  }

  .ak-segmented-chart {
    align-self: center;
  }

  .ak-ping-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.7rem 0;
    padding-left: 0.8rem;
    padding-right: 0.8rem;
  }

  .ak-ping-item {
    width: 100%;
    justify-content: flex-start;
    padding: 0.44rem 0.58rem;
  }

  .ak-ping-item:nth-child(2n) {
    border-left: 0;
  }

  .ak-ping-text strong {
    font-size: 0.86rem;
  }

  .ak-ping-text > span {
    font-size: 0.72rem;
  }

  .ak-metrics {
    grid-template-columns: 57px minmax(0, 1fr);
    gap: 0 0.46rem;
  }

  .ak-popup {
    right: -0.5rem;
  }
}

@media (min-width: 769px) and (max-width: 1180px) {
  .ak-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .ak-detail-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .ak-stat-card.wide {
    grid-column: span 2;
  }
}
