/* SPDX-License-Identifier: LicenseRef-VINCIS-ARR
 *
 * The one top bar. Geometry and palette live here so the home, the
 * Knowledge Center, sign-in, the Desk and every settings page share one
 * box: --nav-h high, --pad inset, brand lockup left, controls right. Only the
 * home and the Knowledge Center put section links in the middle. */

.vincis-topbar {
  --nfg: #f2f4f8;
  --nfg2: rgba(255, 255, 255, 0.52);
  --nline: rgba(255, 255, 255, 0.14);
  --nsolid: rgba(7, 8, 11, 0.68);
  --nbtn-bg: #ffffff;
  --nbtn-fg: #07080b;
  --pad: clamp(20px, 4vw, 48px);
  --navctl-fg: var(--nfg);
  --navctl-fg2: var(--nfg2);
  --navctl-line: var(--nline);
  --navctl-line-strong: var(--nfg2);
  --navctl-pin-bg: var(--nbtn-bg);
  --navctl-pin-fg: var(--nbtn-fg);
  --navctl-hover: rgba(128, 128, 128, 0.12);
  position: relative;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  height: var(--nav-h, 58px);
  /* Owner 2026-09-04: the lockup sits 10px further left than the right-hand
     controls' inset, on every page. */
  padding: 0 var(--pad) 0 calc(var(--pad) - 10px);
  color: var(--nfg);
  background: var(--nsolid);
  backdrop-filter: blur(22px) saturate(150%);
  -webkit-backdrop-filter: blur(22px) saturate(150%);
  border-bottom: 1px solid var(--nline);
  box-sizing: border-box;
  flex: none;
}
html:not(.dark) .vincis-topbar {
  --nfg: #0b0d12;
  --nfg2: rgba(11, 13, 18, 0.55);
  --nline: rgba(11, 13, 18, 0.12);
  --nsolid: rgba(255, 255, 255, 0.76);
  --nbtn-bg: #0b0d12;
  --nbtn-fg: #ffffff;
}
.vincis-topbar.fixed {
  position: fixed;
  inset: 0 0 auto 0;
}
.vincis-topbar .np {
  position: absolute;
  left: 0;
  bottom: -1px;
  height: 1px;
  width: 0;
  background: var(--nfg);
  pointer-events: none;
}
.vincis-topbar .brand {
  display: flex;
  align-items: center;
  gap: 11px;
  flex: none;
  color: inherit;
  text-decoration: none;
}
.vincis-topbar .lead {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.vincis-topbar .crumb {
  font-size: 13.5px;
  color: var(--nfg2);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}
.vincis-topbar .crumb b {
  color: var(--nfg);
  font-weight: 500;
}
.vincis-topbar .nav-links {
  display: flex;
  gap: 30px;
  align-items: center;
}
.vincis-topbar .nav-links a {
  font-size: 13px;
  color: var(--nfg2);
  white-space: nowrap;
  text-decoration: none;
  transition: color 0.3s;
}
.vincis-topbar .nav-links a:hover,
.vincis-topbar .nav-links a[aria-current="page"] {
  color: var(--nfg);
}
@media (max-width: 1150px) {
  .vincis-topbar .nav-links {
    display: none;
  }
}

/* The Desk-born controls (余额 pill, the bell) keep their own drawing but sit
   on the bar's 34px line. */
.vincis-topbar .vincis-desk.topbar-desk {
  display: contents;
  font-size: 16px;
}
.vincis-topbar .topbar-desk .spend {
  height: 34px;
  padding: 0 14px;
  align-items: center;
  border-color: var(--nline);
  color: var(--nfg2);
  text-decoration: none;
}
.vincis-topbar .topbar-desk .spend b {
  color: var(--nfg);
}
.vincis-topbar .topbar-desk .iconbtn {
  width: 34px;
  height: 34px;
  border-color: var(--nline);
  color: var(--nfg2);
}
.vincis-topbar .topbar-desk .iconbtn svg {
  width: 15px;
  height: 15px;
}
.vincis-topbar .topbar-desk .iconbtn:hover {
  color: var(--nfg);
  border-color: var(--nfg2);
}
.vincis-topbar .topbar-desk .iconbtn.hasdot::after {
  box-shadow: 0 0 0 2px var(--nsolid);
}
.vincis-topbar .topbar-desk .bellwrap {
  position: relative;
  display: flex;
}
.vincis-topbar .topbar-desk .railbtn {
  display: none;
}
@media (max-width: 900px) {
  .vincis-topbar .topbar-desk .railbtn {
    display: grid;
  }
  .vincis-topbar .crumb {
    display: none;
  }
}
@media (max-width: 640px) {
  .vincis-topbar .topbar-desk .spend {
    display: none;
  }
}
.vincis-topbar .vincis-navctl {
  gap: 10px;
}
.vincis-topbar .account {
  display: inline-flex;
  align-items: center;
}
.vincis-topbar .account [data-testid="profile-popout-menu-trigger"] {
  outline: none;
}

/* SPDX-License-Identifier: LicenseRef-VINCIS-ARR
 *
 * One lockup, one size, for every signed-out surface. Colour is inherited so a
 * page can tint it, but nothing here may be redefined per page — that is how
 * the logo drifts between the home page and sign-in.
 */

:root {
  /* the signed-out nav row, shared by the marketing home and sign-in */
  --nav-h: 58px;
}

.vincis-brand {
  display: flex;
  align-items: center;
  gap: 11px;
  flex: none;
  height: 32px;
  color: inherit;
}
.vincis-brand-glyph {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  overflow: hidden;
  display: block;
  flex: none;
  box-shadow: inset 0 0 0 1px color-mix(in srgb, currentColor 13%, transparent);
}
.vincis-brand-glyph svg {
  width: 32px;
  height: 32px;
  display: block;
}
.vincis-brand-word {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.005em;
  white-space: nowrap;
  /* matches the mark's box exactly, so the wordmark cannot land on a
     half pixel and shift by one between pages */
  line-height: 32px;
}
@media (max-width: 400px) {
  .vincis-brand-word {
    display: none;
  }
}

/* SPDX-License-Identifier: LicenseRef-VINCIS-ARR
 *
 * One control cluster for every signed-out nav.
 *
 * Sizes are absolute and line height is set explicitly: the two pages inherit
 * different type scales, and inheriting here is what put the buttons two
 * pixels apart. Colour is the only thing a page supplies, through --navctl-*.
 */

.vincis-navctl {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: none;
  height: 34px;
  font-size: 13.5px;
  line-height: 1;
  color: var(--navctl-fg, currentColor);
}

.vincis-navctl-lang {
  position: relative;
  display: flex;
  align-items: center;
  height: 34px;
  padding: 3px;
  border-radius: 100px;
  border: 1px solid var(--navctl-line, currentColor);
}
.vincis-navctl-lang button {
  appearance: none;
  background: none;
  border: 0;
  cursor: pointer;
  position: relative;
  z-index: 1;
  width: 40px;
  height: 26px;
  border-radius: 100px;
  font: inherit;
  font-size: 12px;
  font-weight: 500;
  line-height: 26px;
  color: var(--navctl-fg2, currentColor);
  transition: color 0.35s;
}
.vincis-navctl-lang button[aria-pressed="true"] {
  color: var(--navctl-pin-fg, canvas);
}
.vincis-navctl-pin {
  position: absolute;
  left: 3px;
  top: 3px;
  width: 40px;
  height: 26px;
  border-radius: 100px;
  background: var(--navctl-pin-bg, currentColor);
  transition:
    transform 0.45s cubic-bezier(0.16, 1, 0.3, 1),
    background 0.4s;
}
.vincis-navctl-lang.is-zh .vincis-navctl-pin {
  transform: translateX(40px);
}

.vincis-navctl-icon {
  appearance: none;
  cursor: pointer;
  width: 34px;
  height: 34px;
  border-radius: 100px;
  display: grid;
  place-items: center;
  background: transparent;
  border: 1px solid var(--navctl-line, currentColor);
  color: var(--navctl-fg2, currentColor);
  transition:
    color 0.3s,
    border-color 0.3s;
}
.vincis-navctl-icon:hover {
  color: var(--navctl-fg, currentColor);
  border-color: var(--navctl-line-strong, currentColor);
}
.vincis-navctl-icon svg {
  width: 15px;
  height: 15px;
  grid-area: 1/1;
}
.vincis-navctl-icon .ic-moon {
  display: none;
}
html:not(.dark) .vincis-navctl-icon .ic-sun {
  display: none;
}
html:not(.dark) .vincis-navctl-icon .ic-moon {
  display: block;
}

.vincis-navctl-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 92px;
  height: 34px;
  padding: 0 18px;
  border-radius: 100px;
  font-size: 13.5px;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
  color: var(--navctl-fg, currentColor);
  border: 1px solid var(--navctl-line, currentColor);
  transition:
    border-color 0.3s,
    background 0.3s;
}
.vincis-navctl-btn:hover {
  border-color: var(--navctl-line-strong, currentColor);
  background: var(--navctl-hover, transparent);
}

/* One breakpoint, shared. A page that picks its own is how the two navs end
   up showing different controls on a phone. */
@media (max-width: 560px) {
  /* the outline action folds away on a phone; a signed-in avatar does not
     carry this class, so it stays reachable */
  a.vincis-navctl-btn {
    display: none;
  }
}

