/* Fieldpost: the Undo icon button over its board slot (main.js positions it).
   Flat: paper fill, an opaque 2px border in a darker shade of the fern ground, no black. */
.fp-ibtn {
  appearance: none; position: absolute; left: 0; top: 0; z-index: 2; transform: translate(-50%, -50%); width: 52px; height: 52px; border-radius: 16px;
  display: grid; place-items: center; padding: 0; cursor: pointer; color: #184F2E;
  background: #F6F3EC; border: 0; box-shadow: inset 0 0 0 2px #216F40;
  transition: opacity 160ms;
}
.fp-ibtn:active:not(:disabled) { scale: 0.96; }
.fp-ibtn:focus-visible { outline: 2px solid #F6F3EC; outline-offset: 3px; }
/* Disabled: the look of 55% opacity over the fern ground, but the border stays opaque
   (fill pre-blended with the ground, only the icon fades). */
.fp-ibtn:disabled { cursor: default; background: color-mix(in srgb, #F6F3EC 55%, #2F9E5B); }
.fp-ibtn:disabled > svg { color: #84715D; }
@media (min-width: 900px) and (pointer: fine) {
  .fp-ibtn { width: 56px; height: 56px; }
}
@media (prefers-reduced-motion: reduce) {
  .fp-ibtn { transition: none; }
  .fp-ibtn:active:not(:disabled) { scale: none; }
}
