.site-header,
.site-footer {
  --shell-white: #f8f6fb;
  --shell-muted: #96929e;
  --shell-line: rgba(255, 255, 255, .1);
  --shell-lime: #8dff18;
  --shell-max: var(--max, 1600px);
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  background: rgba(5, 5, 7, .88);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  transition: border-color .25s ease, background .25s ease;
}

.site-header-overlay {
  position: fixed;
  inset: 0 0 auto;
}

.site-header.scrolled {
  border-bottom-color: rgba(141, 255, 24, .2);
  background: rgba(5, 5, 7, .94);
}

.site-nav {
  width: min(var(--shell-max), calc(100% - 48px));
  min-height: 68px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 24px;
}

.site-brand {
  width: max-content;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
  color: var(--shell-white);
  text-decoration: none;
  font-size: 24px;
  line-height: 1;
  letter-spacing: -.02em;
  font-weight: 600;
}

.site-brand-icon {
  width: 44px;
  height: 44px;
  display: block;
  border-radius: 12px;
  object-fit: cover;
}

.site-header-links {
  display: flex;
  align-items: center;
  gap: 26px;
  margin-left: auto;
}

.site-header-link {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  color: #d4d0d9;
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  transition: color .2s ease;
}

.site-header-link:hover,
.site-header-link:focus-visible,
.site-header-link[aria-current="page"] {
  color: var(--shell-white);
  outline: 0;
}

.site-header-more {
  position: relative;
  display: none;
}

.site-header-more summary {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 7px;
  color: var(--shell-muted);
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
  line-height: 1;
  list-style: none;
  white-space: nowrap;
}

.site-header-more summary::-webkit-details-marker { display: none; }
.site-header-more summary::after { content: '⌄'; color: var(--shell-lime); font-size: 16px; transition: transform .2s ease; }
.site-header-more[open] summary { color: var(--shell-white); }
.site-header-more[open] summary::after { transform: rotate(180deg); }
.site-header-more summary:focus-visible { border-radius: 4px; outline: 2px solid rgba(141,255,24,.72); outline-offset: 4px; }

.site-header-more-menu {
  position: absolute;
  top: calc(100% + 10px);
  left: -14px;
  z-index: 70;
  display: grid;
  min-width: 216px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 16px;
  padding: 6px;
  background: #17171c;
  box-shadow: 0 18px 48px rgba(0,0,0,.55);
}

.site-header-more-menu a,
.site-header-more-menu button {
  display: flex;
  min-height: 42px;
  align-items: center;
  border: 0;
  border-radius: 11px;
  padding: 0 12px;
  color: #d8d4de;
  background: transparent;
  cursor: pointer;
  font: inherit;
  font-size: 14px;
  text-decoration: none;
}

.site-header-more-menu a:hover,
.site-header-more-menu a:focus-visible,
.site-header-more-menu a[aria-current="page"],
.site-header-more-menu button:hover,
.site-header-more-menu button:focus-visible {
  color: var(--shell-lime);
  background: rgba(141,255,24,.08);
  outline: 0;
}

.site-header-more-menu .site-header-more-download {
  min-height: 46px;
  justify-content: center;
  margin-top: 4px;
  color: #071004;
  background: linear-gradient(115deg, #c9ff3f 0%, #8dff18 48%, #48dc63 100%);
  box-shadow: 0 0 0 1px rgba(202,255,98,.2), 0 10px 28px rgba(115,255,42,.12);
  font-weight: 600;
}

.site-header-more-menu .site-header-more-download:hover,
.site-header-more-menu .site-header-more-download:focus-visible {
  color: #071004;
  background: linear-gradient(115deg, #ddff72 0%, #9dff33 48%, #5bea73 100%);
  outline: 0;
}

.site-header-actions {
  margin-left: 36px;
  display: flex;
  align-items: center;
  gap: 18px;
}

.site-header-download {
  min-height: 46px;
  padding: 0 23px;
  border: 0;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #071004;
  background: linear-gradient(115deg, #c9ff3f 0%, #8dff18 48%, #48dc63 100%);
  box-shadow: 0 0 0 1px rgba(202, 255, 98, .2), 0 10px 34px rgba(115, 255, 42, .16);
  text-decoration: none;
  font: inherit;
  font-size: 14px;
  line-height: 1;
  font-weight: 600;
  white-space: nowrap;
  transition: transform .2s ease, background .2s ease, box-shadow .2s ease;
}

.site-header-download:hover {
  background: linear-gradient(115deg, #ddff72 0%, #9dff33 48%, #5bea73 100%);
  box-shadow: 0 0 0 1px rgba(218, 255, 126, .35), 0 14px 42px rgba(115, 255, 42, .24);
}

.site-header-account {
  min-width: 0;
  border: 0;
  padding: 0;
  color: #c9c6cf;
  background: transparent;
  font: inherit;
  text-decoration: none;
  font-size: 13px;
  line-height: 1;
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
  transition: color .2s ease;
}

.site-header-account:hover,
.site-header-account[aria-current="page"],
.site-header-account:focus-visible {
  color: var(--shell-white);
}
.site-header-account:focus-visible { outline: 2px solid rgba(141,255,24,.72); outline-offset: 5px; border-radius: 4px; }
.site-header-account[hidden] { display: none; }

.site-account-control { position: relative; }
.site-account-avatar { display: grid; width: 42px; height: 42px; place-items: center; overflow: hidden; border: 1px solid rgba(141,255,24,.34); border-radius: 50%; padding: 0; color: #101608; background: linear-gradient(135deg, #c9ff3f, #48dc63); cursor: pointer; box-shadow: 0 0 24px rgba(141,255,24,.13); }
.site-account-avatar[hidden] { display: none; }
.site-account-avatar img { width: 100%; height: 100%; object-fit: cover; }
.site-account-avatar span { font-size: 16px; font-weight: 600; }
.site-account-avatar:hover, .site-account-avatar:focus-visible { border-color: #c9ff3f; box-shadow: 0 0 0 3px rgba(141,255,24,.14), 0 0 28px rgba(141,255,24,.2); outline: 0; }
.site-account-menu { position: absolute; top: calc(100% + 10px); right: 0; z-index: 70; min-width: 180px; overflow: hidden; border: 1px solid rgba(255,255,255,.14); border-radius: 16px; padding: 6px; background: #17171c; box-shadow: 0 18px 48px rgba(0,0,0,.55); }
.site-account-menu[hidden] { display: none; }
.site-account-menu a, .site-account-menu button { display: flex; width: 100%; min-height: 42px; align-items: center; border: 0; border-radius: 11px; padding: 0 12px; color: #d8d4de; background: transparent; text-decoration: none; font: inherit; font-size: 14px; text-align: left; cursor: pointer; }
.site-account-menu a:hover, .site-account-menu button:hover { color: #f8f6fb; background: rgba(255,255,255,.07); }
.site-account-menu button { color: #aaa5b2; }

.site-auth-dialog, .site-logout-dialog { width: min(480px, calc(100% - 28px)); max-height: calc(100svh - 28px); overflow: auto; border: 1px solid transparent; border-radius: 28px; padding: clamp(36px, 5vw, 48px) clamp(28px, 4vw, 40px) clamp(42px, 5vw, 52px); color: #f8f6fb; background: radial-gradient(circle at 100% 0, rgba(141,255,24,.085), transparent 34%) padding-box, linear-gradient(rgba(15,16,19,.99), rgba(15,16,19,.99)) padding-box, linear-gradient(112deg, rgba(91,127,43,.42), rgba(255,255,255,.08) 42%, rgba(218,255,91,.95) 78%, rgba(141,255,24,.48)) border-box; box-shadow: 0 36px 110px rgba(0,0,0,.78), 24px -14px 64px rgba(141,255,24,.18); font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; }
.site-auth-dialog::backdrop, .site-logout-dialog::backdrop { background: rgba(2,3,2,.78); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.site-auth-dialog[open], .site-logout-dialog[open] { animation: site-dialog-in .18s ease-out; }
@keyframes site-dialog-in { from { opacity: 0; transform: scale(.975); } to { opacity: 1; transform: scale(1); } }
.site-auth-close { position: absolute; top: 14px; right: 14px; display: grid; width: 34px; height: 34px; place-items: center; border: 1px solid rgba(255,255,255,.12); border-radius: 50%; padding: 0; color: #aaa5b2; background: rgba(255,255,255,.025); font-size: 24px; line-height: 1; cursor: pointer; }
.site-auth-close:hover, .site-auth-close:focus-visible { color: #f8f6fb; border-color: #8dff18; box-shadow: 0 0 0 3px rgba(141,255,24,.12); outline: 0; }
.site-auth-dialog h2, .site-logout-dialog h2 { margin: 0; font-size: clamp(34px, 5vw, 42px); line-height: 1.08; letter-spacing: -.04em; font-weight: 400; text-align: center; }
.site-auth-dialog h2 span { color: #8dff18; }
.site-auth-start > p, .site-auth-code > p, .site-logout-dialog > p { margin: 12px 0 0; color: #aaa5b2; font-size: 16px; line-height: 1.5; text-align: center; }
.site-auth-providers { display: grid; gap: 12px; margin-top: 34px; }
.site-auth-provider, .site-auth-email button { position: relative; display: flex; min-height: 54px; align-items: center; justify-content: center; border: 1px solid rgba(255,255,255,.14); border-radius: 999px; color: #f8f6fb; background: rgba(255,255,255,.035); text-decoration: none; font-size: 16px; font-weight: 600; transition: border-color .18s ease, background .18s ease, opacity .18s ease; }
.site-auth-provider img { position: absolute; left: 20px; }
.site-auth-provider:hover { border-color: rgba(141,255,24,.48); background: rgba(141,255,24,.045); }
.site-auth-provider-google { border-color: rgba(141,255,24,.72); color: #f8f6fb; background: linear-gradient(135deg, rgba(141,255,24,.11), rgba(255,255,255,.035) 72%); box-shadow: inset 0 0 0 1px rgba(141,255,24,.08), 0 12px 30px rgba(141,255,24,.12); }
.site-auth-provider-google:hover, .site-auth-provider-google:focus-visible { border-color: #8dff18; color: #fff; background: linear-gradient(135deg, rgba(141,255,24,.17), rgba(255,255,255,.055) 72%); box-shadow: inset 0 0 0 1px rgba(141,255,24,.12), 0 0 0 3px rgba(141,255,24,.12), 0 16px 36px rgba(141,255,24,.16); outline: 0; }
.site-auth-provider.is-loading { opacity: .58; pointer-events: none; }
.site-auth-divider { display: flex; align-items: center; gap: 14px; margin: 38px 0 30px; color: #85818d; font-size: 13px; }
.site-auth-divider::before, .site-auth-divider::after { height: 1px; flex: 1; background: rgba(255,255,255,.12); content: ''; }
.site-auth-email { display: grid; gap: 12px; }
.site-auth-email label { display: block; }
.site-auth-email input { width: 100%; min-height: 54px; border: 1px solid rgba(255,255,255,.14); border-radius: 999px; padding: 0 20px; color: #f8f6fb; background: rgba(4,5,5,.72); outline: 0; }
.site-auth-email input:focus { border-color: #8dff18; box-shadow: 0 0 0 3px rgba(141,255,24,.1); }
.site-auth-email button { color: #f8f6fb; background: rgba(255,255,255,.035); cursor: pointer; }
.site-auth-email button:hover, .site-auth-email button:focus-visible { border-color: rgba(141,255,24,.48); background: rgba(141,255,24,.045); outline: 0; }
.site-auth-email button:disabled { opacity: .55; cursor: wait; }
.site-auth-code[hidden], .site-auth-start[hidden] { display: none; }
.site-auth-back { margin: -4px 0 24px; border: 0; padding: 0; color: #aaa5b2; background: none; font-size: 14px; cursor: pointer; }
.site-auth-code h2 { font-size: 32px; }
.site-auth-code > strong { display: block; margin-top: 5px; text-align: center; font-size: 14px; font-weight: 500; }
.site-auth-code-inputs { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; margin-top: 28px; }
.site-auth-code-inputs input { width: 100%; aspect-ratio: 1; border: 1px solid rgba(255,255,255,.16); border-radius: 13px; color: #f8f6fb; background: rgba(4,5,5,.72); font-size: 24px; text-align: center; outline: 0; }
.site-auth-code-inputs input:focus { border-color: #8dff18; box-shadow: 0 0 0 3px rgba(141,255,24,.1); }
.site-auth-resend { font-size: 13px !important; }
.site-auth-resend button { border: 0; padding: 0; color: #c9ff3f; background: none; font: inherit; cursor: pointer; }
.site-auth-resend button:disabled { color: #85818d; cursor: default; }
.site-auth-status { min-height: 18px; margin: 14px 0 0; color: #aaa5b2; font-size: 13px; line-height: 1.4; text-align: center; }
.site-auth-status[data-kind='error'] { color: #ffaca4; }
.site-auth-status[data-kind='success'] { color: #c9ff3f; }
.site-auth-legal { margin: 24px 0 0; color: #77737e; font-size: 11px; line-height: 1.45; text-align: center; }
.site-auth-legal a { color: #c9ff3f; }
.site-sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
.site-logout-dialog { width: min(470px, calc(100% - 28px)); }
.site-logout-dialog h2 { padding-right: 18px; font-size: 30px; text-align: left; }
.site-logout-dialog > p { text-align: left; }
.site-logout-dialog > div { display: flex; justify-content: flex-end; gap: 10px; margin-top: 28px; }
.site-logout-dialog > div button { min-height: 42px; border: 1px solid rgba(255,255,255,.14); border-radius: 999px; padding: 0 18px; color: #d8d4de; background: transparent; cursor: pointer; }
.site-logout-dialog > div [data-logout-confirm] { border-color: #8dff18; color: #101608; background: #8dff18; }

.site-footer {
  position: relative;
  overflow: hidden;
  border-top: 1px solid rgba(141, 255, 24, .22);
  background: #060708;
  color: var(--shell-white);
}

.site-footer::before {
  content: "";
  position: absolute;
  top: -180px;
  left: 4%;
  width: 520px;
  height: 340px;
  border-radius: 50%;
  background: rgba(141, 255, 24, .07);
  filter: blur(100px);
  pointer-events: none;
}

.footer-inner {
  position: relative;
  width: min(var(--shell-max), calc(100% - 48px));
  margin: 0 auto;
  padding: 72px 0 30px;
}

.footer-top {
  display: grid;
  grid-template-columns: minmax(260px, .9fr) minmax(680px, 2.1fr);
  gap: 84px;
  align-items: start;
}

.footer-brand > p {
  max-width: 360px;
  margin: 24px 0 26px;
  color: #aaa5b2;
  font-size: 16px;
  line-height: 1.6;
}

.footer-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.footer-badges span {
  padding: 8px 11px;
  border: 1px solid rgba(141, 255, 24, .2);
  border-radius: 999px;
  background: rgba(141, 255, 24, .055);
  color: #dfffc1;
  font-size: 12px;
  line-height: 1;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 30px;
}

.footer-column h2 {
  margin: 0 0 22px;
  color: var(--shell-white);
  font-size: 14px;
  line-height: 1;
  letter-spacing: .02em;
  font-weight: 500;
  text-transform: none;
}

.footer-column ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-column li + li {
  margin-top: 13px;
}

.footer-column a,
.footer-bottom a {
  color: var(--shell-muted);
  text-decoration: none;
  font-size: 14px;
  line-height: 1.35;
  font-weight: 400;
  transition: color .2s ease;
}

.footer-column a:hover,
.footer-column a[aria-current="page"],
.footer-bottom a:hover {
  color: var(--shell-lime);
}

.footer-bottom {
  margin-top: 64px;
  padding-top: 24px;
  border-top: 1px solid var(--shell-line);
  display: flex;
  justify-content: space-between;
  gap: 24px;
  color: #77737e;
  font-size: 13px;
}

.footer-bottom-links {
  display: flex;
  gap: 24px;
}

.footer-bottom a {
  font-size: 13px;
}

@media (max-width: 1120px) {
  .footer-top {
    grid-template-columns: 1fr;
    gap: 52px;
  }
}

@media (max-width: 980px) {
  .site-header-links { display: none; }
  .site-header-more { display: block; margin-left: auto; }
  .site-header-more-menu { right: 0; left: auto; }
  .site-header-actions { display: none; }
}

@media (max-width: 760px) {
  .site-nav,
  .footer-inner {
    width: calc(100% - 28px);
  }

  .site-brand {
    font-size: 20px;
  }

  .site-brand-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
  }

  .site-header-actions {
    gap: 12px;
  }

  .footer-inner {
    padding-top: 54px;
  }

  .footer-links {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 42px 24px;
  }

  .footer-bottom {
    margin-top: 48px;
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 420px) {
  .site-nav {
    gap: 10px;
  }

  .site-brand {
    gap: 8px;
  }

  .site-brand-icon {
    width: 34px;
    height: 34px;
    border-radius: 9px;
  }

  .site-header-download {
    min-height: 40px;
    padding-inline: 12px;
    font-size: 12px;
  }

  .site-header-account {
    font-size: 12px;
  }

  .site-header-actions { gap: 8px; }

  .site-header-more summary {
    min-height: 40px;
    font-size: 12px;
  }

  .footer-links {
    grid-template-columns: 1fr;
  }

  .footer-bottom-links {
    flex-wrap: wrap;
    gap: 16px;
  }
}

@media (max-width: 340px) {
  .site-brand {
    gap: 0;
    font-size: 0;
  }
}
