/* ═══ PROFILE PICTURES ═════════════════════════════════════════════════════
   The picture fills a circle. Where there is none, whatever the app already
   drew — the initial — is left exactly as it was.
   ⚠ `background-size:cover` is the whole trick: the short side fills the circle
   and the long side is cropped, so nobody's face is squashed to fit. */

/* any circle in the app that carries data-av picks the picture up */
/* ⚠ FORCED. Several of these circles set their colour with the `background`
   SHORTHAND, and a shorthand resets background-size to auto — which beat the cover
   below it and drew a 256px photo at full size in a 46px circle, showing only its
   top-left corner. On a photo of stairs that reads as a flat brown disc. */
[data-av].has-av{
  background-size:cover!important;background-position:center!important;
  background-repeat:no-repeat!important;
  color:transparent!important;   /* the initial underneath stops showing through */
}
[data-av].has-av .ini{opacity:0}

/* the big one you tap, on a person's page and on a customer's */
.avpick{
  position:relative;display:inline-flex;align-items:center;justify-content:center;
  border-radius:50%;background:var(--ink);color:var(--on-ink);cursor:pointer;
  font-family:'Inter',sans-serif;font-weight:600;flex-shrink:0;
  transition:box-shadow .14s ease}
.avpick:hover,.avpick:focus-visible{box-shadow:0 0 0 3px var(--accent-soft)}
.avpick:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
.avpick .ini{font-size:27px;line-height:1;transition:opacity .12s}
/* a small circle: no badge sitting on the picture. Hover dims it and shows
   the camera in the middle, so nothing is covered while you are looking. */
.avpick.sm .ini{font-size:15px}
.avpick.sm .cam{inset:0;right:auto;bottom:auto;width:100%;height:100%;
  border:0;border-radius:50%;background:rgba(var(--veil-rgb),.55);color:var(--on-dark);opacity:0;
  transition:opacity .14s ease}
.avpick.sm:hover .cam,.avpick.sm:focus-visible .cam{opacity:1}
.avpick.sm .cam .msym{font-size:15px}
/* the camera badge sits on the rim, and only asks for attention on hover */
.avpick .cam{
  position:absolute;right:-2px;bottom:-2px;width:26px;height:26px;border-radius:50%;
  background:var(--surface);border:1px solid var(--rule);color:var(--ink-soft);
  display:flex;align-items:center;justify-content:center;
  transition:background .12s ease,color .12s ease}
.avpick:hover .cam{background:var(--accent);border-color:var(--accent);color:var(--on-accent)}
.avpick .cam .msym{font-size:15px}
/* ⚠ THE BADGE HANGS OFF THE RIM at right:-2px, so the circle could not clip
   itself — `overflow:hidden` on .avpick sliced the camera in half. The picture
   is a background-image under border-radius:50%, which crops on its own, so
   nothing needed the clip in the first place. */

/* the swap badge: camera while there is nothing, X once there is a picture */
.avpick.swap .ix{display:none}
.avpick.swap.has-av .icam{display:none}
.avpick.swap.has-av .ix{display:inline-flex}
.avpick.swap .cam{color:var(--ink-soft)}
/* the X is a delete — it says so on hover, and it says so on ITS OWN hover,
   not the circle's, or resting anywhere on the face would turn it red. */
.avpick.swap.has-av:hover .cam{background:var(--surface);border-color:var(--rule);color:var(--ink-soft)}
.avpick.swap.has-av .cam:hover{background:var(--accent);border-color:var(--accent);color:var(--on-accent)}
.avpick.swap .cam:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
.avclear{
  display:inline-block;margin-left:14px;vertical-align:middle;
  background:none;border:0;cursor:pointer;
  font-family:'Inter',sans-serif;font-size:15px;font-weight:600;color:var(--ink-faint);
  padding:8px 12px;border-radius:20px}
.avclear:hover{color:var(--accent);background:var(--accent-soft)}
/* nothing to remove when there is no picture */
.avpick:not(.has-av)+.avclear{display:none}

@media (max-width:600px){
  .avpick .ini{font-size:27px}
  /* ⚠ a phone has no hover, so "show the camera on hover" became "show it always"
     — a camera sitting on top of all 46 faces in Manage team. A small circle
     carries nothing on a phone; it is still tappable, and the big circle on a
     person's own page keeps its badge. */
  .avpick.sm .cam{display:none}
}

/* ═══ ADJUSTING A PICTURE BEFORE IT IS SAVED ═══════════════════════════════
   A round window over the photo: what is inside the circle is what gets stored.
   The same markup on both — a sheet from the bottom on a phone, a box in the
   middle on a laptop.
   ⚠ touch-action:none on the window, or dragging the picture scrolls the page
   underneath it instead of moving the picture. */
.avc{position:fixed;inset:0;z-index:2000;display:flex;align-items:center;justify-content:center}
.avc-veil{position:absolute;inset:0;background:rgba(var(--veil-rgb),.55)}
.avc-card{position:relative;background:var(--surface);border-radius:14px;
  width:min(380px,92vw);padding:18px 18px 16px;
  box-shadow:0 24px 60px rgba(var(--shade-rgb),.3)}
.avc-bar{display:flex;align-items:center}
.avc-ttl{font-family:'Inter',sans-serif;font-size:17px;font-weight:600;letter-spacing:-.012em}
/* ⚠ THE WHOLE PHOTO IS SHOWN, and what falls outside the circle is dimmed rather
   than hidden — framing a face blind, with only the part that survives visible, is
   guesswork. The circle is the crop; the dim is everything it will lose. */
.avc-stage{position:relative;width:min(300px,74vw);aspect-ratio:1;margin:14px auto 0;
  border-radius:12px;overflow:hidden;background:var(--rail);cursor:grab;
  touch-action:none;user-select:none;-webkit-user-select:none}
.avc-ring{position:absolute;inset:0;border-radius:50%;pointer-events:none;
  box-shadow:0 0 0 9999px rgba(var(--shade-rgb),.62);
  outline:2px solid rgba(var(--lift-rgb),.9);outline-offset:-2px}
.avc-stage:active{cursor:grabbing}
.avc-img{position:absolute;left:50%;top:50%;max-width:none;pointer-events:none;
  -webkit-user-drag:none;user-select:none}
.avc-hint{font-family:'Inter',sans-serif;font-size:13px;color:var(--ink-faint);
  text-align:center;margin-top:13px}
.avc-zoom{display:flex;align-items:center;gap:11px;margin-top:11px}
.avc-zs{font-family:'Inter',sans-serif;font-size:13px;color:var(--ink-faint);flex-shrink:0}
.avc-zoom input[type=range]{flex:1;min-width:0;accent-color:var(--accent);height:44px}
.avc-acts{display:flex;gap:10px;margin-top:16px}
.avc-no,.avc-go{font-family:'Inter',sans-serif;font-size:15px;font-weight:600;
  min-height:48px;border-radius:999px;cursor:pointer;padding:0 18px}
.avc-no{background:none;border:1px solid var(--rule);color:var(--ink-soft)}
.avc-go{flex:1;background:var(--accent);border:0;color:var(--on-accent)}
@media (max-width:600px){
  .avc{align-items:flex-end}
  .avc-card{width:100%;border-radius:16px 16px 0 0;
    padding:16px 16px max(16px,var(--sab))}
  .avc-stage{width:min(300px,66vw)}
}

/* ═══ THE WRONG-ADDRESS SHEET ══════════════════════════════════════════════
   Where the men actually stood, where the address says, and how far apart. It
   borrows the bottom sheet the rest of the app uses, so it behaves the same on a
   phone and on a laptop. */
.afx .modal{max-width:520px;padding:16px 0 4px}
.afx-hd{display:flex;align-items:center;padding:4px 18px 12px}
.afx-hd .t{font-family:'Inter',sans-serif;font-size:17px;font-weight:600;letter-spacing:-.012em}
.afx-x{margin-left:auto;background:none;border:0;font-size:19px;color:var(--ink-faint);
  width:44px;height:44px;cursor:pointer}
.afx-body{padding:0 18px 6px}
.afx-wait{padding:26px 0;color:var(--ink-faint);font-size:15px;text-align:center}
.afx-say{font-family:'Inter',sans-serif;font-size:15px;line-height:1.55;color:var(--ink)}
.afx-addr{font-size:13px;color:var(--ink-faint);margin-top:6px}
.afx-map{height:230px;border-radius:10px;overflow:hidden;margin-top:13px;background:var(--field)}
.afx-leg{display:flex;gap:16px;margin-top:9px;font-size:13px;color:var(--ink-soft)}
.afx-leg i{display:inline-block;width:11px;height:11px;border-radius:50%;vertical-align:-1px;margin-right:6px}
.afx-leg i.a{background:var(--ok)} .afx-leg i.b{background:var(--ink)}
.afx-pin i{display:block;width:13px;height:13px;border-radius:50%;border:2px solid var(--on-dark);
  box-shadow:0 1px 4px rgba(var(--shade-rgb),.4)}
.afx-pin i.a{background:var(--ok)} .afx-pin i.b{background:var(--ink)}
.afx-pin span{font-family:'Inter',sans-serif;font-size:11px;color:var(--ink-soft);
  white-space:nowrap;position:absolute;left:16px;top:-1px}
.afx-who{font-size:13px;color:var(--ink-faint);margin-top:10px}
.afx-acts{display:flex;gap:10px;margin:16px 0 4px}
.afx-no,.afx-go{font-family:'Inter',sans-serif;font-size:15px;font-weight:600;min-height:48px;
  border-radius:999px;cursor:pointer;padding:0 18px}
.afx-no{background:none;border:1px solid var(--rule);color:var(--ink-soft)}
.afx-go{flex:1;background:var(--accent);border:0;color:var(--on-accent)}
/* the swatch the bell draws beside it */
.nsw.factory_pin{background:var(--info)}
