/* Keep the original logo image and its 29px workbench / 52px login height.
   In MaShanZheng-Regular.ttf, the combined visible bounds of 司舟 are
   y=-109..815 in a 1000-unit em: the ink occupies 0.924em.
   Match that ink height, then compensate for the font's 880/-120 baseline.
   The sizes below include Chromium's small-size font hinting, verified at
   100%, 125%, 150% and 200% display scale against rendered pixel bounds.
   These rules intentionally inherit each skin's text colors. */
.brand > .brand-name {
  height: 29px;
  margin: 0;
  padding: 0;
  font-family: "Sizhou Ma Shan Zheng", "Microsoft YaHei UI", serif;
  font-size: 30.4px;
  font-weight: 400;
  font-synthesis: none;
  line-height: 29px;
  letter-spacing: 0;
  white-space: nowrap;
  transform: translateY(-0.9px);
}

.brand > .brand-mark,
.brand > .brand-mark > img {
  width: 29px;
  height: 29px;
}

.brand > .brand-mark > img {
  display: block;
  object-fit: contain;
}

.desktop-auth-brand-head {
  align-items: center;
}

.desktop-auth-brand-head > h1 {
  height: 52px;
  margin: 0;
  padding: 0;
  font-family: "Sizhou Ma Shan Zheng", "Microsoft YaHei UI", serif;
  font-size: 55.7px;
  font-weight: 400;
  font-synthesis: none;
  line-height: 52px;
  letter-spacing: 0;
  white-space: nowrap;
  transform: translateY(-1.5px);
}

/* Preserve the existing compact navigation: only the original mark remains. */
@media (max-width: 1000px) {
  .brand > .brand-name,
  .brand > .brand-tagline {
    display: none;
  }
}

@media (min-width: 1101px) and (max-width: 1600px) {
  body.ai-open .brand > .brand-name,
  body.ai-open .brand > .brand-tagline {
    display: none;
  }
}
