/* The profile menu, on every page (profile.js): solid panels in the app's greys, the purple for you. Its own
   colours and class names (vp-), so each page's styles leave it alone. */
.vp { position: relative; display: flex; align-items: center; font-family: Inter, "Segoe UI", system-ui, sans-serif;
  --vp-bg: #111116; --vp-raised: #1b1b23; --vp-sunk: #09090c; --vp-border: #262630; --vp-text: #f1f1f5; --vp-dim: #a1a1b3;
  --vp-faint: #6c6c7e; --vp-accent: #7b61ff; --vp-danger: #f87171; }
.vp[hidden], .vp [hidden] { display: none !important; }
.vp .vp-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.vp .vp-button { display: grid; place-items: center; width: 36px; height: 36px; padding: 0; margin: 0; border-radius: 50%;
  border: 2px solid var(--vp-border); background: var(--vp-raised); cursor: pointer; transition: border-color .15s; }
.vp .vp-button:hover, .vp .vp-button[aria-expanded="true"], .vp .vp-button:focus-visible { border-color: var(--vp-accent); outline: none; }
.vp .vp-face { display: grid; place-items: center; width: 30px; height: 30px; }
.vp .vp-face.big { width: 40px; height: 40px; flex: none; }
.vp .vp-face img { display: block; width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.vp .vp-initial { display: grid; place-items: center; width: 100%; height: 100%; border-radius: 50%; background: var(--vp-accent);
  color: #fff; font-size: 14px; font-weight: 700; line-height: 1; }
.vp .vp-face.big .vp-initial { font-size: 17px; }

.vp .vp-menu { position: absolute; right: 0; top: calc(100% + 10px); z-index: 50; width: 300px; max-width: calc(100vw - 24px);
  padding: 8px; border-radius: 14px; border: 1px solid var(--vp-border); background: var(--vp-bg); color: var(--vp-text);
  box-shadow: 0 16px 40px rgba(0, 0, 0, .55); font-size: 14px; line-height: 1.4; text-align: left; }
.vp .vp-head { display: flex; align-items: center; gap: 12px; padding: 8px 8px 12px; border-bottom: 1px solid var(--vp-border); }
.vp .vp-who { display: grid; min-width: 0; }
.vp .vp-who strong { font-size: 15px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vp .vp-who span { color: var(--vp-faint); font-size: 13px; }

.vp .vp-key { display: grid; gap: 6px; padding: 12px 8px; border-bottom: 1px solid var(--vp-border); }
.vp .vp-label { color: var(--vp-dim); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.vp .vp-key code { display: block; padding: 7px 9px; border-radius: 8px; background: var(--vp-sunk); border: 1px solid var(--vp-border);
  color: var(--vp-text); font: 12px ui-monospace, SFMono-Regular, Consolas, monospace; white-space: nowrap; overflow-x: auto; }
.vp .vp-key-acts { display: flex; gap: 6px; }
.vp .vp-key-acts button { flex: 1; min-height: 30px; padding: 0 10px; border-radius: 8px; border: 1px solid var(--vp-border);
  background: var(--vp-raised); color: var(--vp-text); font: 600 13px Inter, "Segoe UI", system-ui, sans-serif; cursor: pointer; }
.vp .vp-key-acts button:hover { border-color: var(--vp-accent); }
.vp .vp-sub { color: var(--vp-faint); font-size: 12px; }
.vp .vp-nokey { margin: 0; padding: 10px 8px; border-bottom: 1px solid var(--vp-border); }

.vp .vp-links { display: grid; padding-top: 6px; }
.vp .vp-links .vp-link:not([hidden]) { display: block; width: 100%; margin: 0; padding: 9px 10px; border: 0; border-radius: 8px;
  background: none; color: var(--vp-text); font: 500 14px Inter, "Segoe UI", system-ui, sans-serif; text-align: left;
  text-decoration: none; cursor: pointer; position: static; }
.vp .vp-links .vp-link:hover, .vp .vp-links .vp-link:focus-visible { background: var(--vp-raised); color: var(--vp-text); outline: none; }
.vp .vp-links .vp-link::after { display: none; }
.vp .vp-links .vp-out:not([hidden]) { color: var(--vp-danger); }
