/* Headshots (js/headshots.js, Oct 22 2026).

   The photo inside any avatar, and the dialog that asks for one. The dialog
   is the portal's centred overlay in the shell's own tokens (as
   deleted-projects.css), so it reads the same light or dark. Its one bold
   thing is the circle: the bubble's frame, with the bubble's gold ring, the
   photo dimmed outside it so the crop is the only bright part. */

/* ---------- the photo in a bubble ---------- */
img.lh-hs{ display:block; width:100%; height:100%; object-fit:cover; border-radius:50%; }

/* ---------- the dialog ---------- */
.hs-scrim{
  position:fixed; inset:0; z-index:9000; display:flex; align-items:center; justify-content:center;
  padding:16px; background:rgba(13,18,32,.42); -webkit-backdrop-filter:blur(6px); backdrop-filter:blur(6px);
  animation:hs-fade .18s ease-out;
}
.hs-dialog{
  width:min(420px, 100%); max-height:calc(100dvh - 32px); overflow:auto; box-sizing:border-box;
  padding:26px 28px 20px; background:var(--surface); color:var(--text-body);
  border:0; border-radius:var(--my-r-xl);
  box-shadow:var(--my-pop-shadow); font-family:var(--font-sans);
  animation:hs-rise .22s cubic-bezier(.2,.8,.2,1);
}
.hs-dialog:focus{ outline:none; }
.hs-title{ margin:0; font-family:var(--font-serif); font-size:20px; font-weight:600; line-height:1.25; letter-spacing:-.01em; color:var(--text-head); text-wrap:balance; }
.hs-lede{ margin:8px 0 0; font-size:13.5px; line-height:1.55; color:var(--text-body); max-width:62ch; }

/* The stage: a square the photo moves in, the circle in its middle. */
.hs-stage{
  position:relative; width:288px; height:288px; max-width:100%; margin:22px auto 0;
  border-radius:var(--my-r); background:var(--canvas); overflow:hidden;
}
.hs-stage.is-over{ background:var(--gold-faint); }

/* Before a photo: the empty bubble, and the words that open the picker. */
.hs-pick{
  position:absolute; inset:0; display:flex; flex-direction:column; align-items:center; justify-content:center;
  gap:16px; cursor:pointer; border-radius:var(--my-r); color:var(--text-muted);
}
.hs-pick:focus-visible{ outline:2px solid var(--gold); outline-offset:-2px; }
.hs-pick-face, .hs-pick-current{
  width:148px; height:148px; border-radius:50%; box-sizing:border-box; border:2px solid var(--gold);
}
.hs-pick-face{
  display:flex; align-items:center; justify-content:center; background:var(--surface);
  color:var(--text-faint);
}
.hs-pick-face svg{ width:88px; height:88px; }
.hs-pick-current{ object-fit:cover; }
.hs-pick-text{ display:flex; flex-direction:column; align-items:center; gap:2px; font-size:12.5px; }
.hs-pick-text b{ font-size:14px; font-weight:600; color:var(--text-head); }
.hs-pick:hover .hs-pick-text b{ color:var(--gold-dark); }
.hs-file{ position:absolute; width:1px; height:1px; opacity:0; pointer-events:none; }

/* With a photo: drag it under the circle. */
.hs-frame{ position:absolute; inset:0; cursor:grab; touch-action:none; outline:none; background:#11141b; }
.hs-frame.is-dragging{ cursor:grabbing; }
.hs-frame:focus-visible .hs-window{ box-shadow:0 0 0 999px rgba(15,18,26,.62), 0 0 0 4px rgba(197,165,90,.45); }
.hs-photo{
  position:absolute; left:50%; top:50%; max-width:none; user-select:none; -webkit-user-drag:none;
  transform-origin:0 0; will-change:transform;
}
.hs-window{
  position:absolute; left:50%; top:50%; width:232px; height:232px; margin:-116px 0 0 -116px;
  border-radius:50%; box-sizing:border-box; border:2px solid var(--gold);
  box-shadow:0 0 0 999px rgba(15,18,26,.62); pointer-events:none;
}

.hs-zoom{ display:flex; align-items:center; gap:10px; width:232px; max-width:100%; margin:14px auto 0; color:var(--text-muted); }
.hs-zoom[hidden]{ display:none; }
.hs-zoom-ic{ display:inline-flex; width:18px; height:18px; flex-shrink:0; }
.hs-zoom-ic svg{ width:100%; height:100%; }
.hs-zoom-sm svg{ transform:scale(.8); }
.hs-zoom input[type="range"]{ flex:1; min-width:0; accent-color:var(--gold); height:28px; margin:0; }

.hs-hint{ margin:6px 0 0; text-align:center; font-size:12.5px; color:var(--text-muted); }
.hs-err{ margin:12px 0 0; font-size:12.5px; color:var(--red-ink); text-align:center; }
.hs-hint[hidden], .hs-err[hidden], .hs-pick[hidden], .hs-frame[hidden]{ display:none; }

.hs-foot{ display:flex; align-items:center; gap:8px; margin-top:22px; }
.hs-foot-start{ display:flex; align-items:center; gap:14px; margin-right:auto; min-width:0; }
.hs-link{
  padding:0; background:none; border:0; font:inherit; font-size:12.5px; color:var(--text-muted);
  text-decoration:underline; text-underline-offset:3px; cursor:pointer;
}
.hs-link:hover{ color:var(--text-head); }
.hs-link-danger:hover{ color:var(--red-ink); }
.hs-link[hidden]{ display:none; }
.hs-link:focus-visible, .hs-foot .ds-btn:focus-visible{ outline:2px solid var(--gold); outline-offset:2px; }

@keyframes hs-fade{ from{ opacity:0; } }
@keyframes hs-rise{ from{ opacity:0; transform:translateY(8px) scale(.985); } }
@media (prefers-reduced-motion: reduce){
  .hs-scrim, .hs-dialog{ animation:hs-fade .12s linear; }
}

@media (max-width: 480px){
  .hs-dialog{ padding:22px 18px 16px; }
  .hs-foot{ flex-wrap:wrap; }
  .hs-foot-start{ flex-basis:100%; justify-content:center; margin:0 0 4px; }
  .hs-foot .ds-btn{ flex:1 1 0; justify-content:center; min-height:44px; }
}

/* The Team and Account bubbles (.set-hs) live in design-system.css with the
   rest of the Settings grammar. */
