:root {
  --yz-topbar-height: 48px;
  --yz-topbar-bg: #0d6fb3;
  --yz-topbar-fg: #fff;
}

.yz-app-topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: var(--yz-topbar-height) minmax(0, 1fr) var(--yz-topbar-height);
  align-items: center;
  width: 100%;
  height: var(--yz-topbar-height);
  min-height: var(--yz-topbar-height);
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  color: var(--yz-topbar-fg);
  font-family: "PingFang SC", "Microsoft YaHei UI", "Microsoft YaHei", system-ui, -apple-system, "Segoe UI", sans-serif;
  background: var(--yz-topbar-bg);
  box-shadow: 0 1px 4px rgba(0, 38, 76, 0.16);
}

.yz-app-topbar__action {
  display: grid;
  width: var(--yz-topbar-height);
  height: var(--yz-topbar-height);
  margin: 0;
  padding: 0;
  place-items: center;
  color: inherit;
  background: transparent;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}

.yz-app-topbar__action svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.yz-app-topbar__title {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  color: inherit;
  font-family: inherit;
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.yz-app-topbar__action:focus-visible {
  outline: 2px solid #fff;
  outline-offset: -4px;
}

@media (prefers-reduced-motion: reduce) {
  .yz-app-topbar,
  .yz-app-topbar * {
    scroll-behavior: auto;
    animation: none;
    transition: none;
  }
}
