.readout {
  position: absolute;
  right: 12px;
  bottom: 10px;
  z-index: 10;
  color: var(--dim);
  font-size: 12px;
  background: #111725e0;
  padding: 3px 7px;
  border-radius: 6px;
  pointer-events: none;
}

/* a press between the widgets reaches the map */
.corner {
  position: absolute;
  right: 12px;
  bottom: var(--corner-foot);
  z-index: 10;
  display: flex;
  align-items: flex-end;
  gap: 8px;
  pointer-events: none;
}
.corner > * {
  pointer-events: auto;
}

.fit {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  padding: 0;
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  cursor: pointer;
}
.fit.fitted {
  color: var(--dim);
  background: var(--surface-float);
}
.fit:focus-visible {
  color: var(--accent);
  border-color: var(--accent-dim);
}
@media (hover: hover) {
  .fit:hover {
    color: var(--accent);
    border-color: var(--accent-dim);
  }
}
.fit svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.fit[aria-pressed="true"] {
  border-color: var(--accent);
  box-shadow: inset 0 0 0 1px var(--accent);
}
.fit .icon {
  display: block;
}

/* the corner's buttons stand in a column as tall as the compass */
.corner .stack {
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}
.corner .stack > * {
  pointer-events: auto;
}

.compass {
  width: var(--compass-h);
  height: var(--compass-h);
  background: var(--surface-float);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.tip {
  position: absolute;
  z-index: 20;
  width: max-content;
  pointer-events: none;
  background: #0c1119f7;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 5px 8px;
  font-size: 12px;
  max-width: 260px;
}

/* over the drawer where it floats over the map */
.toasts {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 40px;
  z-index: 26;
  display: flex;
  flex-direction: column-reverse;
  align-items: center;
  gap: 6px;
  pointer-events: none;
}
.toast {
  position: relative;
  overflow: hidden;
  max-width: min(90%, 420px);
  background: #171d2bf2;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--ink);
  font-size: 12.5px;
  padding: 6px 12px;
  text-align: center;
  opacity: 0;
  transform: translateY(6px);
  transition:
    opacity 0.15s ease,
    transform 0.15s ease;
}
.toast.show {
  opacity: 1;
  transform: none;
}
.toast-bar {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: var(--accent);
  opacity: 0.55;
  transform-origin: left center;
  animation: toast-drain var(--toast-ms) linear forwards;
}
@keyframes toast-drain {
  from {
    transform: scaleX(1);
  }
  to {
    transform: scaleX(0);
  }
}
/* the count of what waits sits above the stack, which column-reverse would
   otherwise put below */
.toast-more {
  order: 1;
  background: #171d2bd9;
  border: 1px solid var(--line);
  border-radius: 100px;
  color: var(--dim);
  font-size: 11px;
  padding: 1px 8px;
}
