/* The profile menu (the avatar's menu) for the pages that do not load /suite/suite.css: "Your companies" (/),
   /new/ and /book/. Those pages keep their own look, so they load this small file and not the whole C Suite shell.
   The rules are the ones of the profile menu section of /suite/suite.css, word for word (test/pmenu-css.test.mjs
   checks it): change them there and copy them here. The tokens they use are set here at no weight (:where), so a
   page that also loads /suite/suite.css keeps its own. These pages are not scaled, so --bu is one pixel. */
:where(:root) { --bu: 1px; --i100:#ffffff; --i68:rgba(232, 238, 248, .68); --i42:rgba(232, 238, 248, .42); --l12:rgba(232, 238, 248, .12); --l15:rgba(232, 238, 248, .15);
  --f06:rgba(232, 238, 248, .06); --acc:#8fb8ff; --menu:#111318; --out:cubic-bezier(.2, .8, .2, 1); }
.pdim { position: fixed; inset: 0; z-index: 40; background: rgba(0, 0, 0, .4); animation: pd-in 180ms ease both; }
.pmenu { position: fixed; top: calc(60 * var(--bu)); right: calc(40 * var(--bu)); z-index: 41; box-sizing: border-box; width: calc(300 * var(--bu)); max-width: calc(100vw - 24px); max-height: calc(100vh - 72 * var(--bu)); overflow: auto; padding: calc(8 * var(--bu));
  background: var(--menu); outline: 1px solid var(--l15); outline-offset: -.5px; border-radius: calc(12 * var(--bu)); box-shadow: 0 calc(16 * var(--bu)) calc(40 * var(--bu)) rgba(0, 0, 0, .6); line-height: normal;
  transform-origin: top right; animation: pd-in 180ms ease both, pm-in 240ms var(--out) both; }
@keyframes pd-in { from { opacity: 0; } }
/* closing: the same two movements played backwards; the layer takes no press while it goes */
.pdim.out, .pmenu.out { pointer-events: none; }
.pdim.out { animation: pd-out 180ms ease both; }
.pmenu.out { animation: pd-out 180ms ease both, pm-out 240ms var(--out) both; }
@keyframes pd-out { to { opacity: 0; } }
@keyframes pm-out { to { transform: translateY(-6px) scale(.98); } }
@keyframes pm-in { from { transform: translateY(-6px) scale(.98); } }
.pwho { display: flex; align-items: center; gap: calc(12 * var(--bu)); padding: calc(12 * var(--bu)) calc(12 * var(--bu)) calc(14 * var(--bu)); }
.pav { width: calc(36 * var(--bu)); height: calc(36 * var(--bu)); flex: none; display: inline-grid; place-items: center; border-radius: 50%; background: rgba(143, 184, 255, .2); color: var(--acc); font-size: calc(14 * var(--bu)); font-weight: 600; }
.pwho-t { min-width: 0; display: flex; flex-direction: column; gap: calc(2 * var(--bu)); }
.pname, .pmail { margin: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pname { color: var(--i100); font-size: calc(15 * var(--bu)); font-weight: 600; line-height: calc(18 * var(--bu)); }
.pmail { color: var(--i42); font-size: calc(13 * var(--bu)); line-height: calc(15 * var(--bu)); }
.pgroup { padding: calc(8 * var(--bu)) 0; border-top: var(--bu) solid var(--l12); }
.pgl { margin: 0; padding: calc(6 * var(--bu)) calc(12 * var(--bu)); font: 600 calc(10 * var(--bu))/calc(13 * var(--bu)) var(--mono); letter-spacing: .22em; text-transform: uppercase; color: var(--i42); }
.pmenu .pitem { box-sizing: border-box; display: flex; width: 100%; align-items: center; justify-content: flex-start; gap: calc(10 * var(--bu)); min-height: 0; padding: calc(9 * var(--bu)) calc(12 * var(--bu)); border: 0; border-radius: calc(8 * var(--bu)); background: none; color: var(--i68);
  font: 500 calc(14 * var(--bu))/calc(17 * var(--bu)) var(--sans); text-align: left; text-decoration: none; cursor: pointer; transition: background-color 140ms ease, color 140ms ease; }
.pmenu .pitem .ico { width: calc(15 * var(--bu)); height: calc(15 * var(--bu)); }
.pmenu .pitem:hover, .pmenu .pitem:focus-visible { background: var(--f06); color: var(--i100); }
.pmenu .pitem:active { background: rgba(232, 238, 248, .1); }
.pmenu .pitem.off, .pmenu .pitem.off:hover { background: none; color: var(--i42); cursor: default; }
.pitem .plabel { flex: 1; }
.pitem .pmeta { color: var(--i42); font-size: calc(12 * var(--bu)); max-width: 12ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 1023.98px) {
  .pmenu { top: 56px; right: 12px; }
  .pmenu .pitem { min-height: 40px; }
  .pgl { font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .pdim, .pmenu, .pdim.out, .pmenu.out { animation: none; }
}
