/* One navigation and brand system for the public site and cloud workspace. */
:root { --brand-accent: #18d37e; --site-nav-height: 74px; }
[hidden] { display: none !important; }
html { scroll-padding-top: 90px; }
body .site-header.navbar {
  display: block;
  position: sticky; inset: 0 0 auto; z-index: 100;
  width: 100%; margin: 0; padding: 0; min-height: var(--site-nav-height);
  background: #0a1110f5 !important; border: 0; border-bottom: 1px solid #ffffff15;
  box-shadow: none !important; color: #f5f7f6;
  backdrop-filter: blur(18px);
  font-family: "Avenir Next", Avenir, "Helvetica Neue", "Microsoft YaHei", sans-serif;
}
.site-header *, .site-header *::before, .site-header *::after { box-sizing: border-box; }
.site-nav-inner { display: flex; align-items: center; gap: 26px; width: 100%; max-width: 1240px; min-height: 74px; padding: 0 28px; margin: 0 auto; }
.site-header a { text-decoration: none; }
.site-brand { display: inline-flex; flex-shrink: 0; align-items: center; gap: 10px; color: #fff; }
.site-brand img { display: block; width: 38px; height: 38px; object-fit: contain; }
.site-brand > span { color: #fff; font-size: 22px; font-weight: 750; letter-spacing: -.9px; }
.site-brand > span > span { color: var(--brand-accent); }
.site-nav-links { display: flex; align-items: center; gap: 20px; margin-inline-start: auto; }
.site-nav-links > a { color: #bbc5c0; padding: 25px 0; font-size: 13px; font-weight: 500; line-height: 24px; white-space: nowrap; }
.site-nav-links > a:hover { color: #fff; }
.site-nav-links > a[aria-current="page"] { color: #fff; box-shadow: inset 0 -2px var(--brand-accent); }
.site-nav-actions { display: flex; align-items: center; gap: 14px; }
.site-header .site-install-link { display: inline-flex; align-items: center; justify-content: center; min-height: 36px; padding: 8px 13px; color: #07100b; background: var(--brand-accent); border-radius: 7px; font-size: 12px; font-weight: 650; white-space: nowrap; }
.site-header .site-install-link:hover { background: #42e398; }
.site-account { position: relative; }
.site-header .site-account-trigger, .site-header .site-menu-toggle { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 36px; padding: 6px 9px; border: 1px solid #ffffff24; border-radius: 7px; background: transparent; color: #e0e6e2; font: inherit; font-size: 12px; cursor: pointer; }
.site-header .site-account-trigger:hover, .site-header .site-menu-toggle:hover { border-color: #ffffff55; background: #ffffff08; }
.site-account-name { display: block; max-width: 110px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.site-account-avatar { display: grid; place-items: center; width: 23px; height: 23px; border-radius: 50%; background: #ffffff15; font-size: 11px; }
.site-account-menu { position: absolute; top: calc(100% + 12px); inset-inline-end: 0; width: 250px; padding: 6px; border: 1px solid #ffffff20; border-radius: 9px; background: #141a18; box-shadow: 0 12px 32px #0005; }
.site-account-email { padding: 10px; color: #8f9e96; font-size: 11px; overflow-wrap: anywhere; border-bottom: 1px solid #ffffff12; margin-bottom: 5px; }
.site-account-menu > a, .site-account-menu > button { display: block; width: 100%; padding: 10px; border: 0; border-radius: 5px; text-align: start; color: #dae1dc; background: none; font: inherit; font-size: 12px; cursor: pointer; }
.site-account-menu > a:hover, .site-account-menu > button:hover { color: #fff; background: #ffffff0b; }
.site-header .site-menu-toggle { display: none; padding: 7px; }
.site-header :focus-visible { outline: 2px solid #c2d0c9; outline-offset: 4px; }
.home-page .home-hero { padding-top: 94px; }
.site-page :is(.content-page, .support-page, .privacy-page, .terms-page, .preview-page) { padding-top: 76px; }
body.reading .site-header { display: none; }
@media (max-width: 1150px) {
  .site-nav-inner { gap: 14px; padding-inline: 22px; }
  .site-nav-links { gap: 14px; }
  .site-nav-links > a { font-size: 12px; }
  .site-brand > span { font-size: 20px; }
  .site-account-name { max-width: 85px; }
}
@media (max-width: 1000px) {
  .home-page .home-hero { padding-top: 60px; }
  .site-nav-inner { flex-wrap: wrap; gap: 12px; padding: 16px 20px; min-height: 74px; }
  .site-nav-actions { margin-inline-start: auto; }
  .site-header .site-menu-toggle { display: inline-flex; }
  .site-nav-links { display: none; order: 4; flex: 1 0 100%; margin: 0; gap: 0; padding-top: 8px; border-top: 1px solid #ffffff15; }
  .site-header.menu-open .site-nav-links { display: grid; grid-template-columns: repeat(3, 1fr); }
  .site-nav-links > a { padding: 10px 8px; }
  .site-nav-links > a[aria-current="page"] { box-shadow: none; background: #ffffff0b; border-radius: 6px; }
}
@media (max-width: 520px) {
  .site-nav-inner { padding-inline: 16px; gap: 8px; }
  .site-brand { gap: 7px; }
  .site-brand img { width: 30px; height: 30px; }
  .site-brand > span { font-size: 18px; }
  .site-header .site-install-link { display: none; }
  .site-account-name { display: none; }
  .site-nav-actions { gap: 0; }
}

.site-account-avatar { flex-shrink: 0; overflow: hidden; }
.site-account-avatar > img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }

.site-language-select { appearance: none; -webkit-appearance: none; width: 124px; max-width: 124px; min-height: 36px; padding-block: 6px; padding-inline: 12px 34px; border: 1px solid #ffffff24; border-radius: 7px; background: #141a18; color: #e0e6e2; font: inherit; font-size: 12px; cursor: pointer; background-image: url("/assets/brand/select-chevron.svg"); background-repeat: no-repeat; background-position: right 12px center; }
[dir="rtl"] .site-language-select { background-position: left 12px center; }
.site-language-select:focus-visible { outline: 2px solid var(--brand-accent); outline-offset: 3px; }
@media (min-width: 1001px) and (max-width: 1250px) { .site-nav-inner { gap: 12px; padding-inline: 16px; } .site-nav-links { gap: 12px; } .site-nav-actions { gap: 8px; } .site-header .site-install-link { display: none; } }
@media (max-width: 520px) { .site-nav-actions { gap: 6px; } .site-language-select { width: 112px; max-width: 112px; } }
