:root {
  --tz-shell-ink: #101828;
  --tz-shell-muted: #667085;
  --tz-shell-line: rgba(16, 24, 40, .10);
  --tz-shell-blue: #1769ff;
  --tz-shell-blue-soft: #edf4ff;
}

.tz-site-shell,
.tz-site-shell * {
  box-sizing: border-box;
}

.tz-site-shell {
  position: sticky;
  top: 0;
  z-index: 50;
  width: 100%;
  border-bottom: 1px solid var(--tz-shell-line);
  background: rgba(255, 255, 255, .92);
  color: var(--tz-shell-ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  backdrop-filter: blur(20px) saturate(150%);
}

.tz-shell-inner {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 22px;
  width: min(1280px, calc(100% - 40px));
  min-height: 72px;
  margin: 0 auto;
}

.tz-shell-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 190px;
  color: var(--tz-shell-ink);
  text-decoration: none;
}

.tz-shell-brand img {
  display: block;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 0;
  background: transparent;
  object-fit: contain;
  box-shadow: none;
  filter: drop-shadow(0 4px 10px rgba(47, 91, 255, .28));
}

.tz-shell-brand strong,
.tz-shell-brand small {
  display: block;
}

.tz-shell-brand strong {
  font-size: 17px;
  line-height: 1.15;
  letter-spacing: -.01em;
}

.tz-shell-brand small {
  margin-top: 3px;
  color: var(--tz-shell-muted);
  font-size: 11px;
  line-height: 1.2;
}

.tz-shell-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-width: 0;
}

.tz-shell-nav a,
.tz-shell-utility,
.tz-shell-account,
.tz-shell-menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 850;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
}

.tz-shell-nav a {
  position: relative;
  padding: 0 12px;
  color: #475467;
}

.tz-shell-nav a:hover {
  color: var(--tz-shell-blue);
  background: #f7f9fc;
}

.tz-shell-nav a[aria-current="page"],
.tz-shell-nav a[data-active="true"] {
  color: var(--tz-shell-blue);
  background: var(--tz-shell-blue-soft);
}

.tz-shell-nav a[aria-current="page"]::after,
.tz-shell-nav a[data-active="true"]::after {
  position: absolute;
  right: 14px;
  bottom: 4px;
  left: 14px;
  height: 2px;
  border-radius: 999px;
  background: var(--tz-shell-blue);
  content: "";
}

.tz-shell-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 7px;
}

.tz-shell-utility,
.tz-shell-account,
.tz-shell-menu-toggle {
  border: 1px solid #d9e0ea;
  background: #fff;
  color: #344054;
  cursor: pointer;
}

.tz-shell-utility,
.tz-shell-account {
  padding: 0 13px;
}

.tz-shell-utility:hover,
.tz-shell-account:hover,
.tz-shell-menu-toggle:hover {
  border-color: rgba(23, 105, 255, .35);
  color: var(--tz-shell-blue);
}

.tz-shell-utility.ai {
  gap: 7px;
  border-color: #101828;
  background: #101828;
  color: #fff;
  box-shadow: 0 8px 22px rgba(16, 24, 40, .16);
}

.tz-shell-utility.ai::before {
  color: #7dd3fc;
  content: "✦";
  font-size: 13px;
}

.tz-shell-utility.ai:hover {
  border-color: #1769ff;
  background: #1769ff;
  color: #fff;
}

.tz-shell-utility.primary {
  border-color: var(--tz-shell-blue);
  background: var(--tz-shell-blue);
  color: #fff;
  box-shadow: 0 8px 22px rgba(23, 105, 255, .18);
}

.tz-shell-utility.primary:hover {
  border-color: #0758ea;
  background: #0758ea;
  color: #fff;
}

.tz-shell-menu-toggle {
  display: none;
  width: 42px;
  padding: 0;
}

.tz-shell-menu-toggle svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-width: 1.8;
}

.tz-shell-mobile {
  display: none;
  width: min(1280px, calc(100% - 24px));
  margin: 0 auto 12px;
  padding: 10px;
  border: 1px solid #e3e8ef;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 20px 45px rgba(16, 24, 40, .12);
}

.tz-shell-mobile[hidden] {
  display: none !important;
}

.tz-shell-mobile a,
.tz-shell-mobile button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 52px;
  padding: 0 13px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: #344054;
  font: inherit;
  font-size: 14px;
  font-weight: 850;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}

.tz-shell-mobile a::after,
.tz-shell-mobile button::after {
  color: #98a2b3;
  content: "›";
  font-size: 20px;
}

.tz-shell-mobile a:hover,
.tz-shell-mobile button:hover,
.tz-shell-mobile a[aria-current="page"] {
  background: #f3f7fd;
  color: var(--tz-shell-blue);
}

.tz-shell-mobile-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 8px;
  padding-top: 10px;
  border-top: 1px solid #edf0f4;
}

.tz-shell-mobile-actions a,
.tz-shell-mobile-actions button {
  justify-content: center;
  min-height: 46px;
  border: 1px solid #dbe2ec;
  background: #fff;
  text-align: center;
}

.tz-shell-mobile-actions a::after,
.tz-shell-mobile-actions button::after {
  display: none;
}

.tz-shell-mobile-actions .ai {
  border-color: #101828;
  background: #101828;
  color: #fff;
}

.tz-site-shell a:focus-visible,
.tz-site-shell button:focus-visible {
  outline: 3px solid #ffbf47;
  outline-offset: 3px;
}

@media (max-width: 1180px) {
  .tz-shell-inner {
    gap: 14px;
  }

  .tz-shell-brand {
    min-width: 154px;
  }

  .tz-shell-brand small {
    display: none;
  }

  .tz-shell-nav a {
    padding: 0 9px;
  }

  .tz-site-shell[data-shell-page="case"] .tz-shell-nav a {
    padding-right: 7px;
    padding-left: 7px;
  }

  .tz-site-shell[data-shell-page="case"] .tz-shell-account {
    display: none;
  }
}

@media (max-width: 1060px) {
  .tz-site-shell[data-shell-page="case"] .tz-shell-utility.share {
    display: none;
  }
}

@media (max-width: 960px) {
  .tz-shell-inner {
    grid-template-columns: auto 1fr auto;
    width: min(100% - 28px, 1280px);
    min-height: 64px;
  }

  .tz-shell-nav {
    display: none;
  }

  .tz-shell-actions {
    grid-column: 3;
  }

  .tz-shell-account {
    display: none;
  }

  .tz-shell-menu-toggle {
    display: inline-flex;
  }

  .tz-shell-mobile:not([hidden]) {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2px 6px;
  }

  .tz-shell-mobile-actions {
    grid-column: 1 / -1;
  }
}

@media (max-width: 620px) {
  .tz-shell-inner {
    width: calc(100% - 22px);
    gap: 8px;
  }

  .tz-shell-brand {
    min-width: 0;
  }

  .tz-shell-brand img {
    width: 34px;
    height: 34px;
    border-radius: 10px;
  }

  .tz-shell-brand strong {
    font-size: 15px;
  }

  .tz-shell-utility.ai {
    width: 42px;
    padding: 0;
    font-size: 0;
  }

  .tz-shell-utility.ai::before {
    font-size: 16px;
  }

  .tz-shell-actions > .tz-shell-utility:not(.ai):not(.miniapp) {
    display: none;
  }

  .tz-shell-utility.miniapp {
    width: auto;
    padding: 0 10px;
    gap: 4px;
    font-size: 12px;
  }

  .tz-shell-mobile:not([hidden]) {
    grid-template-columns: 1fr;
  }

  .tz-shell-mobile-actions {
    grid-column: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .tz-site-shell *,
  .tz-site-shell *::before,
  .tz-site-shell *::after {
    scroll-behavior: auto !important;
    animation: none !important;
    transition: none !important;
  }
}
