/* W1-only: reuse the approved navigation CTA contrast over dark media,
   while retaining the small quiet Sign in button at the top of the page. */
html[data-static] .site-nav[data-float][data-on-media] .site-nav__inner:not(:has(.site-nav__cta[data-get-jdoe]:not([hidden]))) .site-nav__actions .auth-entry:not(.auth-entry--face) { background: #FFFFFF; color: var(--ink-950); }
html[data-static] .site-nav[data-float][data-on-media] .site-nav__inner:not(:has(.site-nav__cta[data-get-jdoe]:not([hidden]))) .site-nav__actions .auth-entry:not(.auth-entry--face):hover { background: rgb(255 255 255 / .86); }
/* Narrow phones: the logo, App, Device and the sign-in entry ran 13px (Account: 23px) past a 320 screen. The links and the
   entry take tighter sides at the top of the page; the floating nav hides the links and needs none of this. */
@media (max-width: 379px) {
  .site-nav .site-nav__links { gap: 0; }
  .site-nav .site-nav__links a { padding-inline: 6px; }
}
/* Sign in reads as the third link beside App and Device (2026-10-30, the user: they differed in weight, tracking and
   spacing): their 500 weight, normal tracking and side padding, and the links' own 4px between it and Device (the nav's
   8px less 4). Floating with no installer address it becomes a capsule, below. */
.site-nav:not([data-on-media]) .site-nav__actions:has(.auth-entry:not(.auth-entry--face)) { margin-left: -4px; }
.site-nav:not([data-on-media]) .site-nav__actions .auth-entry:not(.auth-entry--face) { padding-inline: var(--entry-side, 14px); font-weight: 500; letter-spacing: normal; }
@media (max-width: 399px) { .site-nav { --entry-side: 10px; } } /* as the links: 10 under 400, 6 and no gap under 380 */
@media (max-width: 379px) { .site-nav { --entry-side: 6px; } .site-nav:not([data-on-media]) .site-nav__actions:has(.auth-entry:not(.auth-entry--face)) { margin-left: -8px; } }

/* Floating with no installer address, Sign in is the nav's one action: the nav CTA's capsule (2026-10-30, the user), ink here,
   white over dark media (above). */
html[data-static] .site-nav[data-float]:not([data-on-media]) .site-nav__inner:not(:has(.site-nav__cta[data-get-jdoe]:not([hidden]))) .site-nav__actions .auth-entry:not(.auth-entry--face) { padding-inline: 18px; font-weight: 600; letter-spacing: -.005em; color: var(--paper-50); background: var(--ink-950); }
html[data-static] .site-nav[data-float]:not([data-on-media]) .site-nav__inner:not(:has(.site-nav__cta[data-get-jdoe]:not([hidden]))) .site-nav__actions .auth-entry:not(.auth-entry--face):hover { color: var(--paper-50); background: var(--ink-700); }
html[data-static] .site-nav[data-float] .site-nav__inner:not(:has(.site-nav__cta[data-get-jdoe]:not([hidden]))) .site-nav__actions:has(.auth-entry:not(.auth-entry--face)) { margin-left: 10px; }
@media (max-width: 379px) { /* the capsule, tighter, closing on Device as the links do */
  html[data-static] .site-nav[data-float]:is(:not([data-on-media]), [data-on-media]) .site-nav__inner:not(:has(.site-nav__cta[data-get-jdoe]:not([hidden]))) .site-nav__actions .auth-entry:not(.auth-entry--face) { padding-inline: 12px; }
  html[data-static] .site-nav[data-float] .site-nav__inner:not(:has(.site-nav__cta[data-get-jdoe]:not([hidden]))) .site-nav__actions:has(.auth-entry:not(.auth-entry--face)) { margin-left: -8px; }
}
/* Keep the floating Beta navigation to App, Device and one account action.
   The nav never shows an Apply / status button (2026-11-13, the user); status stays in the avatar menu. */
.site-nav .auth-beta-action { display: none !important; }
html[data-beta-connected] .site-nav[data-float] .site-nav__links { display: flex; }
html[data-beta-connected] .site-nav[data-float] .auth-entry:not(.auth-entry--face) { display: none; }
@media (min-width: 600px) {
  .site-nav[data-float] .site-nav__inner .site-nav__actions:has(.auth-entry--face) { margin-left: 7px; }
  html[data-beta-connected] .site-nav[data-float] .site-nav__actions:has([data-get-jdoe]:not([hidden])) { margin-left: 10px; }
}
@media (max-width: 599px) {
  .site-nav .auth-beta-action,
  html:not([data-beta-connected]) .site-nav[data-float] .site-nav__inner:has(.auth-entry:not(.auth-entry--face)) .site-nav__links { display: none; }
  html:not([data-beta-connected]) .site-nav[data-float] .site-nav__actions:has(.auth-entry:not(.auth-entry--face)) { margin-left: auto; }
}
@media (max-width: 399px) {
  html[data-beta-connected] .site-nav[data-float] .site-nav__wrap { padding-inline: 12px; }
  html[data-beta-connected] .site-nav[data-float] .site-nav__inner { gap: 4px; }
  html[data-beta-connected] .site-nav[data-float] .site-nav__actions:has([data-get-jdoe]:not([hidden])) { margin-left: 0; }
  html[data-beta-connected] .site-nav[data-float] [data-get-jdoe] { padding-inline: 12px; }
}
@media (max-width: 379px) {
  html[data-beta-connected] .site-nav[data-float] .site-nav__wrap { padding-inline: 10px; }
  html[data-beta-connected] .site-nav[data-float] [data-get-jdoe] { padding-inline: 10px; }
}
/* Signed in: the person's avatar in place of Sign in (auth/nav.js), 34px in a 40px target like the nav's other controls.
   JdoeAvatar's values: the photo's and the letter's feather stops (JdoeTintTokens.featherPhoto / featherLetter), the five
   tints' feathered ground and letter, the serif initial at .42 of the size.
   States, on the page's --ease-settle: at rest the bare feathered face. Hover or keyboard focus: the same grey
   translucent wash as App / Device (--ink-a-04; over dark media, white 12%) opens around it from .82, in step with
   the face rising to 1.04.
   Press: the face settles to .95, fast, and springs back. It arrives with a short fade. */
.site-nav { --ease-settle: cubic-bezier(.22, 1, .36, 1); } /* tokens.css defines it only inside [data-pds]; without it every transition below was invalid and the states jumped */
.site-nav .site-nav__actions .auth-entry--face {
  position: relative; width: 40px; padding: 0; overflow: visible; justify-content: center; border-radius: 50%;
  background: none; box-shadow: none;
}
.site-nav .site-nav__actions .auth-entry--face:hover, .site-nav .site-nav__actions .auth-entry--face:active { background: none; transform: none; }
.auth-entry--face::after { content: none; }
.auth-entry--face::before {
  content: ""; position: absolute; inset: 0; border-radius: 50%; pointer-events: none;
  background: var(--ink-a-04); /* same grey wash as App / Device (2026-11-13, the user) */
  opacity: 0; transform: scale(.82);
  transition: opacity 160ms var(--ease-settle), transform 240ms var(--ease-settle); /* leaving: quicker than arriving */
}
.auth-face {
  position: relative; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; overflow: hidden;
  font-family: var(--font-serif); font-size: 14px; font-weight: 500; line-height: 1;
  background: var(--face-ground); color: var(--face-letter);
  --feather-letter: radial-gradient(circle closest-side, #000 58%, rgb(0 0 0 / .9967) 61%, rgb(0 0 0 / .9767) 64%, rgb(0 0 0 / .9305) 67%, rgb(0 0 0 / .8553) 70%, rgb(0 0 0 / .7536) 73%, rgb(0 0 0 / .6321) 76%, rgb(0 0 0 / .5) 79%, rgb(0 0 0 / .3679) 82%, rgb(0 0 0 / .2464) 85%, rgb(0 0 0 / .1447) 88%, rgb(0 0 0 / .0695) 91%, rgb(0 0 0 / .0233) 94%, rgb(0 0 0 / .0033) 97%, transparent 100%);
  --feather-photo: radial-gradient(circle closest-side, #000 46%, rgb(0 0 0 / .9967) 49.86%, rgb(0 0 0 / .9767) 53.71%, rgb(0 0 0 / .9305) 57.57%, rgb(0 0 0 / .8553) 61.43%, rgb(0 0 0 / .7536) 65.29%, rgb(0 0 0 / .6321) 69.14%, rgb(0 0 0 / .5) 73%, rgb(0 0 0 / .3679) 76.86%, rgb(0 0 0 / .2464) 80.71%, rgb(0 0 0 / .1447) 84.57%, rgb(0 0 0 / .0695) 88.43%, rgb(0 0 0 / .0233) 92.29%, rgb(0 0 0 / .0033) 96.14%, transparent 100%);
  -webkit-mask: var(--feather-letter); mask: var(--feather-letter);
  transition: transform 280ms var(--ease-settle);
  animation: auth-face-in 280ms var(--ease-settle) backwards;
}
.auth-face[data-photo] { -webkit-mask: var(--feather-photo); mask: var(--feather-photo); }
.auth-face[data-tint="0"] { --face-ground: #F4E7DD; --face-letter: #3E2815; } /* amber */
.auth-face[data-tint="1"] { --face-ground: #E3EDE0; --face-letter: #21331D; } /* sage */
.auth-face[data-tint="2"] { --face-ground: #EBE7F5; --face-letter: #312941; } /* violet */
.auth-face[data-tint="3"] { --face-ground: #E0EBF7; --face-letter: #1C2F44; } /* sky */
.auth-face[data-tint="4"] { --face-ground: #F7E5E4; --face-letter: #422424; } /* rose */
.auth-face__photo { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; opacity: 0; background: var(--paper-200); transition: opacity 200ms var(--ease-settle); }
.auth-face[data-photo] .auth-face__photo { opacity: 1; }
@keyframes auth-face-in { from { opacity: 0; transform: scale(.9); } }
@media (hover: hover) and (pointer: fine) {
  .auth-entry--face:hover::before { opacity: 1; transform: none; transition-duration: 220ms, 360ms; } /* arriving: the disc opens over 360ms, the face rises with it */
  .auth-entry--face:hover .auth-face { transform: scale(1.04); transition-duration: 360ms; }
}
.auth-entry--face:focus-visible::before, .auth-entry--face[aria-expanded="true"]::before { opacity: 1; transform: none; }
.auth-entry--face:focus-visible { outline: 2px solid var(--interaction-focus); outline-offset: 2px; }
.auth-entry--face:active::before { opacity: 1; transform: scale(.96); transition-duration: 80ms; }
.site-nav .site-nav__actions .auth-entry--face:active .auth-face { transform: scale(.95); transition-duration: 80ms; }
/* Avatar account menu hung under the face (Mac GlassMenu / MacMenu). */
.site-nav__actions { position: relative; }
/* Mac GlassMenu = Mac MacMenu (controls.css --gmenu-* / R123): 220–320 · pad 4 · gap 1 · shell 22 · row 18/36 · 15/20/500. */
.auth-menu {
  position: absolute; top: calc(100% + 2px); right: 3px; z-index: 5;
  box-sizing: border-box; width: max-content; min-width: 220px; max-width: min(320px, calc(100vw - 32px)); padding: 4px;
  display: flex; flex-direction: column; gap: 1px;
  border-radius: 22px; corner-shape: var(--shape, superellipse(2.2));
  background: rgb(255 255 255 / .92); -webkit-backdrop-filter: blur(20px) saturate(1); backdrop-filter: blur(20px) saturate(1);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .06), 0 2px 6px rgba(0, 0, 0, .06), 0 14px 36px rgba(0, 0, 0, .10);
  transform-origin: top right; animation: modal-in 250ms var(--ease-settle) both;
}
.auth-menu[data-closing] { opacity: 0; transform: scale(.96); animation: none; pointer-events: none; transition: opacity 150ms var(--ease-settle), transform 150ms var(--ease-settle); }
.auth-menu__who { display: flex; flex-direction: column; min-width: 0; padding: 6px 10px 7px; font: 400 12px/16px var(--font-ui); color: rgb(35 33 30 / .66); }
.auth-menu__who b { font: 600 13px/18px var(--font-ui); color: rgb(35 33 30 / .96); }
.auth-menu__who > * { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.auth-menu__sep { flex: none; height: 1px; margin: 4px 10px; background: rgba(34, 29, 23, .10); }
.auth-menu__item {
  text-decoration: none;
  appearance: none; margin: 0; border: 0; background: none; text-align: left; cursor: pointer;
  display: flex; align-items: center; box-sizing: border-box; flex: none; height: 36px; min-height: 36px; padding: 0 10px;
  border-radius: 18px; corner-shape: var(--shape, superellipse(2.2)); outline: none;
  font: 500 15px/20px var(--font-ui); letter-spacing: -.005em; color: rgb(35 33 30 / .96); user-select: none;
  transition: background-color 120ms var(--ease-settle), transform 80ms var(--ease-settle);
}
.auth-menu__label { min-width: 0; flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.auth-menu__item:hover, .auth-menu__item:focus-visible { background: var(--state-hover, rgb(35 33 30 / .04)); }
.auth-menu__item:focus-visible { box-shadow: inset 0 0 0 2px rgb(35 33 30 / .2); }
.auth-menu__item:active { background: var(--state-pressed, rgb(35 33 30 / .07)); transform: scale(.99); }
@media (pointer: coarse) { .auth-menu__item { height: auto; min-height: 44px; } }
@media (prefers-reduced-motion: reduce) { .auth-menu, .auth-menu[data-closing] { animation: none; transition: none; } .auth-menu__item { transition: none; } }
/* on dark media the halo stays pale, a touch stronger against the film */
.site-nav[data-float][data-on-media] .auth-entry--face::before { background: rgb(255 255 255 / .12); } /* same as App / Device over dark media */
@media (prefers-reduced-motion: reduce) {
  .auth-entry--face::before { transform: none; transition: opacity 120ms linear; }
  .auth-face { animation: none; transition: none; }
  .site-nav .site-nav__actions .auth-entry--face:active .auth-face, .auth-entry--face:hover .auth-face { transform: none; }
}
[data-beta-action][hidden], [data-get-jdoe][hidden] { display: none !important; } /* W2: the nav's state button waits for a session */
/* W2: signed out or not yet submitted, the two actions share a glass track.
   After submission, the status button follows the width of its label.
   Approved (html[data-account="active"], auth/nav.js) shows the designer's two downloads and the nav's Get J.Doe. */
html[data-beta-connected]:not([data-account="active"]) :is(#hero-waitlist, #end-waitlist):not(:has([data-open-invite]:not([hidden]), [data-home-signin]:not([hidden]))) { width: fit-content; }
:is(#hero-form, #end-waitlist):not(:has([data-open-invite]:not([hidden]), [data-home-signin]:not([hidden]))) [data-beta-action]:not([data-check-application-status]) { inline-size: 224px; }
:is(#hero-form, #end-waitlist) [data-check-application-status] { min-inline-size: 224px; }
@media (max-width: 599px) { :is(#hero-form, #end-waitlist):not(:has([data-open-invite]:not([hidden]), [data-home-signin]:not([hidden]))) [data-beta-action]:not([data-check-application-status]) { inline-size: 176px; } }
@media (max-width: 599px) and (orientation: portrait) {
  html[data-beta-connected]:not([data-account="active"]) .hero__cta:has(#hero-form :is([data-open-invite], [data-home-signin]):not([hidden])) {
    margin-block-start: 0;
  }
  html[data-beta-connected][data-account="active"] .hero__cta:has([data-download-mac][href]:not([hidden])):has([data-download-iphone][href]:not([hidden])) {
    margin-block-start: -4px;
  }
  html[data-beta-connected] .closing #end-waitlist:is(
    :has([data-open-invite]:not([hidden]), [data-home-signin]:not([hidden])),
    :has([data-download-mac][href]:not([hidden])):has([data-download-iphone][href]:not([hidden]))
  ) {
    margin-block-start: calc(var(--space-6) - 20px);
  }
  html[data-beta-connected] :is(#hero-form, #end-waitlist > .jw-waitlist__field):is(
    :has([data-open-invite]:not([hidden]), [data-home-signin]:not([hidden])),
    :has([data-download-mac][href]:not([hidden])):has([data-download-iphone][href]:not([hidden]))
  ) {
    inline-size: min(224px, 100%);
    margin-inline: auto;
    flex-direction: column;
    align-items: stretch;
    border-radius: calc(var(--cap-h) / 2 + var(--cap-pad));
    &::before { border-radius: inherit; }
    & > .jw-waitlist__btn { font-size: var(--fs-w-small); }
  }
}
html[data-beta-connected][data-account="active"] :is([data-beta-action], [data-open-invite], [data-home-signin]) { display: none !important; }
html[data-beta-connected] :is([data-download-mac], [data-download-iphone], [data-open-invite], [data-home-signin])[hidden] { display: none !important; }
html[data-beta-connected][data-account="active"] :is(#hero-waitlist, #end-waitlist):has([data-download-mac][hidden], [data-download-iphone][hidden]) { width:fit-content; }
