:root {
  --staff-bottom: max(.625rem, env(safe-area-inset-bottom));
  --staff-right: max(.875rem, env(safe-area-inset-right));
  --staff-clearance: calc(var(--staff-bottom) + 3rem);
}

body:has(> .staff-signin),
#tour.venue .venue-floor {
  padding-bottom: var(--staff-clearance);
}

a.staff-signin {
  position: fixed;
  right: var(--staff-right);
  bottom: var(--staff-bottom);
  z-index: 4;
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  box-sizing: border-box;
  padding: .4rem .9rem;
  border: 1px solid #9b8277;
  border-radius: .5rem;
  background: #291d23;
  color: #f6e8db;
  font: 500 .875rem/1.25 var(--sans, Arial, sans-serif);
  text-decoration: underline;
  text-underline-offset: .18em;
}

a.staff-signin:hover { background: #49333c; }
a.staff-signin:focus-visible { outline: 3px solid #f1c18e; outline-offset: 2px; }
body:has(#tour[open]) > .staff-signin { visibility: hidden; }

@media print {
  a.staff-signin { display: none; }
}
